From: Simon Legner Date: Tue, 14 Apr 2015 21:32:58 +0000 (+0200) Subject: Notes: show first comment as marker tooltip X-Git-Tag: live~4417^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5f495b43d18bfa7a9bcaf918aa4db15261bea46a?ds=inline;hp=ee9ac1930d87466a173fdc992db078cae38d2d44 Notes: show first comment as marker tooltip --- diff --git a/app/assets/javascripts/index/notes.js b/app/assets/javascripts/index/notes.js index d5ffbead1..fd5cd3ae9 100644 --- a/app/assets/javascripts/index/notes.js +++ b/app/assets/javascripts/index/notes.js @@ -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 });