diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-11-17 22:46:42 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-11-17 22:46:42 +0100 |
commit | 5607aa64cac1f67169e742d397c2ac8d9c9057a8 (patch) | |
tree | 72ab0eff61556d03cd26ffe6f543b429372804c6 /tests/integration/test_register.py | |
parent | c1f8b0e55db852e4cfffd75af34bd6f146b35b77 (diff) | |
download | fietsboek-5607aa64cac1f67169e742d397c2ac8d9c9057a8.tar.gz fietsboek-5607aa64cac1f67169e742d397c2ac8d9c9057a8.tar.bz2 fietsboek-5607aa64cac1f67169e742d397c2ac8d9c9057a8.zip |
enable custom map layers
This change shuffles around quite a bit because we no longer hardcode
our map layers in osm-monkeypatch.js, but instead can pass them through
from the Python code. This allows us to dynamically define extra layers,
for example to disable layers the admin doesn't want, or to add extra
layers that are not yet available.
This change for example allows to embed thunderforest maps by adding the
following to the config:
fietsboek.tile_layers.tf_cycling = TF Cycling
fietsboek.tile_layers.tf_cycling.url = https://thunderforest.com/...
fietsboek.tile_layers.tf_cycling.access = restricted
The next step is to make the Thunderforest maps a bit easier to access
(by providing special support for those), but for now, this seems like a
good first step and the necessary groundwork.
Diffstat (limited to 'tests/integration/test_register.py')
0 files changed, 0 insertions, 0 deletions