Socket
Socket
Sign inDemoInstall

leaflet-map

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-map

simple way to make a leaflet map application


Version published
Weekly downloads
1.4K
increased by15.4%
Maintainers
1
Weekly downloads
 
Created
Source

leaflet-map

simple way to make a leaflet map application

usage

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!

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

license

ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md

Keywords

FAQs

Package last updated on 04 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc