Published
Edited
Feb 15, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// source.removeFeature(jstsGeom)
Insert cell
Insert cell
// viewof buffer = slider({
// min: 1,
// max: 1000,
// step: 1,
// value: 500,
// title: "Buffer in metres"
// })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ol = {
// OpenLayers doesn’t publish a build to npm, so we can’t use unpkg. :(
const ol = await require("https://openlayers.org/en/v5.2.0/build/ol.js").catch(() => window.ol);
if (!ol.css) ol.css = document.head.appendChild(html`<link rel=stylesheet href="https://openlayers.org/en/v5.2.0/css/ol.css">`);
return ol;
}
Insert cell
Insert cell
// {
// var el = document.querySelector('#r259 > form > input[type="range"]')
// el.addEventListener("change", e => {
// // console.log(e.target.value)
// source.removeFeature(thamesBuffer)
// // source.addFeatures(thamesBuffer)
// }, false)
// }
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more