Skip to content

vmvini/leaflet.markercluster.webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

leaflet.markercluster@0.5.0 adapted to webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published