]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js
Notes: show first comment as marker tooltip
[rails.git] / app / assets / javascripts / index / notes.js
index d5ffbead13d849704b81d413e7445d818cb25819..fd5cd3ae9288ad8ffed7e79d557a44242a0a9ae4 100644 (file)
@@ -45,6 +45,7 @@ OSM.initializeNotes = function (map) {
     } else {
       marker = L.marker(feature.geometry.coordinates.reverse(), {
         icon: noteIcons[feature.properties.status],
+        title: feature.properties.comments[0].text,
         opacity: 0.8,
         clickable: true
       });