-
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 leaflet map background fixtures
- Loading branch information
1 parent
25aa02f
commit 68a3f88
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 LeafletMapBackground to a JSON fixture. | ||
# This overwrites the existing one. | ||
# | ||
# You can load this fixture with: | ||
# $ src/manage.py loaddata default_leaflet_map_backgrounds | ||
# | ||
# Run this script from the root of the repository | ||
|
||
src/manage.py dumpdata --indent=4 --natural-foreign --natural-primary config.LeafletMapBackground > src/openforms/fixtures/default_leaflet_map_backgrounds.json |
20 changes: 20 additions & 0 deletions
20
src/openforms/fixtures/default_leaflet_map_backgrounds.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.leafletmapbackground", | ||
"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.leafletmapbackground", | ||
"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" | ||
} | ||
} | ||
] |