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

WMS Layer


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

In [ ]:
auto wms = xlf::wms_layer_generator()
    .url("https://demo.boundlessgeo.com/geoserver/ows?")
    .layers("nasa:bluemarble")
    .finalize();

auto map = xlf::map_generator()
    .layers({wms})
    .center({42.5531, -48.6914})
    .zoom(3)
    .finalize();

map