Leaflet.DistortableVideo

Warps an HTML5 video onto four arbitrary map corners using CSS 3D transforms, so footage can be registered to the ground it was filmed over. Every example below is live — pan and zoom the map.

Leaflet 1

1.9.4

Most of these show footage that is not aligned to the map being registered onto the ground it covers — which is the reason the plugin exists. These use Leaflet 1's lowercase factories (L.map, L.latLng).

Leaflet 2

2.0.0-alpha.1 alpha

Leaflet 2 replaced the factories with constructors (new L.Map) and made the ES module the default entry point, so a script-tag page loads dist/leaflet-global.js. The plugin itself needs no version switch — the same build serves both.