Click or drag to resize

BaseGpsReceiverWpfExtensionsDrawPositionOnWgs84MapToWpfCanvas(Canvas, String, Double, Double, Int32, Int32, Double, Color) Method

Draw position on WGS84 map to WPF canvas.

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 DrawPositionOnWgs84MapToWpfCanvas(
	Canvas canvas,
	string imagePath,
	double x,
	double y,
	int width,
	int height,
	double positionSize,
	Color positionColor
)

Parameters

canvas  Canvas
WPF canvas.
imagePath  String
Path of the map image.
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  Int32
Map's width.
height  Int32
Map's height.
positionSize  Double
Position indicator size in pixels.
positionColor  Color
Position indicator color.
See Also