Published
Edited
Aug 27, 2020
Fork of Europe
1 star
Insert cell
Insert cell
Insert cell
Insert cell
function snap([latmin, latmax, lngmin, lngmax]) {
latmin = Math.floor(latmin) - 1;
latmax = Math.ceil(latmax) + 1;
lngmin = Math.floor(lngmin) - 1;
lngmax = Math.ceil(lngmax) + 1;

return [latmin, latmax, lngmin, lngmax];
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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