diff --git a/src/routes/+page.ts b/src/routes/+page.ts index c145b88..32fbd51 100644 --- a/src/routes/+page.ts +++ b/src/routes/+page.ts @@ -3,7 +3,7 @@ import type { PageLoad } from "./$types"; const linesUrl = "https://data.grandlyon.com/geoserver/sytral/ows?SERVICE=WFS&VERSION=2.0.0&request=GetFeature&typename=sytral:tcl_sytral.tcllignemf_2_0_0&outputFormat=application/json&SRSNAME=EPSG:4171&sortBy=gid"; -export const load: PageLoad = async () => { +export const load: PageLoad = async ({ fetch }) => { const res = await fetch(linesUrl); const lines: GeoJSON.FeatureCollection = await res.json();