Changed zoomlevels Natuurpunt + Nat res width

This commit is contained in:
karelleketers 2021-07-19 11:27:31 +02:00
parent dd26321f9b
commit 58b46bcc39
13 changed files with 572 additions and 259 deletions

View file

@ -147,7 +147,7 @@
"hu": "Anyag: {material}",
"it": "Materiale: {material}",
"ru": "Материал: {material}",
"zh_Hans": "材质: {material}",
"zh_Hanå¨s": "材质: {material}",
"zh_Hant": "材質:{material}",
"nb_NO": "Materiale: {material}"
},

View file

@ -398,7 +398,7 @@
"render": "./assets/themes/buurtnatuur/nature_reserve.svg"
},
"width": {
"render": "5"
"render": "1"
},
"iconSize": {
"render": "50,50,center"

View file

@ -8,6 +8,7 @@
"ru": "Туалеты",
"it": "Servizi igienici"
},
"minzoom": 12,
"source": {
"osmTags": "amenity=toilets"
},
@ -37,7 +38,6 @@
"color": {
"render": "#0000ff"
},
"minzoom": 12,
"wayHandling": 2,
"presets": [
{

View file

@ -8,5 +8,21 @@
"sources": [
"https://www.flaticon.com/free-icon/trail_3273172?term=trail&page=1&position=11&page=1&position=11&related_id=3273172&origin=search"
]
},
{
"authors": [
"Freepik"
],
"path": "pushchair.svg",
"license": "CC-BY",
"sources": [
"https://www.flaticon.com/free-icon/stroller_1032915?term=pushchair&page=1&position=76&page=1&position=76&related_id=1032915&origin=search"
]
},
{
"authors": [],
"path": "wheelchair.svg",
"license": "CC0",
"sources": []
}
]

View file

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<circle style="fill:#FCD748;" cx="256" cy="256" r="256"/>
<path style="fill:#FABF40;" d="M512,256c0-16.703-1.619-33.026-4.673-48.838l-85.536-85.536L291.06,217.434L183.249,109.622
l-81.494,172.775l44.317,44.317l-30.557,75.884l107.257,107.257C233.649,511.266,244.739,512,256,512
C397.385,512,512,397.385,512,256z"/>
<path style="fill:#1D67BC;" d="M328.209,307.41H200.112c-31.299,0-56.672-25.373-56.672-56.672v-41.381h241.44v41.381
C384.88,282.037,359.508,307.41,328.209,307.41z"/>
<path style="fill:#1C6199;" d="M257.087,209.357v98.053h71.122c31.299,0,56.672-25.373,56.672-56.672v-41.381L257.087,209.357
L257.087,209.357z"/>
<path style="fill:#303030;" d="M323.604,421.786c-27.645,0-50.136-22.491-50.136-50.136s22.491-50.136,50.136-50.136
c27.646,0,50.137,22.491,50.137,50.136S351.249,421.786,323.604,421.786z M323.604,347.514c-13.309,0-24.136,10.828-24.136,24.136
s10.827,24.136,24.136,24.136s24.137-10.828,24.137-24.136S336.912,347.514,323.604,347.514z"/>
<path style="fill:#595959;" d="M154.914,421.786c-27.645,0-50.136-22.491-50.136-50.136s22.491-50.136,50.136-50.136
s50.136,22.491,50.136,50.136S182.559,421.786,154.914,421.786z M154.914,347.514c-13.309,0-24.136,10.828-24.136,24.136
s10.827,24.136,24.136,24.136s24.136-10.828,24.136-24.136S168.223,347.514,154.914,347.514z"/>
<path style="fill:#EC5353;" d="M80.179,205.37v22.545c0,43.904,35.591,79.495,79.495,79.495H272.49L160.383,115.984
C119.77,129.17,80.179,161.568,80.179,205.37z"/>
<polygon style="fill:#D13135;" points="257.087,278.52 257.087,307.41 272.491,307.41 "/>
<path style="fill:#2789E1;" d="M413.54,121.626c-25.769,0-50.736,10.705-68.501,29.369l-87.952,88.838l-72.966-129.339
c-7.758,1.049-15.767,2.901-23.738,5.489l83.031,141.778l-99.177,104.194l18.832,17.926l94.018-98.773l15.404,26.302h26.702
l-25.541-43.706l90.219-94.783c12.881-13.533,30.983-21.295,49.668-21.295h8.251v-26C421.79,121.626,413.54,121.626,413.54,121.626z
"/>
<path style="fill:#1D67BC;" d="M257.087,281.108l56.471,96.426l20.091-11.767l-59.996-102.063l90.219-94.783
c12.881-13.533,30.983-21.295,49.668-21.295h8.251v-26h-8.251c-25.769,0-50.736,10.705-68.501,29.369l-87.952,88.838V281.108z"/>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -1,7 +1,8 @@
{
"id": "trail",
"name": {
"nl": "paden"
"en": "Trails",
"nl": "Paden"
},
"minzoom": 12,
"source": {
@ -17,36 +18,9 @@
},
"title": {
"render": {
"en": "Trails",
"nl": "Paden"
},
"mappings": [
{
"if": {
"and": [
"name:nl~*"
]
},
"then": {
"nl": "{name:nl}"
}
},
{
"if": {
"and": [
"name~*"
]
},
"then": {
"nl": "{name}"
}
}
]
},
"icon": {
"render": "./assets/layers/trail/trail.svg"
},
"description": {
"nl": "Paden waarlangs kan gewandeld worden"
}
},
"tagRenderings": [
"images",
@ -164,15 +138,264 @@
"hideInAnswer": true
}
]
},
{
"question": {
"nl": "Is dit pad toegankelijk met de rolstoel?"
},
"mappings": [
{
"then": {
"nl": "Dit pad is toegankelijk met de rolstoel"
},
"if": "wheelchair=yes"
},
{
"then": {
"nl": "Dit pad is niet toegankelijk met de rolstoel"
},
"if": "wheelchair=no"
}
]
},
{
"question": {
"nl": "Is dit pad toegankelijk met de buggy?"
},
"mappings": [
{
"then": {
"nl": "Dit pad is toegankelijk met de buggy"
},
"if": "pushchair=yes"
},
{
"then": {
"nl": "Dit pad is niet toegankelijk met de buggy"
},
"if": "pushchair=no"
}
]
},
{
"render": {
"en": "Surface: {surface}",
"nl": "Ondergrond bestaat uit {surface}"
},
"freeform": {
"key": "surface",
"addExtraTags": []
},
"mappings": [
{
"if": "surface=paved",
"then": {
"en": "Surface: paved",
"nl": "Het pad is aangelegd"
}
},
{
"if": "surface=asphalt",
"then": {
"en": "Surface: asphalt",
"nl": "Ondergrond bestaat uit asfalt"
}
},
{
"if": "surface=concrete",
"then": {
"en": "Surface: concrete",
"nl": "Ondergrond bestaat uit cement"
}
},
{
"if": "surface=paving_stones",
"then": {
"en": "Surface: paving stones",
"nl": "Ondergrond bestaat uit plavei"
}
},
{
"if": "surface=cobblestone",
"then": {
"en": "Surface: cobblestone",
"nl": "Ondergrond bestaat uit kasseien"
}
},
{
"if": "surface=stepping_stones",
"then": {
"en": "Surface: stepping stones",
"nl": "Ondergrond bestaat uit stenen pad"
}
},
{
"if": "surface=unpaved",
"then": {
"en": "Surface: unpaved",
"nl": "Dit pad is niet aangelegd"
}
},
{
"if": "surface=gravel",
"then": {
"en": "Surface: gravel",
"nl": "Ondergrond bestaat uit grind"
}
},
{
"if": "surface=rock",
"then": {
"en": "Surface: rock",
"nl": "Ondergrond bestaat uit gesteente"
}
},
{
"if": "surface=pebblestone",
"then": {
"en": "Surface: pebblestone",
"nl": "Ondergrond bestaat uit kiezels"
}
},
{
"if": "surface=earth",
"then": {
"en": "Surface: earth",
"nl": "Ondergrond bestaat uit aarde"
}
},
{
"if": "surface=grass",
"then": {
"en": "Surface: grass",
"nl": "Ondergrond bestaat uit gras"
}
},
{
"if": "surface=mud",
"then": {
"en": "Surface: mud",
"nl": "Ondergrond bestaat uit modder"
}
},
{
"if": "surface=sand",
"then": {
"en": "Surface: sand",
"nl": "Ondergrond bestaat uit zand"
}
}
],
"question": {
"en": "What type of surface does the trail have?",
"nl": "Waaruit bestaat de ondergrond van het pad?"
}
},
{
"mappings": [
{
"if": "incline=very_easy",
"then": {
"en": "The trail is flat",
"nl": "Het pad is plat"
}
},
{
"if": "incline=easy",
"then": {
"en": "The trail is slightly elevated",
"nl": "Het pad is zo goed als plat"
}
},
{
"if": "incline=moderate",
"then": {
"en": "The trail is elevated",
"nl": "Het pad stijgt en/of daalt "
}
},
{
"if": "incline=somewhat_hard",
"then": {
"en": "The trail is slightly steep",
"nl": "Het pad is lichtjes steil"
}
},
{
"if": "incline=hard",
"then": {
"en": "The trail is steep",
"nl": "Het pad is steil"
}
},
{
"if": "incline=very_hard",
"then": {
"en": "The trail is very steep",
"nl": "Het pad is zeer steil"
}
},
{
"if": "incline=extreme",
"then": {
"en": "The trail is extremely steep",
"nl": "Het pad is extreem steil"
}
}
],
"question": {
"en": "What's the incline of the trail?",
"nl": "Hoe hard stijgt en/of daalt het pad?"
}
},
{
"render": {
"en": "The trail is {distance}km long",
"nl": "De lengte van het pad bedraagt {distance}km"
},
"freeform": {
"key": "distance",
"type": "float"
}
},
{
"render": {
"en": "The trail is {width}m wide",
"nl": "De breedte van het pad bedraagt {width}m"
},
"freeform": {
"key": "width",
"type": "nat"
},
"question": {
"en": "How wide is the trail (m)?",
"nl": "Hoe breed is het pad (m)?"
}
}
],
"hideUnderlayingFeaturesMinPercentage": 10,
"icon": {
"render": "./assets/layers/trail/trail.svg",
"mappings": [
{
"if": "wheelchair=yes",
"then": "./assets/layers/trail/wheelchair.svg"
},
{
"if": "pushchair=yes",
"then": "./assets/layers/trail/pushchair.svg"
}
]
},
"description": {
"nl": "Paden waarlangs kan gewandeld worden"
},
"wayHandling": 2,
"width": {
"render": "5"
},
"iconSize": {
"render": "50,50,center"
"render": "35,35,center"
},
"color": {
"render": "#335D9F"

View file

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
width="483.2226563"
height="551.4306641"
viewBox="0 0 483.2226563 551.4306641"
overflow="visible"
enable-background="new 0 0 483.2226563 551.4306641"
xml:space="preserve"
sodipodi:docname="wheelchair.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><metadata
id="metadata11"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs9" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1001"
id="namedview7"
showgrid="false"
inkscape:zoom="0.8559553"
inkscape:cx="-66.220714"
inkscape:cy="292.29436"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="background"><ellipse
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.484;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path838"
cx="241.83505"
cy="274.54706"
rx="241.83505"
ry="275.71533" /><ellipse
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.484;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path819"
cx="240.66678"
cy="275.71533"
rx="241.83505"
ry="274.54706" /></g><g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="wheelchair"><path
inkscape:connector-curvature="0"
style="clip-rule:evenodd;fill:#000000;fill-rule:evenodd;stroke-width:0.66635805"
d="m 189.94589,159.71251 c 16.63422,-1.53575 29.55792,-15.86668 29.55792,-32.62877 0,-18.04178 -14.71518,-32.756968 -32.75696,-32.756968 -18.04178,0 -32.75631,14.715188 -32.75631,32.756968 0,5.50201 1.53509,11.13188 4.09445,15.86635 l 11.67168,164.23513 120.20865,0.0325 49.30463,115.52332 64.73308,-25.38668 -10.02402,-23.86915 -36.22735,13.07727 -47.70511,-110.13583 -111.76793,0.75095 -1.53445,-20.79896 80.91112,0.0322 v -30.77448 l -83.99758,-0.0329 z"
id="path2" /><path
inkscape:connector-curvature="0"
style="clip-rule:evenodd;fill:#000000;fill-rule:evenodd;stroke-width:0.66635805"
d="m 310.84431,395.24795 c -20.28873,40.10642 -62.75413,66.52908 -108.0502,66.52908 -66.52908,0 -120.790412,-54.26133 -120.790412,-120.79041 0,-46.71209 28.310452,-90.1207 70.555212,-109.36341 l 2.73376,35.67521 c -24.98647,15.74498 -40.3895,44.15435 -40.3895,73.93288 0,48.26215 39.36263,87.62413 87.62413,87.62413 44.15407,0 81.80523,-33.88535 86.93958,-77.35545 z"
id="path4" /></g></svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -0,0 +1,13 @@
[
{
"authors": [
"Gitte Loos (Createlli) in opdracht van Provincie Antwerpen "
],
"path": "walking_route.svg",
"license": "CC-BY-SA 4.0",
"sources": [
"https://createlli.com/",
"https://www.provincieantwerpen.be/"
]
}
]

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -0,0 +1,113 @@
{
"id": "walking_routes",
"icon": "./assets/layers/walking_routes/walking_route.svg",
"name": {
"nl": "Wandelroutes van provincie Antwerpen"
},
"minzoom": 12,
"description": "Walking routes by 'provincie Antwerpen'",
"source": {
"osmTags": {
"and": [
"type=route",
"route=foot"
]
},
"geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 14,
"isOsmCache": true
},
"title": {
"render": "Wandeling <i>{name}</i>",
"mappings": [
{
"if": "name~.*wandeling.*",
"then": "{name}"
}
]
},
"tagRenderings": [
{
"render": {
"nl": "Deze wandeling is <b>{_length:km}km</b> lang"
}
},
{
"mappings": [
{
"if": "route=iwn",
"then": {
"nl": "Dit is een internationale wandelroute"
}
},
{
"if": "route=nwn",
"then": {
"nl": "Dit is een nationale wandelroute"
}
},
{
"if": "route=rwn",
"then": {
"nl": "Dit is een regionale wandelroute"
}
},
{
"if": "route=lwn",
"then": {
"nl": "Dit is een lokale wandelroute"
}
}
]
},
{
"render": {
"nl": "<h3>Korte beschrijving:</h3>{description}"
},
"question": "Geef een korte beschrijving van de wandeling (max 255 tekens)",
"freeform": {
"key": "description",
"type": "text"
}
},
{
"question": {
"nl": "Wie beheert deze wandeling en plaatst dus de signalisatiebordjes?"
},
"render": "Signalisatie geplaatst door {operator}",
"freeform": {
"key": "operator"
}
},
{
"question": {
"nl": "Naar wie kan men emailen bij problemen rond signalisatie?"
},
"render": {
"nl": "Bij problemen met signalisatie kan men emailen naar <a href='mailto:{operator:email}'>{operator:email}</a>"
},
"freeform": {
"key": "operator:email",
"type": "email"
}
},
"questions",
"reviews"
],
"color": {
"render": "#6d6",
"mappings": [
{
"if": "color~*",
"then": "{color}"
},
{
"if": "colour~*",
"then": "{colour}"
}
]
},
"width": {
"render": "9"
}
}

View file

@ -28,7 +28,7 @@
{
"builtin": [
"nature_reserve",
"trail",
"walking_routes",
"visitor_information_centre"
],
"override": {
@ -41,14 +41,28 @@
}
}
},
"drinking_water",
"bench",
"picnic_table",
"birdhide",
"toilet",
"watermill",
"information_board",
"parking"
{
"builtin": [
"birdhide",
"toilet",
"drinking_water",
"picnic_table"
],
"override": {
"minzoom": "14"
}
},
{
"builtin": [
"bench",
"watermill",
"parking"
],
"override": {
"minzoom": "17"
}
},
"information_board"
],
"roamingRenderings": []
}

View file

@ -136,116 +136,17 @@
}
},
{
"id": "walking_routes",
"icon": "./assets/themes/speelplekken/walking_route.svg",
"name": {
"nl": "Wandelroutes van provincie Antwerpen"
},
"description": "Walking routes by 'provincie Antwerpen'",
"source": {
"osmTags": {
"and": [
"type=route",
"route=foot",
"operator~[pP]rovincie Antwerpen"
]
},
"geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 14,
"isOsmCache": true
},
"title": {
"render": "Wandeling <i>{name}</i>",
"mappings": [
{
"if": "name~.*wandeling.*",
"then": "{name}"
}
]
},
"tagRenderings": [
{
"render": {
"nl": "Deze wandeling is <b>{_length:km}km</b> lang"
}
},
{
"mappings": [
{
"if": "route=iwn",
"then": {
"nl": "Dit is een internationale wandelroute"
}
},
{
"if": "route=nwn",
"then": {
"nl": "Dit is een nationale wandelroute"
}
},
{
"if": "route=rwn",
"then": {
"nl": "Dit is een regionale wandelroute"
}
},
{
"if": "route=lwn",
"then": {
"nl": "Dit is een lokale wandelroute"
}
}
]
},
{
"render": {
"nl": "<h3>Korte beschrijving:</h3>{description}"
},
"question": "Geef een korte beschrijving van de wandeling (max 255 tekens)",
"freeform": {
"key": "description",
"type": "text"
}
},
{
"question": {
"nl": "Wie beheert deze wandeling en plaatst dus de signalisatiebordjes?"
},
"render": "Signalisatie geplaatst door {operator}",
"freeform": {
"key": "operator"
}
},
{
"question": {
"nl": "Naar wie kan men emailen bij problemen rond signalisatie?"
},
"render": {
"nl": "Bij problemen met signalisatie kan men emailen naar <a href='mailto:{operator:email}'>{operator:email}</a>"
},
"freeform": {
"key": "operator:email",
"type": "email"
}
},
"questions",
"reviews"
"builtin": [
"walking_routes"
],
"color": {
"render": "#6d6",
"mappings": [
{
"if": "color~*",
"then": "{color}"
},
{
"if": "colour~*",
"then": "{colour}"
"override": {
"source": {
"osmTags": {
"+and": [
"operator~[pP]rovincie Antwerpen"
]
}
]
},
"width": {
"render": "9"
}
}
}
],

View file

@ -119,115 +119,17 @@
}
},
{
"id": "walking_routes",
"name": {
"nl": "Wandelroutes van provincie Antwerpen"
},
"description": "Walking routes by 'provincie Antwerpen'",
"source": {
"osmTags": {
"and": [
"type=route",
"route=foot",
"operator~[pP]rovincie Antwerpen"
]
},
"geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 14,
"isOsmCache": true
},
"title": {
"render": "Wandeling <i>{name}</i>",
"mappings": [
{
"if": "name~.*wandeling.*",
"then": "{name}"
}
]
},
"tagRenderings": [
{
"render": {
"nl": "Deze wandeling is <b>{_length:km}km</b> lang"
}
},
{
"mappings": [
{
"if": "route=iwn",
"then": {
"nl": "Dit is een internationale wandelroute"
}
},
{
"if": "route=nwn",
"then": {
"nl": "Dit is een nationale wandelroute"
}
},
{
"if": "route=rwn",
"then": {
"nl": "Dit is een regionale wandelroute"
}
},
{
"if": "route=lwn",
"then": {
"nl": "Dit is een lokale wandelroute"
}
}
]
},
{
"render": {
"nl": "<h3>Korte beschrijving:</h3>{description}"
},
"question": "Geef een korte beschrijving van de wandeling (max 255 tekens)",
"freeform": {
"key": "description",
"type": "text"
}
},
{
"question": {
"nl": "Wie beheert deze wandeling en plaatst dus de signalisatiebordjes?"
},
"render": "Signalisatie geplaatst door {operator}",
"freeform": {
"key": "operator"
}
},
{
"question": {
"nl": "Naar wie kan men emailen bij problemen rond signalisatie?"
},
"render": {
"nl": "Bij problemen met signalisatie kan men emailen naar <a href='mailto:{operator:email}'>{operator:email}</a>"
},
"freeform": {
"key": "operator:email",
"type": "email"
}
},
"questions",
"reviews"
"builtin": [
"walking_routes"
],
"color": {
"render": "#6d6",
"mappings": [
{
"if": "color~*",
"then": "{color}"
},
{
"if": "colour~*",
"then": "{colour}"
"override": {
"source": {
"osmTags": {
"+and": [
"operator~[pP]rovincie Antwerpen"
]
}
]
},
"width": {
"render": "9"
}
}
}
],