graphhopper_url
fossgis_osrm_url
fossgis_valhalla_url
- thunderforest_key
- tracestrack_key
]
.each_with_object({}) do |key, hash|
hash[key.to_s.upcase] = Settings.send(key) if Settings.respond_to?(key)
DEFAULT_LOCALE: <%= I18n.default_locale.to_json %>,
- LAYER_DEFINITIONS: <%= YAML.load_file(Rails.root.join("config/layers.yml")).to_json %>,
+ LAYER_DEFINITIONS: <%= MapLayers::full_definitions("config/layers.yml").to_json %>,
LAYERS_WITH_MAP_KEY: <%= YAML.load_file(Rails.root.join("config/key.yml")).keys.to_json %>,
MARKER_GREEN: <%= image_path("marker-green.png").to_json %>,
},
params: function (search) {
- const query = search || window.location.search;
+ const query = search || location.search;
return Object.fromEntries(new URLSearchParams(query));
},