1.1.0 • Published 9 years ago

leaflet-stream v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

leaflet-stream

NPM

Install with npm install leaflet-stream.

Pipe geojson objects into a leaflet map object. Every object will be on their own layer and geojson properties will be converted to popups.

var leafletstream = require('leaflet-stream')

var stream = leafletstream(map)

stream.write({
    "type": "Feature",
    "properties": {
      "name": "Eiffel Tower",
      "description": "The Eiffel Tower is an iron lattice tower located on the Champ de Mars in Paris.",
      "rating": 4.7,
      "height": "301m"
    },
    "geometry": {
        "type": "Point",
        "coordinates": [2.294481,48.85837]
    }
})

stream.end()

Eiffel Tower

This module is similar to and inspired by leaflet-geojson-stream

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago