Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sabarasaba/leafletmarkercluster


https://github.com/sabarasaba/leafletmarkercluster

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

Leaflet-Marker-Cluster
=====================

Forked from [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster).

### Extra features
* AMD/CommonJS support
* Leverage clusterClick action to users.

### Usage
Create a new MarkerClusterGroup, add your markers to it, then add it to the map

```javascript
var markers = new L.MarkerClusterGroup();
markers.addLayer(new L.Marker(getRandomLatLng(map)));
... Add more layers ...
map.addLayer(markers);
```