Published
Edited
Dec 8, 2021
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof buffer = fetchProgress(`https://sofetch.glitch.me/${encodeURI(url)}`)
Insert cell
Insert cell
kml = {
const zip = await JSZip.loadAsync(buffer)

const [file] = zip.file(/\.kml$/)
return file.async('string')
}
Insert cell
doc = new DOMParser().parseFromString(kml, "application/xml")
Insert cell
Insert cell
geojson = tj.kml(doc)
Insert cell
geojson.features.find(f => f.properties.name === 'The Loft')
Insert cell
Insert cell
Insert cell
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