LeafletForBlazor 4.0.0.2
See the version list below for details.
dotnet add package LeafletForBlazor --version 4.0.0.2
NuGet\Install-Package LeafletForBlazor -Version 4.0.0.2
<PackageReference Include="LeafletForBlazor" Version="4.0.0.2" />
<PackageVersion Include="LeafletForBlazor" Version="4.0.0.2" />
<PackageReference Include="LeafletForBlazor" />
paket add LeafletForBlazor --version 4.0.0.2
#r "nuget: LeafletForBlazor, 4.0.0.2"
#:package LeafletForBlazor@4.0.0.2
#addin nuget:?package=LeafletForBlazor&version=4.0.0.2
#tool nuget:?package=LeafletForBlazor&version=4.0.0.2
Leaflet Map for Blazor
Leaflet for Blazor is a library that provides components for displaying map in Blazor applications. Allows developers to easily integrate interactive maps, without any JavaScript settings, into their Blazor projects.
π KEYWORDS: Minimizing Invoke callers to JavaScript, No JavaScript specific settings, no script references, no css links.
π§© 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
- 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 },
π StreamPoint collection
The StreamPoint collection is hosted by @map.Geometric.Points and provides operating functionalities with a predefined but hierarchically extensible root data structure.
π 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. Marker - SetStyle, Unreported bug
2. Improve GaugeChart Appearance,
3. Interactive Charts with increaseScaleFactorOnMouseover. Increase the size of the chart when the mouse pointer is over the StreamPoint.