Add video embed

This commit is contained in:
pietervdvn 2021-06-04 16:42:51 +02:00
parent 188f0245fc
commit 1fd020aa4b

View file

@ -39,20 +39,17 @@
"builtin": "play_forest", "builtin": "play_forest",
"override": { "override": {
"source": { "source": {
"#geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson",
"#geoJsonZoomLevel": 14, "geoJsonZoomLevel": 14,
"#isOsmCache": true "isOsmCache": true
}, },
"icon": "./assets/themes/speelplekken/speelbos.svg", "icon": "./assets/themes/speelplekken/speelbos.svg",
"minzoom": "minzoom": 12,
12,
"calculatedTags": [ "calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''",
"_video:id=new URL(feat.properties.video).searchParams.get('v')" "_video:id=new URL(feat.properties.video).searchParams.get('v')"
] ]
}, }
"calculatedTags": [
"_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''"
]
}, },
{ {
"builtin": "playground", "builtin": "playground",
@ -66,7 +63,8 @@
"isOsmCache": true "isOsmCache": true
}, },
"calculatedTags": [ "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')"
] ]
} }
}, },
@ -82,7 +80,8 @@
"isOsmCache": true "isOsmCache": true
}, },
"calculatedTags": [ "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')"
] ]
} }
}, },
@ -98,7 +97,8 @@
"isOsmCache": true "isOsmCache": true
}, },
"calculatedTags": [ "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')"
] ]
} }
}, },
@ -113,7 +113,8 @@
"isOsmCache": true "isOsmCache": true
}, },
"calculatedTags": [ "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')"
] ]
} }
}, },