Notes: show first comment as marker tooltip

This commit is contained in:
Simon Legner 2015-04-14 23:32:58 +02:00
parent ee9ac1930d
commit 20139c08e5

View file

@ -45,6 +45,8 @@ OSM.initializeNotes = function (map) {
} else {
marker = L.marker(feature.geometry.coordinates.reverse(), {
icon: noteIcons[feature.properties.status],
title: feature.properties.comments && feature.properties.comments[0] ?
feature.properties.comments[0].text : undefined,
opacity: 0.8,
clickable: true
});