Temporally switch to another tile server
What does this MR do?
Our current map server (maps.wikimedia.org) currently blocks all third party applications. We try to contact them but we do not know when or whether at all this situation will be resolved.
As alternative we considered the following three alternative tile servers:
- MapTiler
- Url:
https://api.maptiler.com/maps/basic/256/{z}/{x}/{y}.png?key={}
- Url:
- Geoapify
- Url:
https://maps.geoapify.com/v1/tile/carto/{z}/{x}/{y}.png?apiKey={}
- Url:
- openstreetmap.org
- Url:
https://[abc].tile.openstreetmap.org/{z}/{x}/{y}.png
- Pro: non-commercial but we would probably generate too much traffic for them
- Url:
If we decide, to use one of the commercial providers, we should generate a custom foodsharing api key (@fs_k) and set the different foodsharing urls as the only allowed http origin.
How confident are you it won't break things if deployed?
Very
Links to related issues
https://yunity.slack.com/archives/C1T1ZM9A4/p1580923077299100
How to test
- Checkout branch locally
- Visit all locations with a map and verify that it is displayed correctly (global map, address picker, region admin tool, food basket search and detail page)
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s)) -
Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Chris Oelmueller