Install Leaflet.markercluster
masterInclude the plugin CSS and JS files on your page after Leaflet files. You can install via npm, use a CDN, or download the release manually.
Files required from the dist folder:
MarkerCluster.cssMarkerCluster.Default.css(only if you are NOT using a customiconCreateFunction)leaflet.markercluster.js(orleaflet.markercluster-src.jsfor the non-minified version)
Installation methods:
- npm:
npm install leaflet.markercluster - unpkg CDN:
https://unpkg.com/leaflet.markercluster@1.4.1/dist/
npm install leaflet.markercluster