如何在地图中添加标记? 我用:
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;
请帮助!
答案 0 :(得分:3)
为标记添加形状。
marker.Shape = new MarkerShape(....);