Public
Edited
Jan 27, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mvt = function(url) {
const key = 'rF1iMNeNc3Eh3ES7Ke8H'
return new ol.layer.MapboxVector({
styleUrl: `${url}?key=${key}`
})
}
Insert cell
Insert cell
Insert cell
couches = [{
label: "Fond SITG",
value: await wmts('https://ge.ch/sitgags2/rest/services/RASTER/PLAN_SITG/MapServer/WMTS/1.0.0/WMTSCapabilities.xml', 'RASTER_PLAN_SITG')
}, {
label: "Aérien SITG",
value: await wmts('https://ge.ch/sitgags2/rest/services/RASTER/ORTHOPHOTOS_2021/MapServer/WMTS/1.0.0/WMTSCapabilities.xml', 'RASTER_ORTHOPHOTOS_2021')
}, {
label: "Cadastre MapTiler",
value: tileJson('https://api.maptiler.com/maps/cadastre/tiles.json')
}, {
label: "Cadastre Satellite MapTiler",
value: tileJson('https://api.maptiler.com/maps/cadastre-satellite/tiles.json')
}, {
label: "Street MapTiler",
value: tileJson('https://api.maptiler.com/maps/streets-v2/tiles.json')
}
]
Insert cell
points = {
const l = new ol.layer.Vector()
const p = new ol.geom.Point(2500343, 1117759)
return p
}
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