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 d5ffbea..61067ad 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
       });