Image overlay and Video overlay

Example

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

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

auto video = xlf::video_overlay::initialize();
video.url = "https://www.mapbox.com/bites/00188/patricia_nasa.webm";
video.bounds = xlf::video_overlay::bounds_type{{{13, -130}, {32, -100}}};
video.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