GMap.NET Documentation

repository·master·Indexed 19 days ago

https://github.com/judero01col/gmap.net

An open-source .NET library providing map controls for Windows Forms, WPF, and Avalonia. It supports multiple map providers including Google, Bing, and OpenStreetMap, and offers features for routing, geocoding, directions, and interactivity with markers and polygons.

Tokens
546
Snippets
1
Records
4
Agent score
18%

What's inside GMap.NET

  1. Overview of GMap.NET capabilities

    master

    GMap.NET is a cross-platform .NET control for Windows Forms, Presentation (WPF), and Avalonia. It provides high-level abstractions for map-based features including:

    • Map Providers: Support for Google, Yahoo!, Bing, OpenStreetMap, ArcGIS, Pergo, SigPac, Yendux, Mapy.cz, Maps.lt, iKarte.lv, NearMap, HereMap, CloudMade, WikiMapia, MapQuest, and more.
    • Routing & Directions: Calculate routes and directions using various providers.
    • Geocoding: Convert addresses to coordinates and vice versa.
    • Interactivity: Support for markers, routes, polygons, and mouse/touch events (click, double-click, drag, pinch, and zoom).
  2. Install GMap.NET via NuGet

    master

    GMap.NET is distributed via NuGet packages. Depending on your UI framework (Windows Forms, WPF/Presentation, or Avalonia), you should install the corresponding package. The GMap.NET.Core package is a required dependency for all UI implementations.

    To install using the Package Manager Console, use the following commands:

    Core Logic (Required):

    Install-Package GMap.NET.Core

    UI Frameworks:

    • Windows Forms: Install-Package GMap.NET.WinForms
    • Windows Forms Utilities: Install-Package GMap.NET.WinForms.Utils
    • WPF / Presentation: Install-Package GMap.NET.WinPresentation
    • Avalonia: Install-Package GMap.NET.WinAvalonia
    PM> Install-Package GMap.NET.Core
    PM> Install-Package GMap.NET.WinForms
    PM> Install-Package GMap.NET.WinForms.Utils
    PM> Install-Package GMap.NET.WinPresentation
    PM> Install-Package GMap.NET.WinAvalonia
  3. Use GMap.NET Windows Forms Utils for LINQPad

    master

    The GMap.NET.WinForms.Utils package provides extensions for LINQPad to facilitate map debugging and visualization. You can use the following methods to quickly add visual elements to a map within a new result pane:

    • .DumpMarkers(): Adds markers to the map.
    • .DumpRoute(): Adds route lines to the map.