0

如何将标记添加到我的地图?我用:

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

它不工作..

我的地图:

    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;

请帮忙!

4

1 回答 1

3

将形状添加到标记。

marker.Shape = new MarkerShape(....);
于 2015-06-26T19:25:36.030 回答