-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [#2173] Add default map tile layer fixtures
- Loading branch information
1 parent
ecaa45f
commit d7eb7bd
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
# | ||
# Dump the current (local database) config MapTileLayer to a JSON fixture. | ||
# This overwrites the existing one. | ||
# | ||
# You can load this fixture with: | ||
# $ src/manage.py loaddata default_map_tile_layers | ||
# | ||
# Run this script from the root of the repository | ||
|
||
src/manage.py dumpdata --indent=4 --natural-foreign --natural-primary config.MapTileLayer > src/openforms/fixtures/default_map_tile_layers.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"model": "config.maptilelayer", | ||
"pk": 1, | ||
"fields": { | ||
"identifier": "brt", | ||
"url": "https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:28992/{z}/{x}/{y}.png", | ||
"label": "BRT" | ||
} | ||
}, | ||
{ | ||
"model": "config.maptilelayer", | ||
"pk": 2, | ||
"fields": { | ||
"identifier": "luchtfoto", | ||
"url": "https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_orthoHR/EPSG:28992/{z}/{x}/{y}.png", | ||
"label": "Luchtfoto" | ||
} | ||
} | ||
] |