Rename 'clickable' to 'interactive' per leaflet 1.x change

This commit is contained in:
Tom Hughes 2017-02-24 23:10:12 +00:00
parent 8346821d66
commit 4b43396ede
5 changed files with 5 additions and 5 deletions

View file

@ -69,7 +69,7 @@ OSM.NewNote = function(map) {
var marker = L.marker(feature.geometry.coordinates.reverse(), {
icon: noteIcons[feature.properties.status],
opacity: 0.9,
clickable: true
interactive: true
});
marker.id = feature.properties.id;
marker.addTo(noteLayer);

View file

@ -87,7 +87,7 @@ OSM.Note = function (map) {
currentNote = L.marker(latLng, {
icon: noteIcons[data.status],
opacity: 1,
clickable: true
interactive: true
});
map.addLayer(currentNote);

View file

@ -47,7 +47,7 @@ OSM.initializeNotes = function (map) {
icon: noteIcons[feature.properties.status],
title: feature.properties.comments[0].text,
opacity: 0.8,
clickable: true
interactive: true
});
marker.id = feature.properties.id;
marker.addTo(noteLayer);

View file

@ -12,7 +12,7 @@ OSM.Query = function(map) {
weight: 4,
opacity: 1,
fillOpacity: 0.5,
clickable: false
interactive: false
};
queryButton.on("click", function (e) {

View file

@ -209,7 +209,7 @@ L.OSM.Map = L.Map.extend({
color: '#FF9500',
opacity: 1,
fillOpacity: 0,
clickable: false
interactive: false
};
this.removeObject();