Community.Blazor.MapLibre
1.0.4
See the version list below for details.
dotnet add package Community.Blazor.MapLibre --version 1.0.4
NuGet\Install-Package Community.Blazor.MapLibre -Version 1.0.4
<PackageReference Include="Community.Blazor.MapLibre" Version="1.0.4" />
<PackageVersion Include="Community.Blazor.MapLibre" Version="1.0.4" />
<PackageReference Include="Community.Blazor.MapLibre" />
paket add Community.Blazor.MapLibre --version 1.0.4
#r "nuget: Community.Blazor.MapLibre, 1.0.4"
#:package Community.Blazor.MapLibre@1.0.4
#addin nuget:?package=Community.Blazor.MapLibre&version=1.0.4
#tool nuget:?package=Community.Blazor.MapLibre&version=1.0.4
<a id="readme-top"></a>
<br /> <div align="center"> <a> <img src="https://maplibre.org/_astro/maplibre-logo.wyLiUNdu_Zcg5mX.svg" alt="Logo" width="300" height="100"> </a>
<h3 align="center">Blazor.MapLibre</h3>
<p align="center"> A C# wrapper around MapLibre GL JS library <br /> <br /> <a href="https://yet-another-solution.github.io/Blazor.MapLibre/">View Demo</a> · <a href="https://github.com/Yet-another-solution/Blazor.MapLibre/issues/new?labels=bug&template=bug-report---.md">Report Bug</a> · <a href="https://github.com/Yet-another-solution/Blazor.MapLibre/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a> </p> </div>
<details> <summary>Table of Contents</summary> <ol> <li> <a href="#about-the-project">About The Project</a> </li> <li> <a href="#getting-started">Getting Started</a> <ul> <li><a href="#prerequisites">Prerequisites</a></li> <li><a href="#installation">Installation</a></li> </ul> </li> <li><a href="#usage">Usage</a></li> <li><a href="#roadmap">Roadmap</a></li> <li><a href="#contributing">Contributing</a></li> <li><a href="#disclaimer">Disclaimer</a></li> <li><a href="#license">License</a></li> <li><a href="#acknowledgments">Acknowledgments</a></li> </ol> </details>
About The Project
This project should help people working on Blazor projects to use maps more easily.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Getting Started
Prerequisites
This project is created on .NET 9 so you need to use this or never version to run it.
Installation
Install the package:
dotnet add package Community.Blazor.MapLibre
For Blazor Server and Blazor Web App, add this to head of your file to load the css of the maps.
<link href="_content/Community.Blazor.MapLibre/maplibre-5.3.0.min.css" rel="stylesheet" />
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Usage
After the package is installed you can use it with simple:
<MapLibre />
You can customize the map more with options using MapOptions.cs
:
<MapLibre Options="_mapOptions"></MapLibre>
@code
{
private readonly MapOptions _mapOptions = new MapOptions();
}
Roadmap
- ✅ Completed
- ☑️ Partially implemented (missing C# models,...)
- ❌ Not started
Feature | Status |
---|---|
Map | ☑️ Partially implemented |
<details> <summary> Map Implementation </summary>
Feature | Status |
---|---|
Map | ☑️ Partially implemented |
- Options | ✅ Complete |
Events | |
- on() | ✅ Complete |
- off() | ❌ Not started |
- once() | ❌ Not started |
Methods | |
- addControl() | ☑️ Partially Implemented |
- addImage() | ☑️ Partially Implemented |
- addLayer() | ✅ Complete |
- addSource() | ✅ Complete |
- addSprite() | ☑️ Partially Implemented |
- areTilesLoaded() | ✅ Complete |
- calculateCameraOptionsFromCameraLngLatAltRotation() | ✅ Complete |
- calculateCameraOptionsFromTo() | ✅ Complete |
- cameraForBounds() | ☑️ Partially Implemented |
- easeTo() | ✅ Complete |
- fitBounds() | ✅ Complete |
- fitScreenCoordinates() | ✅ Complete |
- flyTo() | ✅ Complete |
- getBearing() | ✅ Complete |
- getBounds() | ✅ Complete |
- getCameraTargetElevation() | ✅ Complete |
- getCanvas() | ✅ Complete |
- getCanvasContainer() | ✅ Complete |
- getCenter() | ✅ Complete |
- getCenterClampedToGround() | ✅ Complete |
- getCenterElevation() | ✅ Complete |
- getContainer() | ✅ Complete |
- getFeatureState() | ☑️ Partially Implemented |
- getFilter() | ✅ Complete |
- getGlyphs() | ✅ Complete |
- getImage() | ✅ Complete |
- getLayer() | ✅ Complete |
- getLayersOrder() | ✅ Complete |
- getLayoutProperty() | ☑️ Partially Implemented |
- getLight() | ☑️ Partially Implemented |
- getMaxBounds() | ☑️ Partially Implemented |
- getMaxPitch() | ✅ Complete |
- getMaxZoom() | ✅ Complete |
- getMinPitch() | ✅ Complete |
- getMinZoom() | ✅ Complete |
- getPadding() | ☑️ Partially Implemented |
- getPaintProperty() | ☑️ Partially Implemented |
- getPitch() | ✅ Complete |
- getPixelRatio() | ✅ Complete |
- getProjection() | ☑️ Partially Implemented |
- getRenderWorldCopies() | ✅ Complete |
- getRoll() | ✅ Complete |
- getSky() | ☑️ Partially Implemented |
- getSource() | ☑️ Partially Implemented |
- getSprite() | ☑️ Partially Implemented |
- getStyle() | ☑️ Partially Implemented |
- getTerrain() | ☑️ Partially Implemented |
- getVerticalFieldOfView() | ✅ Complete |
- getZoom() | ✅ Complete |
- hasControl() | ☑️ Partially Implemented |
- hasImage() | ✅ Complete |
- isMoving() | ✅ Complete |
- isRotating() | ✅ Complete |
- isSourceLoaded() | ✅ Complete |
- isStyleLoaded() | ✅ Complete |
- isZooming() | ✅ Complete |
- jumpTo() | ✅ Complete |
- listens() | ✅ Complete |
- listImages() | ✅ Complete |
- loaded() | ✅ Complete |
- loadImage() | ☑️ Partially Implemented |
- moveLayer() | ✅ Complete |
- panBy() | ✅ Complete |
- panTo() | ✅ Complete |
- project() | ✅ Complete |
- queryRenderedFeatures() | ☑️ Partially Implemented |
- querySourceFeatures() | ✅ Complete |
- queryTerrainElevation() | ✅ Complete |
- redraw() | ✅ Complete |
- remove() | ✅ Complete |
- removeControl() | ☑️ Partially Implemented |
- removeFeatureState() | ✅ Complete |
- removeImage() | ✅ Complete |
- removeLayer() | ✅ Complete |
- removeSource() | ✅ Complete |
- removeSprite() | ✅ Complete |
- resetNorth() | ✅ Complete |
- resetNorthPitch() | ✅ Complete |
- resize() | ✅ Complete |
- rotateTo() | ✅ Complete |
- setBearing() | ✅ Complete |
- setCenter() | ✅ Complete |
- setCenterClampedToGround() | ✅ Complete |
- setCenterElevation() | ✅ Complete |
- setFeatureState() | ✅ Complete |
- setZoom() | ✅ Complete |
- setStyle() | ☑️ Partially Implemented |
- stop() | ✅ Complete |
- unproject() | ✅ Complete |
- updateImage() | ☑️ Partially Implemented |
- zoomIn() | ✅ Complete |
- zoomOut() | ✅ Complete |
- zoomTo() | ✅ Complete |
</details>
Feature | Status |
---|---|
Markers | ✅ Complete |
Feature | Status |
---|---|
Popup | ✅ Complete |
See the open issues for a full list of proposed features (and known issues).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Top contributors:
<a href="https://github.com/Yet-another-solution/Blazor.MapLibre/graphs/contributors"> <img src="https://contrib.rocks/image?repo=Yet-another-solution/Blazor.MapLibre" alt="contrib.rocks image" /> </a>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Disclaimer
Community.Blazor.MapLibre is provided "as-is," without warranties of any kind, express or implied. The author(s) make no guarantees regarding the accuracy, reliability, or suitability of the software for any particular purpose.
By using this library, you acknowledge that:
- The software is open-source and freely available, with no assurances of ongoing maintenance or support.
- The author(s) are not liable for any damages, data loss, or operational failures resulting from its use.
- Users assume full responsibility for implementing proper security and compliance measures when integrating this library into their applications.
- The software may change over time, and updates may introduce modifications or remove certain features.
Use of Community.Blazor.MapLibre is at your own risk, and contributions or modifications by third parties are not officially vetted. If you encounter issues or bugs, reporting them via the official repository is encouraged, but resolution is not guaranteed.
For licensing details, refer to the Unlicense statement included with the repository.
License
This project, Community.Blazor.MapLibre, is released under the Unlicense, meaning it is free and unencumbered software dedicated to the public domain.
However, this library is a wrapper around MapLibre GL JS, which is licensed under the BSD-3-Clause license. Users must comply with the original library’s license when using this wrapper.
For details on MapLibre GL JS licensing, visit: MapLibre GL JS License.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Acknowledgments
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
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 (>= 8.0.10)
- OneOf (>= 3.0.271)
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 |
---|---|---|
1.2.0 | 138 | 7/29/2025 |
1.1.0 | 498 | 7/22/2025 |
1.0.6 | 124 | 7/16/2025 |
1.0.5 | 175 | 6/24/2025 |
1.0.4 | 154 | 6/19/2025 |
1.0.3 | 146 | 6/18/2025 |
1.0.2 | 206 | 6/8/2025 |
1.0.1 | 142 | 5/30/2025 |
1.0.0 | 91 | 5/23/2025 |
0.3.7 | 215 | 5/11/2025 |
0.3.6 | 943 | 4/30/2025 |
0.3.5-dev-04 | 169 | 4/21/2025 |
0.3.5-dev-03 | 171 | 4/6/2025 |
0.3.5-dev-02 | 171 | 3/30/2025 |
0.3.5-dev-01 | 134 | 3/27/2025 |
0.3.4 | 218 | 2/6/2025 |
0.3.3 | 133 | 2/1/2025 |
0.3.2 | 123 | 2/1/2025 |
0.3.1 | 121 | 2/1/2025 |
0.3.0 | 117 | 1/28/2025 |
0.2.0 | 112 | 1/26/2025 |
0.1.0 | 114 | 1/19/2025 |
0.0.2 | 107 | 1/15/2025 |
0.0.1 | 95 | 1/12/2025 |