]> git.openstreetmap.org Git - rails.git/commitdiff
Notes: show first comment as marker tooltip
authorSimon Legner <Simon.Legner@gmail.com>
Tue, 14 Apr 2015 21:32:58 +0000 (23:32 +0200)
committerSimon Legner <Simon.Legner@gmail.com>
Mon, 14 Mar 2016 22:00:45 +0000 (23:00 +0100)
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],
     } else {
       marker = L.marker(feature.geometry.coordinates.reverse(), {
         icon: noteIcons[feature.properties.status],
+        title: feature.properties.comments[0].text,
         opacity: 0.8,
         clickable: true
       });
         opacity: 0.8,
         clickable: true
       });