Published
Edited
Jul 30, 2021
Insert cell
Insert cell
Insert cell
Insert cell
viewof maskColour = html`<input type='color' value="#abd4dc"/>`;
Insert cell
Insert cell
Insert cell
function resetBlendModeFromSelect(evt) {
const vectorContext = ol.render.getVectorContext(evt);
const ctx = vectorContext.context_;
if (ctx) {
ctx.globalCompositeOperation = 'source-over'
}
}
Insert cell
Insert cell
ol = {
// OpenLayers doesn’t publish a build to npm. :(
const ol = await require("https://openlayers.org/en/v6.2.1/build/ol.js").catch(() => window.ol);
if (!ol.css) ol.css = document.head.appendChild(html`<link rel=stylesheet href="https://openlayers.org/en/v6.2.1/css/ol.css">`);
console.log(ol)
return ol;
}
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