@ng-maps/marker-clusterer
v6.0.0
Published
**@ng-maps/marker-clusterer** is a wrapper around [MarkerClusterer](https://github.com/googlemaps/js-markerclusterer)
Downloads
759
Maintainers
Readme
@ng-maps/marker-clusterer
@ng-maps/marker-clusterer is a wrapper around MarkerClusterer
Installation
- Npm:
npm install @ng-maps/marker-clusterer
- Yarn:
yarn add @ng-maps/marker-clusterer
Add NgMapsMarkerClustererModule
to your AppModule
Usage
MarkerClusterer
Add marker clusterer component around markers
<map-view [latitude]="48.858222" [longitude]="2.2945" [zoom]="8">
<map-marker-cluster>
<map-marker [latitude]="48.858222" [longitude]="2.2945"></map-marker>
</map-marker-cluster>
</map-view>
MarkerClustererOptions
The only options that can be passed to the marker clusterer are the renderer and algorithm. You might want to check their documentation: https://googlemaps.github.io/js-markerclusterer/
Additional features
Other features are provided in submodules. Find out more on the project page at github