X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1dae6a712e730204428f83e168f7d881b2260f60..3297444ecdbd505e4c79ef9b4a9706d5f2e3162b:/app/assets/javascripts/osm.js.erb?ds=inline diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 6afebf8e5..0f044c24f 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -1,3 +1,5 @@ +//= depend_on application.yml + OSM = { <% if defined?(PIWIK) %> PIWIK: <%= PIWIK.to_json %>, @@ -11,6 +13,13 @@ OSM = { OVERPASS_URL: <%= OVERPASS_URL.to_json %>, NOMINATIM_URL: <%= NOMINATIM_URL.to_json %>, +<% if defined?(MAPQUEST_KEY) %> + MAPQUEST_KEY: <%= MAPQUEST_KEY.to_json %>, +<% end %> +<% if defined?(MAPZEN_VALHALLA_KEY) %> + MAPZEN_VALHALLA_KEY: <%= MAPZEN_VALHALLA_KEY.to_json %>, +<% end %> + MARKER_GREEN: <%= image_path("marker-green.png").to_json %>, MARKER_RED: <%= image_path("marker-red.png").to_json %>,