From a930f56d4a45ce1605de25b4e6a046b8ac2490b0 Mon Sep 17 00:00:00 2001 From: Aletor93 Date: Wed, 3 Jul 2024 21:44:11 +0200 Subject: [PATCH 1/2] fix: define and document MAP_BASE_URL to prevent gray maps --- configurations/default/env.yml.tmp | 3 ++- docs/dev/deployment.md | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configurations/default/env.yml.tmp b/configurations/default/env.yml.tmp index bd48088ad..32b1d8702 100644 --- a/configurations/default/env.yml.tmp +++ b/configurations/default/env.yml.tmp @@ -6,6 +6,7 @@ MAP_BASE_URL: optional-map-tile-url MAPBOX_ACCESS_TOKEN: your-mapbox-access-token MAPBOX_MAP_ID: mapbox/outdoors-v11 MAPBOX_ATTRIBUTION: © Mapbox © OpenStreetMap Improve this map +MAP_BASE_URL: http://tile.openstreetmap.org/{z}/{x}/{y}.png # Keep it until a fix or maps are gray SLACK_CHANNEL: optional-slack-channel SLACK_WEBHOOK: optional-slack-webhook GRAPH_HOPPER_KEY: your-graph-hopper-key @@ -23,4 +24,4 @@ GRAPH_HOPPER_KEY: your-graph-hopper-key # - 83 GOOGLE_ANALYTICS_TRACKING_ID: optional-ga-key # GRAPH_HOPPER_POINT_LIMIT: 10 # Defaults to 30 -DISABLE_AUTH: true \ No newline at end of file +DISABLE_AUTH: true diff --git a/docs/dev/deployment.md b/docs/dev/deployment.md index 7a2376a16..7bbda2f57 100644 --- a/docs/dev/deployment.md +++ b/docs/dev/deployment.md @@ -244,6 +244,8 @@ Enables the GTFS Editor module. - `MAPBOX_ACCESS_TOKEN` - `R5_URL` (optional parameter for r5 routing in editor pattern drawing) +**Note:** If maps are gray, add the property `MAP_BASE_URL: http://tile.openstreetmap.org/{z}/{x}/{y}.png` into `env.yml`. + ### R5 network validation While the application handles basic validation even without the `r5_network` @@ -320,4 +322,4 @@ extensions: enabled: true api: http://api.transitfeeds.com/v1/getFeeds key: your-api-key -``` \ No newline at end of file +``` From d731c34906e0516494ef780a5774ee7a36785824 Mon Sep 17 00:00:00 2001 From: Alexandre Vallarino <31126301+Aletor93@users.noreply.github.com> Date: Mon, 29 Jul 2024 09:58:37 +0200 Subject: [PATCH 2/2] fix: comment default MAP_BASE_URL --- configurations/default/env.yml.tmp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/default/env.yml.tmp b/configurations/default/env.yml.tmp index 32b1d8702..efcad4a54 100644 --- a/configurations/default/env.yml.tmp +++ b/configurations/default/env.yml.tmp @@ -6,7 +6,7 @@ MAP_BASE_URL: optional-map-tile-url MAPBOX_ACCESS_TOKEN: your-mapbox-access-token MAPBOX_MAP_ID: mapbox/outdoors-v11 MAPBOX_ATTRIBUTION: © Mapbox © OpenStreetMap Improve this map -MAP_BASE_URL: http://tile.openstreetmap.org/{z}/{x}/{y}.png # Keep it until a fix or maps are gray +# MAP_BASE_URL: http://tile.openstreetmap.org/{z}/{x}/{y}.png # Uncomment it if maps are gray SLACK_CHANNEL: optional-slack-channel SLACK_WEBHOOK: optional-slack-webhook GRAPH_HOPPER_KEY: your-graph-hopper-key