Public
Edited
Oct 12, 2024
Insert cell
Insert cell
map = FileAttachment("ShapesWithRoutesMelb.json").json()
Insert cell
features_filtered = {
return map.features.filter((f) => {
if (f.properties.stroke !== "#168388") return true;
else if (
f.properties.stroke == "#168388" &&
f.properties.id == "3411:168388"
)
return true;
else return false;
});
}
Insert cell
{
return {
type: "FeatureCollection",
features: features_filtered.map((f) => {
return {
...f
};
})
};
}
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