WPF中的GMap.NET,不工作标记

时间:2015-06-14 16:26:55

标签: c# dictionary gmap.net

如何在地图中添加标记? 我用:

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

它不起作用..

我的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;

请帮助!

1 个答案:

答案 0 :(得分:3)

为标记添加形状。

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