generator-leaflet
v0.0.17
Published
Yeoman generator that scaffolds out a very basic leaflet map application.
Downloads
7
Maintainers
Readme
generator-leaflet
Yeoman generator that scaffolds out a very basic leaflet map application.
Features
- Basic map with a stamen layer as default
- TopoJSON support (optional)
- Dev environment managed with gulp
- Auto reload (gulp-connect)
- CSS, JS and image minification (gulp-ccso, gulp-uglify, gulp-imagemin)
Requirements
You need Yeoman in order to run the leaflet generator.
Install Yeoman with npm install -g yo
Getting Started
- Install:
npm install -g generator-leaflet
- Create Folder:
mkdir my-map-app && cd my-map-app
- Scaffold App:
yo leaflet
- Run
gulp
for building andgulp watch
for preview
Example
This is what you get, after building the app Example Map Application (the header is optional). Moreover you can enable TopoJSON support and jQuery if you need it.
License
MIT