Skip to content

Commit

Permalink
change .secrets.geocoder to .maps as commented in v27
Browse files Browse the repository at this point in the history
  • Loading branch information
HHassig committed Aug 7, 2024
1 parent ec6566b commit 0aca2e9
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions config/initializers/decidim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,16 @@
config.service_worker_enabled = Rails.application.secrets.decidim[:service_worker_enabled].present?

# Map and Geocoder configuration
# Geocoder configuration
config.maps = {
provider: :here,
api_key: Rails.application.secrets.geocoder[:here_api_key],
static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
}

# See Decidim docs at https://docs.decidim.org/en/develop/services/maps.html
# for more information about how it works and how to set it up.
#
# == HERE Maps ==
# config.maps = {
# provider: :here,
# api_key: Rails.application.secrets.maps[:api_key],
# static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
# }
config.maps = {
provider: :here,
api_key: Rails.application.secrets.maps[:api_key],
static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
}
#
# == OpenStreetMap (OSM) services ==
# To use the OSM map service providers, you will need a service provider for
Expand Down

0 comments on commit 0aca2e9

Please sign in to comment.