Merge pull request #328 from pietervdvn/develop

Last changes to the speelplekken theme
This commit is contained in:
Joost 2021-06-04 17:26:37 +02:00 committed by GitHub
commit 17ba9f28e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 218 additions and 25 deletions

View file

@ -44,11 +44,12 @@
"isOsmCache": true
},
"icon": "./assets/themes/speelplekken/speelbos.svg",
"minzoom": 12
},
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''"
]
"minzoom": 12,
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''",
"_video:id=new URL(feat.properties.video).searchParams.get('v')"
]
}
},
{
"builtin": "playground",
@ -62,7 +63,8 @@
"isOsmCache": true
},
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''"
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''",
"_video:id=new URL(feat.properties.video).searchParams.get('v')"
]
}
},
@ -78,7 +80,8 @@
"isOsmCache": true
},
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''"
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''",
"_video:id=new URL(feat.properties.video).searchParams.get('v')"
]
}
},
@ -94,7 +97,8 @@
"isOsmCache": true
},
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''"
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''",
"_video:id=new URL(feat.properties.video).searchParams.get('v')"
]
}
},
@ -109,7 +113,8 @@
"isOsmCache": true
},
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''"
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''",
"_video:id=new URL(feat.properties.video).searchParams.get('v')"
]
}
},
@ -252,12 +257,10 @@
"condition": "_part_of_walking_routes~*"
},
{
"render": "<a href='{video}' target='blank'>Een kinder-reportage vinden jullie hier<a/>",
"freeform": {
"key": "video",
"type": "url"
"key": "_video:id"
},
"question": "Wat is de link naar de video-reportage?"
"render": "<iframe style='width: 100%; height: 300px' src=\"https://www.youtube-nocookie.com/embed/{_video:id}\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"
}
],
"overrideAll": {

View file

@ -239,6 +239,14 @@
{
"render": "Maakt deel uit van {_part_of_walking_routes}",
"condition": "_part_of_walking_routes~*"
},
{
"render": "<a href='{video}' target='blank'>Een kinder-reportage vinden jullie hier<a/>",
"freeform": {
"key": "video",
"type": "url"
},
"question": "Wat is de link naar de video-reportage?"
}
],
"overrideAll": {