leaflet.markercluster.webpack
v1.0.2
Published
This is the [email protected] adapted to webpack
Downloads
158
Readme
Leaflet.markercluster.webpack
Leaflet markercluster (https://github.com/Leaflet/Leaflet.markercluster) structured with webpack.
Install
Install with npm: npm install --save leaflet.markercluster.webpack
Usage
require('leaflet.markercluster.webpack');
Notes
This module already requires 'leaflet', so don't require it again. Also, the css files from leaflet and markercluster are already required too.
Also, the L object is exposed:
var L = require('leaflet.markercluster.webpack');
Build Notes
As this module requires some css files, you have to install a css loader.
Installing:
npm install --save-dev css-loader style-loader
And configure the loader in webpack.config:
{
test: /\.css$/, loader: "style-loader!css-loader"
}