🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

leaflet-geocoder-ban

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-geocoder-ban - npm Package Compare versions

Comparing version

to
1.0.2

README.md

2

package.json
{
"name": "leaflet-geocoder-ban",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

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

@@ -198,10 +198,9 @@ /* global define, XMLHttpRequest */

this.collapse()
this.fire('markgeocode', {geocode: feature})
this.markGeocode(feature)
},
markGeocode: function (result) {
var f = result.geocode
var latlng = [f.geometry.coordinates[1], f.geometry.coordinates[0]]
markGeocode: function (feature) {
var latlng = [feature.geometry.coordinates[1], feature.geometry.coordinates[0]]
this.map.setView(latlng, 14)
this.geocodeMarker = new L.Marker(latlng)
.bindPopup(f.properties.label)
.bindPopup(feature.properties.label)
.addTo(this.map)

@@ -208,0 +207,0 @@ .openPopup()

Sorry, the diff of this file is not supported yet