Published
Edited
Jan 14, 2020
1 star
Insert cell
Insert cell
container = html`<div style="height:600px;">`
Insert cell
map = {
const map = L.map(container).setView([38.9072, -77.0369], 15);
L.tileLayer("https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}@2x.png", {
attribution: "Wikimedia maps beta | &copy; <a href='http://osm.org/copyright'>OpenStreetMap</a> contributors"
}).addTo(map);
// Check out what happens if you remove/comment the next next line, then rerun the cell -- twice.
invalidation.then(() => map.remove());
return map;
}
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