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);