OSM.Note = function (map) {
- var noteLayer = map.noteLayer,
- content = $('#sidebar_content'),
+ var content = $('#sidebar_content'),
page = {},
halo, currentNote;
initialize(function() {
var data = $('.details').data(),
latLng = L.latLng(data.coordinates.split(','));
- if (!map.getBounds().contains(latLng)) moveToNote();
+ if (!map.getBounds().contains(latLng)) moveToNote();
});
});
};
currentNote = L.marker(latLng, {
icon: noteIcons[data.status],
opacity: 1,
- clickable: true
+ interactive: true
});
map.addLayer(currentNote);