Add notes sidebar interaction

This commit is contained in:
Aaron Lidman 2013-11-11 14:28:54 -08:00
parent 59f1a6d496
commit e4504399ae
5 changed files with 113 additions and 2 deletions

View file

@ -72,6 +72,7 @@ function initializeNotes(map) {
icon: noteIcons[feature.properties.status],
opacity: 0.9
});
marker.id = feature.properties.id;
marker.addTo(noteLayer).bindPopup(
createPopupContent(marker, feature.properties),
popupOptions()
@ -80,6 +81,10 @@ function initializeNotes(map) {
return marker;
}
noteLayer.getLayerId = function(marker) {
return marker.id;
};
var noteLoader;
function loadNotes() {