Public
Edited
Dec 19, 2023
Insert cell
Insert cell
Insert cell
import { provinces, pr, lakes, places } from "@mbrickmaps/ne-10m"
Insert cell
import { Legend } from "@mbrickmaps/make-a-legend"
Insert cell
import { rivers } from "@mbrickmaps/rivers"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
await visibility();
return new Mapa({
...defaultSettings,
...{
width: 680,
bounds: {
bounder: true,
countries: null,
feature: {
type: "Feature",
geometry: {
type: "Polygon",
//set the bounds
coordinates: savedExtent //bounder.bounds
}
}
},
layer: {
points: {
show: false,
data: mungeData
}, //[{}]}, points
polys: {
show: false
},
tiles: {
show: false
},
grids: {
show: true,
data: [].concat(geoData),
method: { type: "raw" },
type: "qtree",
size: sqSize,
shape: "circle",
minSize: minSize,
maxSize: maxSize,
style: {
fill: "red",
"fill-opacity": 0.3,
stroke: "black",
"stroke-width": 0.5
},
qtree: {
show: false
},
square: {
show: true
}
}
},
//set the projection
projection: {
proj: "+proj=eqdc +lon_0=-93.0322266 +lat_1=26.8946786 +lat_2=34.8947853 +lat_0=30.894732 +datum=WGS84 +units=m +no_defs",
type: "proj4"
}
},
clipping: { clip: true, margin: 0 }
}).render;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mungeData
Insert cell
Insert cell
Insert cell
viewof bounder
Insert cell
JSON.stringify(bounder.bounds)
Insert cell
Insert cell
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