leaflet-map
simple way to make a leaflet map application
usage
var L = var leafletMap = var map = L L
Use with browserify for best results!
run the example
from the project root,
$ npm run example
api
leafletMap(opt?: Object) => LeafletMap
creates a DOM Element
and initializes a Leaflet map in it.
opt
is an object with any of the following properties:
defaultStyle
boolean (default:true
). Whether to include CSS and set basic page styling to render a full-page map.
installation
$ npm install leaflet-map
running the tests
From package root:
$ npm install
$ npm test
contributors
- jden jason@denizac.org
license
ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md