]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/954'
authorTom Hughes <tom@compton.nu>
Mon, 14 Mar 2016 22:11:23 +0000 (22:11 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 14 Mar 2016 22:11:23 +0000 (22:11 +0000)
app/assets/javascripts/index/notes.js

index d5ffbead13d849704b81d413e7445d818cb25819..61067adba8ed9b2f2948482d306be64985a86d03 100644 (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
       });