Published
Edited
Jun 17, 2022
1 fork
Importers
6 stars
Insert cell
Insert cell
Insert cell
Insert cell
map2 = view(geojson, {
style: style
})
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
### trip layer

This layer shows the fastest route to follow to reach all climbing areas managed by the FSGT federation. It includes 4 fields :
- start: the osm identifier of the starting point
- end: the osm identifier of the ending point
- duration: duration of the route by bike, in munutes.
- distance: length of the route by bike, in kilometres.
Insert cell
viewof table3 = Inputs.table(data_trip, {
maxHeight: "200px",
})
Insert cell
data_trip = trip.features.map(d => d.properties)
Insert cell
Insert cell
Insert cell
html` <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>`
Insert cell
bertin = require("bertin")
Insert cell
view = require("geoverview@1.2").then((f) => f.view)
Insert cell
lambert93 = "+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
Insert cell
com = FileAttachment("com@3.geojson").json()
Insert cell
iris = FileAttachment("iris@8.geojson").json()
Insert cell
poi = FileAttachment("poi@10.geojson").json()
Insert cell
iris15 = FileAttachment("iris15@3.geojson").json()
Insert cell
data = new Map([
["Climbing areas (dots)", poi],
["IRIS (polygons)", iris],
["Bike trip to visit all FSGT climbing areas (lines)", trip],
["Isochrones from climbing areas (polygons)", iso_all],
["Layout municipalities (polygons)", com],
])
Insert cell
iso_all = FileAttachment("iso_all.geojson").json()
Insert cell
iso_fsgt = FileAttachment("iso_fsgt.geojson").json()
Insert cell
iso_priv = FileAttachment("iso_priv.geojson").json()
Insert cell
trip = FileAttachment("trip@1.geojson").json()
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