From c468e599ba785d73eebe43ad484facd7abd3efcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Wed, 3 May 2023 12:44:34 -0400 Subject: [PATCH] feat(vector): preload data despite visibiliy or resolution range --- docs/properties.rst | 5 +++++ src/contexts/variousFormats.json | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/docs/properties.rst b/docs/properties.rst index 99fe88bb7..33a4ddc65 100644 --- a/docs/properties.rst +++ b/docs/properties.rst @@ -650,6 +650,11 @@ Exemples "title": "Donnée geojson sur DQ (pas de service)", "id": "vector1", "sourceOptions": { + "preload": { + "comment": "Charger la donnée dans la source même si le layer est non visible ou hors échelle d'affichage." + "bypassVisible": true + "bypassResolution": true + }, "type": "vector", "url": "https://www.donneesquebec.ca/recherche/dataset/f647f5ed-a8f3-4a47-8ceb-977cbf090675/resource/68e0e20a-415d-44f5-af82-a90311784616/download/bornes-incendies.geojson" "queryable": true, diff --git a/src/contexts/variousFormats.json b/src/contexts/variousFormats.json index 9b5ef4474..4f3467348 100644 --- a/src/contexts/variousFormats.json +++ b/src/contexts/variousFormats.json @@ -110,8 +110,12 @@ }, { "title": "Vector geojson d'appel WFS", + "visible": false, "id": "vector2", "sourceOptions": { + "preload": { + "bypassVisible": true + }, "type": "vector", "url": "https://ws.mapserver.transports.gouv.qc.ca/swtq?service=WFS&request=GetFeature&version=1.1.0&typename=aeroport_piste&outputFormat=geojson", "queryable": true,