A leaflet plugin for adding videos with GPS tracks to the map.
- Interactive videotrack on map with Location and Timestamp synchronised.
- Supports video embeddings from Youtube and other custom hosts.
<script src="https://unpkg.com/[email protected]/dist/Leaflet.VideoMaps.js"></script>
fetch('./sample.json')
.then(result => result.json())
.then((output) => {
var addedTrack = L.VideoMaps.drawTrack(output, "div_element").addTo(map);
})
.catch(err => console.error(err));
Example usage is in dist folder. Go to Demo
- Custom icon for marker
- Node.js package