Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepika SawantRank #242 · 10.2K reputationPosted Sep 15, 2025, 11:48 AM EDT
How to Use GMap.NET in WinForms
Here’s a step-by-step guide to get you started:
1. Install via NuGet
In Visual Studio, open the Package Manager Console and run:
This brings in the core libraries and the WinForms-specific controls.
2. Add the Map Control
GMapControlfrom the toolbox onto your form (or add it programmatically).Dock,MapProvider, andPosition.3. Initialize the Map
In your form’s constructor or
Loadevent:4. Add Markers or Routes
You can overlay markers or draw paths:
var markers = new GMap.NET.WindowsForms.GMapOverlay("markers"); var marker = new GMap.NET.WindowsForms.Markers.GMarkerGoogle( new GMap.NET.PointLatLng(19.2183, 72.9781), GMap.NET.WindowsForms.Markers.GMarkerGoogleType.red_dot); markers.Markers.Add(marker); gmap.Overlays.Add(markers);Supported Map Providers
GMap.NET supports:
?? Resources