David Castro

David Castro

  • NA
  • 1
  • 2.8k

GMap.Net C# show coordinates when i move over the map

Sep 18 2016 2:56 PM
 As simple one is to have the following code in the MouseMove event GmapControl
 
private void map_MouseMove(object sender, MouseEventArgs e)
{
      base.OnMouseMove(e);
      PointLatLng p = map.FromLocalToLatLng(e.X, e.Y);
      label1.Text = Convert.ToString(p);
}

Answers (1)