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'
},
onAdd: function (map) {
onAdd: function (map) {
map.attributionControl.addAttribution(
'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._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);
}
}
});