In [ ]:
#include "xwidgets/xhtml.hpp"
#include "xleaflet/xmap.hpp"
#include "xleaflet/xmarker.hpp"
auto html = xw::html::initialize()
.value("Hello from an <b>xwidget</b> in an <b>xmarker</b>!")
.finalize();
std::array<double, 2> center = {52.204793, 360.121558};
auto map = xlf::map::initialize()
.center(center)
.zoom(15)
.finalize();
auto marker = xlf::marker::initialize()
.location(center)
.draggable(false)
.popup(html)
.finalize();
map.add_layer(marker);
map