Add notes sidebar interaction
This commit is contained in:
parent
59f1a6d496
commit
e4504399ae
5 changed files with 113 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue