Description
ngx-leaflet is an open-source package from BlueHalo that integrates the Leaflet mapping library into Angular applications. It provides flexible, extensible components and directives for using Leaflet 0.7.x and 1.x in Angular projects. You install it from npm along with Leaflet and its peer dependencies, and add the Leaflet type definitions if you work in TypeScript. Getting started involves importing the Leaflet stylesheet, importing the LeafletDirective into your module or standalone component, or using the LeafletModule, and then creating and configuring a map through its options. The README documents the API, available extensions, a cookbook of common tasks, and how to get help. A demo app can be run locally with the Angular CLI, and a changelog helps you pick the right version if you are not on the latest Angular release.…
Highlights
- Leaflet maps in Angular apps
- Supports Leaflet 0.7.x and 1.x
- Directive for standalone components or module import
- TypeScript support with Leaflet typings
- Extensions, cookbook and runnable demo
Ratings & Reviews
No ratings yet
Be the first to rate ngx-leaflet.
People also visit
ngx-leaflet FAQ
What is ngx-leaflet?
An Angular package that provides components and directives for using Leaflet maps in Angular projects.
How do I install it?
Install the package and its peer dependencies from npm or yarn; add Leaflet typings for TypeScript projects.
How do I add a map?
Import the Leaflet stylesheet, import LeafletDirective into your module or standalone component (or use LeafletModule), then create and configure a map.
I am on an older Angular version. What should I use?
Check CHANGES.md to find the ngx-leaflet version that matches your Angular release.
What are the best ngx-leaflet alternatives?
Popular alternatives to ngx-leaflet include ngx-mapbox-gl, ngx-maplibre-gl and react-leaflet. See all ngx-leaflet alternatives




















