Skip to content

Commit

Permalink
feat(vector): preload data despite visibiliy or resolution range (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed May 3, 2023
1 parent be77cf2 commit a838e2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/contexts/variousFormats.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a838e2e

Please sign in to comment.