X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1596713871672cc319b0d68b51a3698cc6bf0972..1f13321a60239881f7016044b79e9a4d58045e30:/app/assets/javascripts/index/note.js diff --git a/app/assets/javascripts/index/note.js b/app/assets/javascripts/index/note.js index 6062f7003..85267ab93 100644 --- a/app/assets/javascripts/index/note.js +++ b/app/assets/javascripts/index/note.js @@ -1,6 +1,5 @@ OSM.Note = function (map) { - var noteLayer = map.noteLayer, - content = $('#sidebar_content'), + var content = $('#sidebar_content'), page = {}, halo, currentNote; @@ -41,7 +40,7 @@ OSM.Note = function (map) { initialize(function() { var data = $('.details').data(), latLng = L.latLng(data.coordinates.split(',')); - if (!map.getBounds().contains(latLng)) moveToNote(); + if (!map.getBounds().contains(latLng)) moveToNote(); }); }); }; @@ -88,7 +87,7 @@ OSM.Note = function (map) { currentNote = L.marker(latLng, { icon: noteIcons[data.status], opacity: 1, - clickable: true + interactive: true }); map.addLayer(currentNote);