Leaflet 1.0: "clickable" option renamed to "interactive"

This commit is contained in:
Norbert Renner 2017-03-16 09:25:28 +01:00
parent 90f2b16966
commit c17726513f

View file

@ -6,7 +6,7 @@ BR.Search = L.Control.Geocoder.extend({
position: 'topleft' position: 'topleft'
}, },
onAdd: function (map) { onAdd: function (map) {
map.attributionControl.addAttribution( map.attributionControl.addAttribution(
'search by <a href="http://wiki.openstreetmap.org/wiki/Nominatim" target="_blank">Nominatim</a>'); 'search by <a href="http://wiki.openstreetmap.org/wiki/Nominatim" target="_blank">Nominatim</a>');
@ -20,18 +20,18 @@ BR.Search = L.Control.Geocoder.extend({
this.clear(); this.clear();
this._geocodeMarker = new L.CircleMarker(result.geocode.center, { this._geocodeMarker = new L.CircleMarker(result.geocode.center, {
clickable: false, interactive: false,
color: 'red', color: 'red',
opacity: 1, opacity: 1,
weight: 3 weight: 3
}).addTo(this._map); }).addTo(this._map);
return this; return this;
}, },
clear: function() { clear: function() {
if (this._geocodeMarker) { if (this._geocodeMarker) {
this._map.removeLayer(this._geocodeMarker); this._map.removeLayer(this._geocodeMarker);
} }
} }
}); });