Correct path for mapnik marker images

Fixes #2759
This commit is contained in:
Tom Hughes 2020-08-08 10:47:02 +01:00
parent f721f94d42
commit a78da07f0b
2 changed files with 7 additions and 3 deletions

View file

@ -21,3 +21,7 @@
//= link_directory ../../../vendor/assets/swfobject
//= link html5shiv/dist/html5shiv.js
//= link leaflet/dist/images/marker-icon.png
//= link leaflet/dist/images/marker-icon-2x.png
//= link leaflet/dist/images/marker-shadow.png

View file

@ -26,9 +26,9 @@ OSM = {
MARKER_GREEN: <%= image_path("marker-green.png").to_json %>,
MARKER_RED: <%= image_path("marker-red.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 %>,
MARKER_ICON: <%= image_path("leaflet/dist/images/marker-icon.png").to_json %>,
MARKER_ICON_2X: <%= image_path("leaflet/dist/images/marker-icon-2x.png").to_json %>,
MARKER_SHADOW: <%= image_path("leaflet/dist/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 %>,