Notes: show first comment as marker tooltip
This commit is contained in:
parent
ee9ac1930d
commit
20139c08e5
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ OSM.initializeNotes = function (map) {
|
||||||
} else {
|
} else {
|
||||||
marker = L.marker(feature.geometry.coordinates.reverse(), {
|
marker = L.marker(feature.geometry.coordinates.reverse(), {
|
||||||
icon: noteIcons[feature.properties.status],
|
icon: noteIcons[feature.properties.status],
|
||||||
|
title: feature.properties.comments && feature.properties.comments[0] ?
|
||||||
|
feature.properties.comments[0].text : undefined,
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
clickable: true
|
clickable: true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue