]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js
Localisation updates from https://translatewiki.net.
[rails.git] / app / assets / javascripts / index / notes.js
index d5ffbead13d849704b81d413e7445d818cb25819..4890a2687d1a86a69811ad46d54a1a870227c1a4 100644 (file)
@@ -33,9 +33,9 @@ OSM.initializeNotes = function (map) {
     }
   });
 
-  noteLayer.on('click', function(e) {
+  noteLayer.on("click", function (e) {
     if (e.layer.id) {
-      OSM.router.route('/note/' + e.layer.id);
+      OSM.router.route("/note/" + e.layer.id);
     }
   });
 
@@ -45,8 +45,9 @@ 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
+        interactive: true
       });
       marker.id = feature.properties.id;
       marker.addTo(noteLayer);
@@ -54,7 +55,7 @@ OSM.initializeNotes = function (map) {
     return marker;
   }
 
-  noteLayer.getLayerId = function(marker) {
+  noteLayer.getLayerId = function (marker) {
     return marker.id;
   };