map = {
const height = 800;
let container = DOM.element("div", {
style: `width:${width}px;height:${height}px`
});
yield container;
let layers = [];
if (layers_input.includes("Heatmap")) {
layers.push(lifemap.layer_heatmap(data));
}
if (layers_input.includes("Grid")) {
layers.push(lifemap.layer_grid(data, { cell_size: 1000 }));
}
if (layers_input.includes("Points")) {
layers.push(lifemap.layer_scatter(data));
}
lifemap.lifemap(container, layers, {});
}