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~3901^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5f495b43d18bfa7a9bcaf918aa4db15261bea46a?hp=-c Notes: show first comment as marker tooltip --- 5f495b43d18bfa7a9bcaf918aa4db15261bea46a 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 });