]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/diary_entry.js
Instruct sprockets to recompile this file based on the settings files changing
[rails.git] / app / assets / javascripts / diary_entry.js
index 5a19cb4d63a2679be1c6d20e8f2ec9e42cbb8ac3..f13706971a43264139ff4c27871973ed59c60c9e 100644 (file)
@@ -9,8 +9,8 @@ $(document).ready(function () {
       map.removeLayer(marker);
     }
 
-    marker = L.marker(e.latlng, {icon: getUserIcon()}).addTo(map)
-      .bindPopup(I18n.t('diary_entry.edit.marker_text'));
+    marker = L.marker(e.latlng, {icon: OSM.getUserIcon()}).addTo(map)
+      .bindPopup(I18n.t('diary_entries.edit.marker_text'));
   }
 
   $("#usemap").click(function (e) {
@@ -34,8 +34,8 @@ $(document).ready(function () {
     map.setView(centre, params.zoom);
 
     if ($("#latitude").val() && $("#longitude").val()) {
-      marker = L.marker(centre, {icon: getUserIcon()}).addTo(map)
-        .bindPopup(I18n.t('diary_entry.edit.marker_text'));
+      marker = L.marker(centre, {icon: OSM.getUserIcon()}).addTo(map)
+        .bindPopup(I18n.t('diary_entries.edit.marker_text'));
     }
 
     map.on("click", setLocation);