Skip to content

Commit

Permalink
Add new merged map config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Mar 27, 2024
1 parent e177a67 commit c036f62
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion config/initializers/decidim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@
config.available_locales = %i[en de fr it]

config.maps = {
provider: :osm,
api_key: false, #Rails.application.secrets.maps[:api_key],
dynamic: {
tile_layer: {
url: "https://tiles.example.org/{z}/{x}/{y}.png?key={apiKey}&{foo}",
api_key: true,
foo: "bar=baz",
attribution: %(
<a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap</a> contributors
).strip
# Translatable attribution:
# attribution: -> { I18n.t("tile_layer_attribution") }
},
provider: :gis_zh,
# provider: :swisstopo,
default_center: {
Expand All @@ -37,8 +49,10 @@
},
}
},
static: false,
static: { url: "https://staticmap.example.org/" },
geocoding: {
host: "nominatim.example.org",
use_https: true,
provider: :osm,
timeout: 5,
units: :km,
Expand Down

0 comments on commit c036f62

Please sign in to comment.