leaflet.markercluster.webpack

    1.0.2 • Public • Published

    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" 
    }

    Install

    npm i leaflet.markercluster.webpack

    DownloadsWeekly Downloads

    31

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • vmvini