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 d5ffbea..fd5cd3a 100644 (file)
@@ -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
       });