C++ backend for the jupyter-leaflet map visualization library

Video Overlay


In [ ]:
#include "xleaflet/xmap.hpp"
#include "xleaflet/xvideo_overlay.hpp"

In [ ]:
auto map = xlf::map_generator()
    .center({25, -115})
    .zoom(4)
    .finalize();

auto video = xlf::video_overlay_generator()
    .url("https://www.mapbox.com/bites/00188/patricia_nasa.webm")
    .bounds({{{13, -130}, {32, -100}}})
    .finalize();

map.add_layer(video);
map