Fix path for icons in the leaflet images directory
authorTom Hughes <tom@compton.nu>
Tue, 24 Feb 2015 17:04:25 +0000 (17:04 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 24 Feb 2015 17:04:25 +0000 (17:04 +0000)
Fixes #910

app/assets/javascripts/osm.js.erb

index d933043b54298141ac41db1bee9c57115aa297c5..6afebf8e5dc0db61730a2feaa253a7fe7fcd3e0b 100644 (file)
@@ -13,9 +13,10 @@ OSM = {
 
   MARKER_GREEN:          <%= image_path("marker-green.png").to_json %>,
   MARKER_RED:            <%= image_path("marker-red.png").to_json %>,
-  MARKER_ICON:           <%= image_path("marker-icon.png").to_json %>,
-  MARKER_ICON_2X:        <%= image_path("marker-icon-2x.png").to_json %>,
-  MARKER_SHADOW:         <%= image_path("marker-shadow.png").to_json %>,
+
+  MARKER_ICON:           <%= image_path("images/marker-icon.png").to_json %>,
+  MARKER_ICON_2X:        <%= image_path("images/marker-icon-2x.png").to_json %>,
+  MARKER_SHADOW:         <%= image_path("images/marker-shadow.png").to_json %>,
 
   NEW_NOTE_MARKER:       <%= image_path("new_note_marker.png").to_json %>,
   OPEN_NOTE_MARKER:      <%= image_path("open_note_marker.png").to_json %>,