leaflet-geocoder-ban
Advanced tools
Comparing version
{ | ||
"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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
29776
12.44%12
9.09%1
-50%77
Infinity%713
-0.14%