--------------------- Contrôle par URL --------------------- ******************************* Langage de l'application ******************************* Permet de contrôler par url le langage utilisé dans l'application. Si le langage demandé n'existe pas, c'est l'anglais (en) qui sera utilisé. Params : - lang= fr ou en Exemple: - https://infra-geo-ouverte.github.io/igo2/?lang=fr ******************************* Ouverture du panneau latéral ******************************* Params : - sidenav= 1 ou 0 (1 = ouvert) Exemple: - https://infra-geo-ouverte.github.io/igo2/?sidenav=1 ******************************* Ajout de couches ******************************* Params : - wmsUrl= - layers= - vector= Exemple: - https://infra-geo-ouverte.github.io/igo2/?wmsUrl=https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi&layers=evenements - https://infra-geo-ouverte.github.io/igo2/?vector=https://storage.googleapis.com/dx-montreal/resources/0e810012-17ad-4f31-b59a-95bb0d6c2a56/programmation-culturelle-estivale-2020.geojson?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=60&X-Amz-Credential=GOOG1EM55P356HYDSB5BC4M4SBSA6Q7NQVVTNVVFSZOBSOVIVW5ZADICRGUKA%2F20200908%2Feurope-west1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Date=20200908T191119Z&X-Amz-Signature=a1794cf568c99a2a8fd49c923339f8460e91ba0eaf6e4c8812ab3fd276cd9afe - https://infra-geo-ouverte.github.io/igo2/?vector=https://www.donneesquebec.ca/recherche/fr/dataset/f647f5ed-a8f3-4a47-8ceb-977cbf090675/resource/68e0e20a-415d-44f5-af82-a90311784616/download/bornes-incendies.geojson ******************************* Sélection du contexte ******************************* Params : - context= Exemple: - https://infra-geo-ouverte.github.io/igo2/?context=simple2 ******************************* Zoom ******************************* Params : - zoom= Exemple: - https://infra-geo-ouverte.github.io/igo2/?zoom=10 ******************************* Centre de la carte ******************************* Les coordonnées sont en latitude longitude. Params : - center= Exemple: - https://infra-geo-ouverte.github.io/igo2/?center=-70.70426615422834,57.62669012416586 ******************************* Étendue de la carte ******************************* Permet de zoomer à l'étendue désirée à l'ouverture de la carte. Les coordonnées sont en latitude longitude, selon la logique suivante [minx, miny, maxx, maxy]. Elles seront converties selon la projection de la carte. Ce paramètre d'URL a été introduite car le zoom et le center (par url) ne permettent pas d'obtenir le même résultat, par mobile, tablette ou bureau. Params : - zoomExtent= Exemple: - https://infra-geo-ouverte.github.io/igo2/?zoomExtent=-72,60,-71,61 ******************************* Visibilité des couches ******************************* Basé sur les identifiant du layer. L'id peut être configuré dans les contexte OU assigné automatiquement (uuid). .. code:: json { "title": "OSM", "baseLayer": true, "**id**":"osm1", "sourceOptions": { "type": "osm" } } Params : - visiblelayers= (liste de id, séparés par une virgule OU * (tous) ) - invisiblelayers= (liste de id, séparés par une virgule OU * (tous) ) Exemple: - https://infra-geo-ouverte.github.io/igo2/?invisiblelayers=*&visiblelayers=6143562e58898a852eeb658ba493e8e7,carte_gouv_qc ******************************** Outil actif lors de l'ouverture ******************************** Params : - tool= Exemple: - https://infra-geo-ouverte.github.io/igo2/?tool=about - https://infra-geo-ouverte.github.io/igo2/?tool=catalog - catalogBrowser (pas disponible car un catalogue doit être sélectionné) - https://infra-geo-ouverte.github.io/igo2/?tool=contextManager - https://infra-geo-ouverte.github.io/igo2/?tool=directions - https://infra-geo-ouverte.github.io/igo2/?tool=ogcFilter - https://infra-geo-ouverte.github.io/igo2/?tool=timeFilter - https://infra-geo-ouverte.github.io/igo2/?tool=spatialFilter - https://infra-geo-ouverte.github.io/igo2/?tool=importExport - https://infra-geo-ouverte.github.io/igo2/?tool=mapDetails - https://infra-geo-ouverte.github.io/igo2/?tool=map - https://infra-geo-ouverte.github.io/igo2/?tool=measurer - https://infra-geo-ouverte.github.io/igo2/?tool=print - https://infra-geo-ouverte.github.io/igo2/?tool=searchResults ******************************** Recherche ******************************** Params : - search= - #couche pour n'avoir que les couches - #adresse - #route - #municipalites, #mun - #mrc - #entreprise - #lieu - #sumi, #borne, #bornes - #code-postal - #anciennes-adresses - #ancienne-municipalites - #région-administrative ou #regadmin - #borne, #bornes, #repère, #km - search=915&sf=1 - **sf=1** permet de zoomer sur le premier résultat - search=915&searchGeom=1 - **searchGeom=1** permet de faire afficher la géométrie des résultats retournés par la recherche. - search=1000000&exactMatch=1 - **exactMatch=1** permet de conserver dans la liste des résultats que ceux ayant un match exact. Controle par URL pour la 1ère recherche par url seulement. Exemple: - https://infra-geo-ouverte.github.io/igo2/?search=feu&zoom=18 - https://infra-geo-ouverte.github.io/igo2/?search=915%23adresse - https://infra-geo-ouverte.github.io/igo2/?search=cabaret%23lieu - https://infra-geo-ouverte.github.io/igo2/?search=g1v4j7%23code-postal&sf=1 - https://infra-geo-ouverte.github.io/igo2/?search=915%23adresse&searchGeom=1 ******************************** Itinéraire ******************************** Params : - tool=directions - routing= (liste de longitude,latitude, séparé par virgules) Exemple: - https://infra-geo-ouverte.github.io/igo2/?tool=directions&routing=-72.4540601953125,47.86101094949734;-70.65092909179685,47.24932843990587