Public
Edited
Apr 11, 2023
Importers
1 star
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
url_oneInch = (x, y, z) =>
`data:image/png;base64,` + files_resolved[`${z}/${x}/${y}`]

// Example url function pointing instead to tileserver url (switch this in for the function above, and see what happens to the graphic at the bottom of the page)
// url_oneInch = (x, y, z) =>
// `https://tiles.wmflabs.org/bw-mapnik/${z}/${x}/${y}.png `
Insert cell
html`<img src="${await url_oneInch(123, 78, 8)}">`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { animated_map, viewof year } with {
one_inch_byYear as year_data_features,
one_inch_byYear_cumulative as year_data_features_cumulative,
url_oneInch as url,
width_oneInch as width,
options
} from "a78b35a4c53c6e4c"
Insert cell
Insert cell
options = ({
width_padding: 200,
animation_speed: 1000,
shape_behind: gb,
draw_sheetOutlines: true,
colour_mode: "light", // or 'dark'
translate_x: -50
})
Insert cell
Insert cell
viewof year
Insert cell
animated_map(options)
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