Spillgebees.Blazor.Map
0.23.0
dotnet add package Spillgebees.Blazor.Map --version 0.23.0
NuGet\Install-Package Spillgebees.Blazor.Map -Version 0.23.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spillgebees.Blazor.Map" Version="0.23.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spillgebees.Blazor.Map" Version="0.23.0" />
<PackageReference Include="Spillgebees.Blazor.Map" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Spillgebees.Blazor.Map --version 0.23.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spillgebees.Blazor.Map, 0.23.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Spillgebees.Blazor.Map@0.23.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Spillgebees.Blazor.Map&version=0.23.0
#tool nuget:?package=Spillgebees.Blazor.Map&version=0.23.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Spillgebees.Blazor.Map
Spillgebees.Blazor.Map is a Blazor map component powered by MapLibre GL JS.
See the documentation and demos for guides, examples, and live components.
Features
- Declarative Blazor API for sources, layers, markers, shapes, popups, controls, and overlays
- Performant entity tracking with smooth animation, clustering, decorations, and interactivity
- Composable map styles: multiple base styles, raster/WMS overlays, light/dark themes
Getting started
Install the package:
dotnet add package Spillgebees.Blazor.Map
Load the stylesheet. In a Blazor Web App or Blazor Server app (App.razor), use @Assets to serve the fingerprinted, cache-busted file:
<link rel="stylesheet" href="@Assets["_content/Spillgebees.Blazor.Map/Spillgebees.Blazor.Map.lib.module.css"]" />
In a standalone Blazor WebAssembly app (index.html), use the plain path (or add your own cache-busting mechanism):
<link rel="stylesheet" href="_content/Spillgebees.Blazor.Map/Spillgebees.Blazor.Map.lib.module.css" />
The JS module loads with a JS initializer.
Quick example
<SgbMap Center="@(new Coordinate(49.6117, 6.1319))"
Zoom="12"
Style="@MapStyle.OpenFreeMap.Liberty"
Height="400px"
Width="100%">
<MapControls>
<NavigationMapControl />
<ScaleMapControl />
</MapControls>
<MapSources>
<GeoJsonSource Id="railway" Data="@_railwayGeoJson">
<LineLayer Id="tracks" Color="@("#475569")" Width="2" />
</GeoJsonSource>
</MapSources>
<MapFeatures>
<MapMarker Id="luxembourg-city"
Position="@(new Coordinate(49.6117, 6.1319))"
Title="Luxembourg City"
Popup="@_luxembourgPopup" />
</MapFeatures>
</SgbMap>
@code {
private readonly string _railwayGeoJson = """
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[6.1290, 49.5895],
[6.1334, 49.6006],
[6.1365, 49.6112],
[6.1330, 49.6219]
]
}
}
]
}
""";
private readonly PopupOptions _luxembourgPopup = PopupOptions.FromText("Luxembourg City");
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- BlazorComponentUtilities (>= 1.8.0)
- Microsoft.AspNetCore.Components.Web (>= 10.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.23.0 | 136 | 7/24/2026 |
| 0.22.0 | 113 | 6/30/2026 |
| 0.21.0 | 122 | 6/28/2026 |
| 0.20.0 | 127 | 6/26/2026 |
| 0.19.0 | 122 | 6/26/2026 |
| 0.18.0 | 131 | 6/22/2026 |
| 0.17.0 | 122 | 5/11/2026 |
| 0.16.0 | 131 | 5/11/2026 |
| 0.15.0 | 122 | 5/8/2026 |
| 0.14.0 | 119 | 5/4/2026 |
| 0.13.0 | 135 | 4/26/2026 |
| 0.12.0 | 135 | 4/1/2026 |
| 0.11.1 | 126 | 4/1/2026 |
| 0.11.0 | 128 | 3/23/2026 |
| 0.10.1 | 130 | 3/27/2026 |
| 0.10.0 | 138 | 1/22/2026 |
| 0.9.0 | 125 | 1/20/2026 |
| 0.8.0 | 264 | 9/25/2025 |
| 0.7.0 | 240 | 9/11/2025 |
Loading failed