Community.Blazor.MapLibre 0.3.5-dev-02

This is a prerelease version of Community.Blazor.MapLibre.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Community.Blazor.MapLibre --version 0.3.5-dev-02
                    
NuGet\Install-Package Community.Blazor.MapLibre -Version 0.3.5-dev-02
                    
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="Community.Blazor.MapLibre" Version="0.3.5-dev-02" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Community.Blazor.MapLibre" Version="0.3.5-dev-02" />
                    
Directory.Packages.props
<PackageReference Include="Community.Blazor.MapLibre" />
                    
Project file
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 Community.Blazor.MapLibre --version 0.3.5-dev-02
                    
#r "nuget: Community.Blazor.MapLibre, 0.3.5-dev-02"
                    
#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 Community.Blazor.MapLibre@0.3.5-dev-02
                    
#: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=Community.Blazor.MapLibre&version=0.3.5-dev-02&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Community.Blazor.MapLibre&version=0.3.5-dev-02&prerelease
                    
Install as a Cake Tool

<a id="readme-top"></a>

Contributors Forks Stargazers Unlicense License Issues NuGet

<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="#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

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Usage

After the package is installed you can use it with simple:

<Map />

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() ☑️ Partially Implemented
- listens() ✅ Complete
- listImages() ✅ Complete
- loaded() ✅ Complete
- loadImage() ☑️ Partially Implemented
- moveLayer() ✅ Complete
- panBy() ☑️ Partially Implemented
- panTo() ☑️ Partially Implemented
- project() ☑️ Partially Implemented
- queryRenderedFeatures() ☑️ Partially Implemented
- querySourceFeatures() ☑️ Partially Implemented
- queryTerrainElevation() ☑️ Partially Implemented
- redraw() ✅ Complete
- remove() ✅ Complete
- removeControl() ☑️ Partially Implemented
- removeFeatureState() ☑️ Partially Implemented
- removeImage() ✅ Complete
- removeLayer() ✅ Complete
- removeSource() ✅ Complete
- removeSprite() ✅ Complete
- resetNorth() ☑️ Partially Implemented
- resetNorthPitch() ☑️ Partially Implemented
- resize() ☑️ Partially Implemented
- rotateTo() ☑️ Partially Implemented
- setBearing() ✅ Complete
- setCenter() ☑️ Partially Implemented
- setCenterClampedToGround() ✅ Complete
- setCenterElevation() ✅ Complete
- setFeatureState() ☑️ Partially Implemented
- setZoom() ✅ Complete
- setStyle() ☑️ Partially Implemented
- stop() ✅ Complete
- unproject() ☑️ Partially Implemented
- updateImage() ☑️ Partially Implemented
- zoomIn() ☑️ Partially Implemented
- zoomOut() ☑️ Partially Implemented
- zoomTo() ☑️ Partially Implemented

</details>

Feature Status
Markers ❌ Not started
Feature Status
Popup ❌ Not started

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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>

License

Distributed under the Unlicense License. See UNLICENSE for more information.

<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 137 7/29/2025
1.1.0 498 7/22/2025
1.0.6 124 7/16/2025
1.0.5 174 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 934 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