#include <random>
#include <array>
#include <vector>
#include "xleaflet/xmap.hpp"
#include "xleaflet/xheatmap.hpp"
auto map = xlf::map::initialize()
.center({37.58, 261.65})
.zoom(5)
.finalize();
std::random_device rd;
std::mt19937 mt(rd());
std::uniform_real_distribution<double> rd_latitude(34.0, 40.0);
std::uniform_real_distribution<double> rd_longitude(255.0, 265.0);
std::uniform_real_distribution<double> rd_intensity(0.0, 1000.0);
std::vector<std::array<double, 3>> heatmap_points;
for (std::size_t i = 0; i < 100; ++i)
{
heatmap_points.push_back({rd_latitude(mt), rd_longitude(mt), rd_intensity(mt)});
}
auto heatmap = xlf::heatmap::initialize()
.locations(heatmap_points)
.finalize();
map.add_layer(heatmap);
map