The fullscreen_control
allows one to display a selector on the top left of the map in order to display the map in fullscreen.
#include "xleaflet/xmap.hpp" #include "xleaflet/xfullscreen_control.hpp" auto map = xlf::map::initialize() .center({51.64, -76.52}) .zoom(5) .finalize(); map.add_control(xlf::fullscreen_control()); map