diff --git a/js/plugin/Search.js b/js/plugin/Search.js index 642763e..373ea86 100644 --- a/js/plugin/Search.js +++ b/js/plugin/Search.js @@ -6,7 +6,7 @@ BR.Search = L.Control.Geocoder.extend({ position: 'topleft' }, - onAdd: function (map) { + onAdd: function (map) { map.attributionControl.addAttribution( 'search by Nominatim'); @@ -20,18 +20,18 @@ BR.Search = L.Control.Geocoder.extend({ this.clear(); this._geocodeMarker = new L.CircleMarker(result.geocode.center, { - clickable: false, + interactive: false, color: 'red', opacity: 1, weight: 3 }).addTo(this._map); - return this; + return this; }, clear: function() { if (this._geocodeMarker) { - this._map.removeLayer(this._geocodeMarker); + this._map.removeLayer(this._geocodeMarker); } } });