LeafletForBlazor 4.0.0.22
dotnet add package LeafletForBlazor --version 4.0.0.22
NuGet\Install-Package LeafletForBlazor -Version 4.0.0.22
<PackageReference Include="LeafletForBlazor" Version="4.0.0.22" />
<PackageVersion Include="LeafletForBlazor" Version="4.0.0.22" />
<PackageReference Include="LeafletForBlazor" />
paket add LeafletForBlazor --version 4.0.0.22
#r "nuget: LeafletForBlazor, 4.0.0.22"
#:package LeafletForBlazor@4.0.0.22
#addin nuget:?package=LeafletForBlazor&version=4.0.0.22
#tool nuget:?package=LeafletForBlazor&version=4.0.0.22
Leaflet Map for Blazor
Leaflet for Blazor is a library that provides components for displaying map in Blazor applications.
π KEYWORDS: Pure C# - Write map logic entirely in .NET / no JavaScript interop boilerplate, LINQ Integration - Destructuring/Structuring LINQ expression, Fluent API - objects Hierarchical and Linguistic structure and Chain methods, Zero JavaScript Config - no script references and no css links etc
π§© Version 4.0 rehydrates the Map control. The new control will inherit the minimalism of the Map control and the optimizations of the RealTimeMap control.
βοΈ Core Concepts
No JavaScript or HTML specific configurations required, no API script configurations, no CSS references, no HTML items etc.Optimized codethrough various solutions- minimizing the number of calls to JavaScript;
- collection searches by
destructuring and structuring LINQ expressions; - fluent API, a design pattern that allows code to be written in a readable way, similar to an English sentence
- redusing size of the JavaScript code by removing unused code.
- Memory Cache
π Quick Start
π§ Basic configuration
π΅ Add the Map component to your project in just 3 steps:
- add LeafletForBlazor NuGet package:
Using Visual Studio interface:
- Tools β NuGet Package Manager β Manage NuGet Packages for Solution...
Search for "LeafletForBlazor" and add the package to the project or solution.
Or using Visual Studio console:
Tools β NuGet Package Manager β Package Manager Console
NuGet\Install-Package LeafletForBlazor
- add the LeafletForBlazor namespace to the project, using the @using directive
To do this, add the following directives to the _Imports.razor file
@using LeafletForBlazor
@using static LeafletForBlazor.Map
- Configuring the Blazor page (which will host the Map control):
The @using directive allows selecting the API for generating the map:
@using static LeafletForBlazor.techs.maps.Leaflet
πΊοΈ Add Map
Adding the map to the blazor page:
<Map height="calc(100vh - 1rem)" width="calc(100vw - 2rem)"/>
π§ Map configuration
The loadParameter parameter of the Map component allows you to configure the map at initialization. The initialization parameters are:
π
Locationof the center of the displayed map (View of Map):location = new Location() { latitude = 45.2831589721668, longitude = 27.98740645063448 },π
Zoom LevelzoomLevel = 12,ποΈ Configuring
map controlsmapControls = new MapControls() { layerList = new LayerList() { position = Position.topRight }, scaleBar = new ScaleBar() { position = Position.bottomRight, unitOfScaleBar = UnitOfScaleBar.metric },
more about Map Configuration - Blazor WebAssembly Standalone App
more about Map Configuration - .NET MAUI Blazor Hybrid App
π StreamPoint collection
StreamPoint collection provides real-time map synchronization - any property change (coordinates, appearance, timestamp) instantly updates the map visualization. Objects are cached for performance but remain fully dynamic.
The StreamPoint collection is hosted by @map.Geometric.Points and provides operating functionalities with a predefined but hierarchically extensible root data structure.
more about StreamCollection - Blazor WebAssembly Standalone App
more about StreamCollection - .NET MAUI Blazor Hybrid App
π¨ Appearance
Appearance is a method that accepts Expression<Func<T, bool>> predicates and allows filtering and applying different styles to the elements displayed in the map:
await map.Geometric.Points.Appearance(e.type => e.type == "Market").SetStyle(...).SetLabel(...);
more about Appearance - Blazor WebAssembly Standalone App
more about Appearance - .NET MAUI Blazor Hybrid App
π οΈ Settings
Here you can configure how the collection of points displayed on the map behaves.
map.Geometric.Points.settings = new LeafletForBlazor.techs.core.Geometry.Points.Settings(){};
β‘ Events
StreamPoint Collection Events.
π Dashboard
StreamPoint collection can be used to monitor moving targets: vehicles, boats, aircraft, even fleets of vehicles, drones and so one.
O-L I - αΆβ΄Λ‘α΅β·α΅β΅α΅αΆ Λ‘α΅β·βΈα΅βΏ π
Thank you for choosing this package!
Laurentiu Ichim
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.11)
- Microsoft.Extensions.Caching.Memory (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.3)
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 |
|---|---|---|
| 4.0.0.22 | 0 | 7/30/2026 |
| 4.0.0.2 | 115 | 7/27/2026 |
| 4.0.0 | 180 | 7/24/2026 |
| 2.4.6.28 | 7,524 | 3/10/2026 |
| 2.4.6.26 | 1,678 | 2/19/2026 |
| 2.4.6.24 | 989 | 2/12/2026 |
| 2.4.6.22 | 313 | 2/11/2026 |
| 2.4.6.2 | 394 | 2/8/2026 |
| 2.4.6 | 292 | 2/5/2026 |
| 2.4.4.88 | 1,931 | 1/25/2026 |
| 2.4.4.86 | 334 | 1/21/2026 |
| 2.4.4.84 | 306 | 1/18/2026 |
| 2.4.4.82 | 354 | 1/17/2026 |
| 2.4.4.8 | 646 | 1/14/2026 |
| 2.4.4.6 | 189 | 1/13/2026 |
| 2.4.4.4 | 308 | 1/9/2026 |
| 2.4.4.2 | 392 | 1/5/2026 |
| 2.4.4 | 205 | 1/4/2026 |
| 2.4.2 | 222 | 12/31/2025 |
| 2.4.0.8 | 169 | 12/31/2025 |
1. @map.Geometric.Points.settings/animationSettings
2. @map.Geometric.Points.settings/extentSettings
3. isAnimationEnabled(bool) - Increase/Decrease animation mouse over chart
4. isFitExtentEnabled - Add/Update - change current Extent of Map View.