package
Pipe geojson into a map
npm install leaflet-streamGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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()
This module is similar to and inspired by leaflet-geojson-stream
Estimated unpacked size across 10 packages.
4.0 MB
Includes dependencies.