Socket
Socket
Sign inDemoInstall

leaflet-stream

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-stream - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

example.geojson

12

index.js

@@ -8,6 +8,5 @@ var L = require('leaflet')

function write(chunk, enc, next) {
var layer = L.geoJson(chunk)
var label = createLabel(chunk.properties)
if(label.length > 0) layer.bindPopup(label)
var layer = L.geoJson(chunk, {
onEachFeature: createPopup
})
layer.addTo(map)

@@ -20,2 +19,7 @@ next()

function createPopup(feature, layer) {
var label = createLabel(feature.properties)
if(label.length > 0) layer.bindPopup(label)
}
function createLabel(props) {

@@ -22,0 +26,0 @@ if(!props) return ''

{
"name": "leaflet-stream",
"version": "1.0.1",
"version": "1.1.0",
"description": "Pipe geojson into a map",

@@ -5,0 +5,0 @@ "main": "index.js",

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