# leaflet-map

> simple way to make a leaflet map application

Latest version **0.2.1** (published 2014-08-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install leaflet-map
pnpm add leaflet-map
yarn add leaflet-map
bun add leaflet-map
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-08-24 |
| First published | 2014-06-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jden |
| Maintainers | jden |
| Keywords | leaflet, browserify |

## Links

- npm: https://www.npmjs.com/package/leaflet-map
- Repository: git@github.com:jden/node-leaflet-map
- Homepage: https://github.com/jden/node-leaflet-map
- Issues: https://github.com/jden/node-leaflet-map/issues
- npm.io page: https://npm.io/package/leaflet-map

## Dependencies (1)

- [leaflet](https://npm.io/package/leaflet.md) ^0.7.3

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2014-08-24
- 0.2.0 — 2014-08-24
- 0.1.0 — 2014-06-04

## README

# leaflet-map
simple way to make a leaflet map application

## usage
```js
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](https://npm.im/browserify) for best results!

## run the example
from the project root,
```console
$ 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

---
_Source: https://npm.io/package/leaflet-map · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
