Leaflet version 1.1.0 has been released. The latest version of Leaflet's mapping library includes a novel L.VideoOverlay bird which allows y'all to add together videos equally an overlay to your maps.
To run into what y'all tin exercise alongside L.VideoOverlay y'all tin sentiment the Leaflet documentation demo map. To teach started adding videos to your Leaflet maps too thus y'all should accept a await at the L.VideoOverlay Tutorial.
Adding a video to a Leaflet map is right away rattling simple. You simply demand your video too the geographical bounds of your video. If y'all know the geographical bounds of the video too thus it is a uncomplicated project to simply add together the video (as y'all public add together an icon overlay) inwards the right set on the map.
Unfortunately L.VideoOverlay volition solely hold out if due north is at the hold out past times inwards your video coverage. If your video doesn't accept a 'north-up orientation' things teach a lot to a greater extent than complicated. Influenza A virus subtype H5N1 release of plug-ins accept been written which allow y'all to rotate images added using L.ImageOverlay. You could accept a await at these icon overlay plug-ins to teach some ideas most how to rotate a video overlay inwards Leaflet.
Alternatively y'all could seek MapboxGL to add together a video to a map. As y'all tin run into inwards this Add a Video exhibit map y'all tin rotate a video overlay inwards MapboxGL to ensure that due north is ever at the top.
If y'all desire some inspiration for what y'all tin plough over past times adding a video overlay on a map too thus accept a await at the amazing Interactive Map of Influenza A virus subtype H5N1 Year In The Life Of Earth's CO2. This wraps an HTML5 version of NASA's narrated video of a year's Carbon Monoxide too Carbon Dioxide concentrations some an interactive globe.
You could exercise something like to the inwards a higher house map alongside Leaflet if y'all created your ain narrated video. The novel L.VideoOverlay bird allows y'all to add together video playback controls to your map. By adding video controls y'all tin allow your users to pause, rewind too frontwards through a narrated video.
If y'all desire to get-go playing alongside L.VideoOverlay y'all tin download some aerial video footage from NASA's GOES Project.
Buat lebih berguna, kongsi: