From 1fd020aa4bcb7a118c3b726bca76604003e49a42 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 4 Jun 2021 16:42:51 +0200 Subject: [PATCH] Add video embed --- assets/themes/speelplekken/speelplekken.json | 27 ++++++++++---------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/assets/themes/speelplekken/speelplekken.json b/assets/themes/speelplekken/speelplekken.json index 9fbf5a848..a522d470e 100644 --- a/assets/themes/speelplekken/speelplekken.json +++ b/assets/themes/speelplekken/speelplekken.json @@ -39,20 +39,17 @@ "builtin": "play_forest", "override": { "source": { - "#geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", - "#geoJsonZoomLevel": 14, - "#isOsmCache": true + "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJsonZoomLevel": 14, + "isOsmCache": true }, "icon": "./assets/themes/speelplekken/speelbos.svg", - "minzoom": - 12, + "minzoom": 12, "calculatedTags": [ + "_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''", "_video:id=new URL(feat.properties.video).searchParams.get('v')" ] - }, - "calculatedTags": [ - "_is_shadowed=feat.overlapWith('shadow').length > 0 ? 'yes': ''" - ] + } }, { "builtin": "playground", @@ -66,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')" ] } }, @@ -82,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')" ] } }, @@ -98,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')" ] } }, @@ -113,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')" ] } },