Click or drag to resize

BaseGpsReceiverWpfExtensionsDrawPositionOnWgs84Map2ToWpfCanvas(Canvas, Double, Double, Double, Double, Double, Color) Method

Draw one position on WGS84 map using an OSM standard EPSG3857 map to WPF canvas. Keep aspect ratio = 1:1

Namespace: ZylSoft.Gps
Assembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.32.9621.18621
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static void DrawPositionOnWgs84Map2ToWpfCanvas(
	Canvas canvas,
	double x,
	double y,
	double width,
	double height,
	double positionSize,
	Color positionColor
)

Parameters

canvas  Canvas
WPF canvas.
x  Double
x coordinate on the map. Use GetWGS84MapCoordinates or GetEpsg3857MapCoordinates methods to obtain it, depending on the map CRS.
y  Double
y coordinate on the map. Use GetWGS84MapCoordinates or GetEpsg3857MapCoordinates methods to obtain it, depending on the map CRS.
width  Double
Map's width.
height  Double
Map's height.
positionSize  Double
Position indicator size in pixels.
positionColor  Color
Position indicator color.
See Also