🚧 Basic building and adress rendering working
This commit is contained in:
parent
02711c43c3
commit
db7853f032
5 changed files with 105 additions and 0 deletions
81
assets/themes/bag_import/bag.json
Normal file
81
assets/themes/bag_import/bag.json
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
{
|
||||||
|
"id": "bag",
|
||||||
|
"title": {
|
||||||
|
"nl": "BAG import helper"
|
||||||
|
},
|
||||||
|
"shortDescription": {
|
||||||
|
"nl": "BAG import helper tool"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"nl": "Dit thema helpt het importeren van BAG data"
|
||||||
|
},
|
||||||
|
"maintainer": "Wouter van der Wal",
|
||||||
|
"icon": "./assets/themes/bag_import/logo.svg",
|
||||||
|
"version": "0",
|
||||||
|
"startLat": 53.1726,
|
||||||
|
"startLon": 7.04545,
|
||||||
|
"startZoom": 9,
|
||||||
|
"overrideAll": {
|
||||||
|
"minzoom": 19
|
||||||
|
},
|
||||||
|
"layers": [
|
||||||
|
{
|
||||||
|
"id": "bag:pand",
|
||||||
|
"description": "Buildings which come from the BAG",
|
||||||
|
"source": {
|
||||||
|
"geoJson": "https://service.pdok.nl/lv/bag/wfs/v2_0?request=GetFeature&service=WFS&version=2.0.0&outputFormat=application%2Fjson%3B%20subtype%3Dgeojson&typeName=bag%3Apand&bbox={x_min}%2C{y_min}%2C{x_max}%2C{y_max}%2CCRS84&srsName=EPSG%3A4326",
|
||||||
|
"geoJsonZoomLevel": 18,
|
||||||
|
"osmTags": {
|
||||||
|
"and": [
|
||||||
|
"building~*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxCacheAge": 0
|
||||||
|
},
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"width": {
|
||||||
|
"render": 5
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"render": "#00a"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bag:verblijfsobject",
|
||||||
|
"source": {
|
||||||
|
"geoJson": "https://service.pdok.nl/lv/bag/wfs/v2_0?request=GetFeature&service=WFS&version=2.0.0&outputFormat=application%2Fjson%3B%20subtype%3Dgeojson&typeName=bag%3Averblijfsobject&bbox={x_min}%2C{y_min}%2C{x_max}%2C{y_max}%2CCRS84&srsName=EPSG%3A4326",
|
||||||
|
"geoJsonZoomLevel": 18,
|
||||||
|
"osmTags": {
|
||||||
|
"and": [
|
||||||
|
"building~*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxCacheAge": 0
|
||||||
|
},
|
||||||
|
"calculatedTags": [
|
||||||
|
"addr:housenumber=feat.properties.huisnummer"
|
||||||
|
],
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"label": {
|
||||||
|
"render": "<div style='color: black' class='rounded-full p-1 font-bold relative'>{addr:housenumber}</div>",
|
||||||
|
"condition": "addr:housenumber~*"
|
||||||
|
},
|
||||||
|
"location": [
|
||||||
|
"point",
|
||||||
|
"centroid"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"width": {
|
||||||
|
"render": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hideFromOverview": true
|
||||||
|
}
|
10
assets/themes/bag_import/license_info.json
Normal file
10
assets/themes/bag_import/license_info.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "logo.svg",
|
||||||
|
"license": "CC0",
|
||||||
|
"authors": [
|
||||||
|
"Wouter van der Wal"
|
||||||
|
],
|
||||||
|
"sources": []
|
||||||
|
}
|
||||||
|
]
|
5
assets/themes/bag_import/logo.svg
Normal file
5
assets/themes/bag_import/logo.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.6 KiB |
|
@ -91,6 +91,10 @@
|
||||||
"if": "theme=artwork",
|
"if": "theme=artwork",
|
||||||
"then": "./assets/themes/artwork/artwork.svg"
|
"then": "./assets/themes/artwork/artwork.svg"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"if": "theme=bag",
|
||||||
|
"then": "./assets/themes/bag_import/logo.svg"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"if": "theme=benches",
|
"if": "theme=benches",
|
||||||
"then": "./assets/themes/benches/bench_poi.svg"
|
"then": "./assets/themes/benches/bench_poi.svg"
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
"description": "Een vrije kaart met standbeelden, bustes, graffiti en andere kunstwerken van over de hele wereld",
|
"description": "Een vrije kaart met standbeelden, bustes, graffiti en andere kunstwerken van over de hele wereld",
|
||||||
"title": "Open kunstwerken-kaart"
|
"title": "Open kunstwerken-kaart"
|
||||||
},
|
},
|
||||||
|
"bag": {
|
||||||
|
"description": "Dit thema helpt het importeren van BAG data",
|
||||||
|
"shortDescription": "BAG import helper tool",
|
||||||
|
"title": "BAG import helper"
|
||||||
|
},
|
||||||
"benches": {
|
"benches": {
|
||||||
"description": "Deze kaart toont alle zitbanken die zijn opgenomen in OpenStreetMap: individuele banken en banken bij bushaltes. Met een OpenStreetMap-account kan je informatie verbeteren en nieuwe zitbanken toevoegen.",
|
"description": "Deze kaart toont alle zitbanken die zijn opgenomen in OpenStreetMap: individuele banken en banken bij bushaltes. Met een OpenStreetMap-account kan je informatie verbeteren en nieuwe zitbanken toevoegen.",
|
||||||
"shortDescription": "Een kaart van zitbanken",
|
"shortDescription": "Een kaart van zitbanken",
|
||||||
|
|
Loading…
Reference in a new issue