Published
Edited
Oct 21, 2021
Insert cell
Insert cell
Insert cell
Insert cell
buffer = turf.buffer(polygon, 50 / 1000)
Insert cell
bufferLine = turf.lineString([
polygon.features[0].geometry.coordinates[0][0],
buffer.features[0].geometry.coordinates[0][1]
])
Insert cell
map([polygon, buffer, bufferLine])
Insert cell
bufferDistanceInMeter = turf.length(bufferLine) * 1000
Insert cell
import { map } from "@chrispahm/map"
Insert cell
Insert cell
turf = require("@turf/turf@6.5.0")
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