diff --git a/docs/SlavaUkraini/examples.md b/docs/SlavaUkraini/examples.md index 084beff0dfe..163cf74887a 100644 --- a/docs/SlavaUkraini/examples.md +++ b/docs/SlavaUkraini/examples.md @@ -97,10 +97,10 @@ description="How the default map panes work to display overlays on top of tiles, {% include tutorial_link.html -page="video-overlay/" -thumbnail="video-overlay/thumbnail.gif" -title="Showing video files" -description="Leaflet can help you display videos somewhere on the map." +page="overlays/" +thumbnail="overlays/thumbnail.gif" +title="Overlays: Image, Video, SVG" +description="Leaflet can help you display images, videos and SVG elements somewhere on the map." %} *** diff --git a/docs/SlavaUkraini/examples/overlays/example-image.md b/docs/SlavaUkraini/examples/overlays/example-image.md new file mode 100644 index 00000000000..c38f17a3b48 --- /dev/null +++ b/docs/SlavaUkraini/examples/overlays/example-image.md @@ -0,0 +1,31 @@ +--- +layout: tutorial_frame +title: Image Overlay Tutorial +--- + \ No newline at end of file diff --git a/docs/SlavaUkraini/examples/video-overlay/example-nocontrols.md b/docs/SlavaUkraini/examples/overlays/example-nocontrols.md similarity index 69% rename from docs/SlavaUkraini/examples/video-overlay/example-nocontrols.md rename to docs/SlavaUkraini/examples/overlays/example-nocontrols.md index 5bb866d5e37..9ae8fe9abae 100644 --- a/docs/SlavaUkraini/examples/video-overlay/example-nocontrols.md +++ b/docs/SlavaUkraini/examples/overlays/example-nocontrols.md @@ -17,15 +17,19 @@ title: Video Overlay Tutorial var videoUrls = [ 'https://www.mapbox.com/bites/00188/patricia_nasa.webm', 'https://www.mapbox.com/bites/00188/patricia_nasa.mp4' - ], - bounds = L.latLngBounds([[32, -130], [13, -100]]); + ]; + var errorOverlayUrl = 'https://cdn-icons-png.flaticon.com/512/110/110686.png'; + var bounds = L.latLngBounds([[32, -130], [13, -100]]); map.fitBounds(bounds); - var overlay = L.videoOverlay(videoUrls, bounds, { + var videoOverlay = L.videoOverlay(videoUrls, bounds, { opacity: 0.8, - interactive: true - }); - map.addLayer(overlay); + errorOverlayUrl: errorOverlayUrl, + interactive: true, + autoplay: true, + muted: true, + playsInline: true + }).addTo(map); diff --git a/docs/SlavaUkraini/examples/overlays/example-svg.md b/docs/SlavaUkraini/examples/overlays/example-svg.md new file mode 100644 index 00000000000..7daf6cb3746 --- /dev/null +++ b/docs/SlavaUkraini/examples/overlays/example-svg.md @@ -0,0 +1,29 @@ +--- +layout: tutorial_frame +title: SVG Overlay Tutorial +--- + \ No newline at end of file diff --git a/docs/SlavaUkraini/examples/video-overlay/example.md b/docs/SlavaUkraini/examples/overlays/example-video.md similarity index 64% rename from docs/SlavaUkraini/examples/video-overlay/example.md rename to docs/SlavaUkraini/examples/overlays/example-video.md index f3bb21efe7a..13ffe6814b0 100644 --- a/docs/SlavaUkraini/examples/video-overlay/example.md +++ b/docs/SlavaUkraini/examples/overlays/example-video.md @@ -1,6 +1,6 @@ --- layout: tutorial_frame -title: Video Overlay Tutorial +title: Video Overlay Tutorial (video with controls) --- diff --git a/docs/SlavaUkraini/examples/video-overlay/index.md b/docs/SlavaUkraini/examples/video-overlay/index.md deleted file mode 100644 index ffbdb0acf93..00000000000 --- a/docs/SlavaUkraini/examples/video-overlay/index.md +++ /dev/null @@ -1,124 +0,0 @@ ---- -layout: tutorial_v2 -title: Leaflet on Mobile ---- - -## Video on webpages - -Video used to be a hard task when building a webpage, until the [`