I've a Windows Forms Application with a Gmap.Net controller, what I want to do is to add markers based on an outside sources that provides locations. The thing is that when I add a marker is initially drawn in an incorrect location, but after I zoom out it goes to the right place. So this is what I got so far:
My Map controller is declare to be located at Panama, Panama.
private void button2_Click(object sender, EventArgs e)
//Layer count is just a variable to add new OverLays with different names
var markersOverlay = new GMapOverlay("markers" + layerCount);
//Marker far away in Quebec, Canada just to check my point in discussion
var marker = new GMarkerGoogle(new PointLatLng(58.0032, -79.4957), GMarkerGoogleType.red_small);
I think it's because you're adding the marker to the overlay that has not been added to the map's overlays. Try to switch the order of the statements as follows:
Worked for me.