From c17726513f662e90c0ea4161d620e2a90e46e940 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Thu, 16 Mar 2017 09:25:28 +0100 Subject: [PATCH] Leaflet 1.0: "clickable" option renamed to "interactive" --- js/plugin/Search.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } });