
Of course you can give this overlay any name you want.

We create a new instance of GMapOverlay with the name “markers”.ShowCenter = false GMapOverlay markers = new GMapOverlay ( "markers" ) GMapMarker marker = new GMarkerGoogle ( new PointLatLng ( 48.8617774, 2.349272 ), GMarkerGoogleType. SetPositionByKeywords ( "Paris, France" ) gmap. We can clean actually this code up by moving them to using statements: using GMap.NET using using using You’ll see a lot of namespace prefixes here: GMap.NET, and. Here is the full code that creates a map and adds a single marker to it: gmap. The latter approach allows you to show or hide all markers in one go, while leaving the polygons and routes visible – but it’s up to you. You can mix markers, polygons and routes all in the same overlay, or you can add them to separate overlays. Create a new marker and add it to the overlay.Īnything that you ever want to place on a map (be it markers, polygons, or routes) must live in an overlay.

