A Problem while Adding A Marker

Topics: Windows Forms
Apr 4, 2012 at 4:16 PM

Hi, here I found a problem while adding a marker to the map without clicking the map.

when I'm trying to add a marker with lat and lng (for example, I load marker points from a file), it always add the marker to the edge of the map. How can I solve this?

public void AddMarker(double lat,double lng)
          GMapMarker m = new GMarkerGoogle(new PointLatLng(lat, lng),GMarkerGoogleType.blue_small);
          GMapMarkerRect mBorders = new GMapMarkerRect(m.Position);
          mBorders.ToolTip = new GMapToolTip(mBorders);
          MainMap.Position = m.Position;

Apr 4, 2012 at 4:56 PM

works fine to me

Apr 4, 2012 at 6:20 PM

OK, just ignor it... I have passed lat for lng and lng for lat...