fix: use sveltekit's fetch
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 38s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 38s
This commit is contained in:
parent
3cdc8d3c96
commit
e92291eb2e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue