Image overlay and Video overlay

Example

#include "xleaflet/xmap.hpp"
#include "xleaflet/xvideo_overlay.hpp"

auto map = xlf::map::initialize()
    .center({25, -115})
    .zoom(4)
    .finalize();

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

map.add_layer(video);
map

Attributes

Attribute

Type

Default Value

Doc

url

std::string

“”

Url to the footage

bounds

std::array<std::array<double, 2>, 2>

{{0.0, 0.0}, {0.0, 0.0}}

SW and NE corners of the image