Plugins
DP.Blazor.MapLibre extends the core map through optional plugins — separate Razor Class Library projects that implement IMapLibrePlugin and register with the MapLibre component.
Plugins keep the core library free of optional dependencies while still giving you a typed C# API and isolated JavaScript modules.
Create your own
Start with Creating a plugin for the full walkthrough (RCL setup, JavaScript interop, registration, and disposal).
For architecture context, see Key concepts — Plugin system.
Available plugins
| Plugin | Package / project | Description |
|---|---|---|
| Terra Draw | DP.Blazor.MapLibre.TerraDrawPlugin |
Draw, measure, and Valhalla toolbars via maplibre-gl-terradraw |
| Map Compare | DP.Blazor.MapLibre.ComparePlugin |
Swipe slider to compare two maps with maplibre-gl-compare |
| Minimap | DP.Blazor.MapLibre.MinimapPlugin |
Overview map with viewport rectangle (mapboxgl-minimap) |
| Frame rate | DP.Blazor.MapLibre.FrameratePlugin |
Live FPS overlay while the map moves (mapbox-gl-framerate) |
| Geo grid | DP.Blazor.MapLibre.GeoGridPlugin |
Geographic graticule with coordinate labels (geogrid-maplibre-gl) |
| Starfield | DP.Blazor.MapLibre.StarfieldPlugin |
SVG starfield and globe glow (maplibre-gl-starfield) |
| Mapbox GL Draw | DP.Blazor.MapLibre.Examples.MapboxGlPlugin |
Reference plugin using Mapbox GL Draw (examples project) |
Live examples
Interactive demos for each plugin are under Plugin examples.