generator-leaflet

0.0.17 • Public • Published

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 and gulp 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

Package Sidebar

Install

npm i generator-leaflet

Weekly Downloads

0

Version

0.0.17

License

MIT

Last publish

Collaborators

  • moklick