package
simple way to make a leaflet map application
npm install leaflet-mapGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
3.6 MB
Includes dependencies.
simple way to make a leaflet map application
var L = require('leaflet')
var leafletMap = require('leaflet-map')
var map = leafletMap()
L.tileLayer('https://{s}.tiles.mapbox.com/v3/examples.map-i86knfo3/{z}/{x}/{y}.png')
.addTo(map)
L.marker([0,0])
.bindPopup('Null Island!')
.addTo(map)Use with browserify for best results!
from the project root,
$ npm run exampleleafletMap(opt?: Object) => LeafletMapcreates 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.$ npm install leaflet-mapFrom package root:
$ npm install
$ npm testISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md