Skip to content

Commit

Permalink
Merge pull request #1139 from GSA/openstreetmap
Browse files Browse the repository at this point in the history
switch map tile server to openstreetmap.org
  • Loading branch information
FuhuXia authored Nov 9, 2023
2 parents 61ce8ed + 6438878 commit bc58180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ckan/setup/ckan.ini
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ ckanext.spatial.search_backend = solr-bbox
# Customize map widget
ckanext.spatial.common_map.type = custom

# ckanext.spatial.common_map.custom_url = /maptiles/{z}/{x}/{y}.png
# ckanext.spatial.common_map.attribution = <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors
ckanext.spatial.common_map.custom_url = /maptiles/{z}/{x}/{y}.png
ckanext.spatial.common_map.attribution = <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors

# ckanext.spatial.common_map.custom_url = https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}
# ckanext.spatial.common_map.attribution = Tiles courtesy of the <a href="https://usgs.gov/">U.S. Geological Survey</a>

ckanext.spatial.common_map.custom_url = https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}{r}.png
ckanext.spatial.common_map.attribution = <a href=https://stadiamaps.com/>Stadia Maps</a>. <a href=https://openstreetmap.org/>OpenStreetMap</a> contributors
# ckanext.spatial.common_map.custom_url = https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}{r}.png
# ckanext.spatial.common_map.attribution = <a href=https://stadiamaps.com/>Stadia Maps</a>. <a href=https://openstreetmap.org/>OpenStreetMap</a> contributors

## Harvest settings
# ckanext-harvest will use ckan.redis.url if redis configuration
Expand Down
4 changes: 2 additions & 2 deletions proxy/nginx-common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ location ~ ^/(dataset\/new|api\/action\/package_create|api\/action\/resource_cre
# use local path for map tiles so that they
# can be cached by the CDN
location /maptiles {
# only allow requests generated from data.gov
valid_referers server_names *.data.gov;
# only allow requests generated from our apps
valid_referers server_names *.data.gov *.app.cloud.gov;
if ($invalid_referer) {
return 403;
}
Expand Down

0 comments on commit bc58180

Please sign in to comment.