Esri Leaflet plugin for visualizing Feature Layers as clusters with L.markercluster.
npm install esri-leaflet-cluster
html
Clustering points
integrity="sha512-wcw6ts8Anuw10Mzh9Ytw4pylW8+NAD4ch3lqm9lzAsTxg0GFeJgoAtxuCLREZSC5lUXdVyo/7yfsqFjQ4S+aKw=="
crossorigin=""/>
integrity="sha512-mNqn2Wg7tSToJhvHcqfzLMU6J4mkOImSPTxVZAdo+lcPlk+GhZmYgACEe0x35K7YzW1zJ7XyJV/TT1MrdXvMcA=="
crossorigin="">
integrity="sha512-Tojl3UMd387f6DdAJlo+fKfJZiP55fYT+6Y58yKbHydnueOdSFOxrgLPuUxm7VW1szEt3hZVwv3V2sSUCuT35w=="
crossorigin="">
`
$3
A full API Reference and examples can be found on the Esri Leaflet website.
$3
If you'd like to inspect and modify the source of Esri Leaflet Cluster, follow the instructions below to set up a local development environment.
1. Fork and clone Esri Leaflet Cluster
2. cd into the esri-leaflet-cluster folder
3. Install the package.json dependencies by running npm install
4. Run npm start from the command line. This will compile minified source in a brand new dist directory, launch a tiny webserver and begin watching the raw source for changes.
5. Run npm test to make sure you haven't introduced a new 'feature' accidentally.
6. Make your changes and create a pull request
$3
* version 1.0.2 (available on CDN) can be used in apps alongside:
* Leaflet version 0.7.x.
* Esri Leaflet version 1.x
* Leaflet.markercluster version 0.4
* version 2.0.0 (available on CDN) can be used in apps alongside:
* Leaflet version 1.x.
* Esri Leaflet version 2.x
* Leaflet.markercluster version 1.x`