Published
Edited
Mar 1, 2021
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mergedGeoJSON.features.filter(f => f.properties.name === 'Anticipation')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
statuesWikidataGeoJSON = JSON.parse(JSON.stringify({
"type": "FeatureCollection",
"features": []
}))
Insert cell
Insert cell
Insert cell
Insert cell
md`# data`
Insert cell
statuesWikidata = FileAttachment('statues-wikidata.json').json()
Insert cell
statuesOsm = FileAttachment("statues-osm.json").json()
Insert cell
statuesArcgisTmp = FileAttachment('statues-arcgis.json').json()
Insert cell
// additional step to fix broken crs definition and reproject
statuesArcgis = {
statuesArcgisTmp.crs.properties.name="EPSG:27700"
return reproject.toWgs84(statuesArcgisTmp, undefined, epsg);
}
Insert cell
md`# helpers`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`# libs`
Insert cell
Insert cell
Insert cell
Insert cell
reproject = require('https://bundle.run/reproject@1.2.5')
Insert cell
epsg = require('https://bundle.run/epsg@0.5.0')
Insert cell
geojsonMerge = require('https://bundle.run/@mapbox/geojson-merge@1.0.2')
Insert cell
L = require('leaflet@1.6.0')
Insert cell
html`<link href='${resolve('leaflet@1.6.0/dist/leaflet.css')}' rel='stylesheet' />`
Insert cell
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