Published
Edited
Apr 9, 2019
2 forks
Insert cell
Insert cell
map = {
const WIDTH = width
const HEIGHT = width * 0.6
let container = DOM.element('div', { style: `width:${WIDTH}px;height:${HEIGHT}px` })
yield container

const map = L.map(container).setView([47.5596, 7.5886], 13)
const tileLayer = L.tileLayer('https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}@2x.png', {
attribution: 'Wikimedia maps | &copy; <a href="http://osm.org/copyright">OpenStreetMap</a>'
}).addTo(map)
}
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