Public
Edited
Jan 31, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mapx.ask('get_project').then(id => id)
Insert cell
Insert cell
projects = mapx.ask('get_projects').then(projects => projects)
Insert cell
Insert cell
viewof projectSelected = {
const select = document.createElement("select");
projects.forEach(function(p) {
let option = document.createElement('option'); option.value = p.id; option.text = p.title;
select.appendChild(option);
});
return select;
}
Insert cell
mapx.ask('set_project', {idProject: projectSelected})
Insert cell
Insert cell
{
let input = html`<input type="text" value="..." disabled style="width:100%;">`
mapx.on('project_change', p => {
input.value = JSON.stringify(p);
});
return input;
}
Insert cell
Insert cell
mapx.ask('get_project_collections').then((collections) => collections)
Insert cell
Insert cell
import {newMapxManager} from "a043a158ccf4fa6c"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more