GMap.NET in WPF, don't work Markers

2.1k views Asked by At

How can I add Marker to my map? I use:

PointLatLng point = gMap.FromLocalToLatLng(62.03175418653, 129.731884002686);
GMapMarker marker = new GMapMarker(point);
gMap.Markers.Add(marker);

it's don't work..

my gMap:

    gMap.MapProvider = GoogleMapProvider.Instance;
    gMap.Manager.Mode = AccessMode.ServerAndCache;
    GMapProvider.WebProxy = null;
    gMap.Position = new PointLatLng(62.03175418653, 129.731884002686);
    gMap.MinZoom = 1;
    gMap.MaxZoom = 20;
    gMap.Zoom = 10;

Pls Help!

1

There are 1 answers

0
Okan On BEST ANSWER

Add a shape to your marker.

marker.Shape = new MarkerShape(....);