Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 759 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 759 Bytes

Leaflet.VideoMaps

A leaflet plugin for adding videos with GPS tracks to the map.

It will support,

  • Interactive videotrack on map with Location and Timestamp synchronised.
  • Supports video embeddings from Youtube and other custom hosts.

Usage,

<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

Todo list

  • Custom icon for marker
  • Node.js package