From 868d5c7e31824dbc0972e3521f6ff033cb793fd5 Mon Sep 17 00:00:00 2001 From: Continuous integration Date: Thu, 15 Jul 2021 10:56:28 +0000 Subject: [PATCH] Run code style --- .prettierignore | 1 + .prettierrc.yaml | 2 + .../.github/workflows/main.yaml | 1 - CONST_create_template/geoportal/vars.yaml | 7 +- .../static/story-map.html | 260 +++++++------ .../geomapfish/requestDataA4Portrait.json | 351 +++++++++--------- .../print-apps/geomapfish/requestDataEN.json | 351 +++++++++--------- 7 files changed, 480 insertions(+), 493 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc.yaml diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..121531af8 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.min.js diff --git a/.prettierrc.yaml b/.prettierrc.yaml new file mode 100644 index 000000000..8d61d0169 --- /dev/null +++ b/.prettierrc.yaml @@ -0,0 +1,2 @@ +bracketSpacing: false +quoteProps: preserve diff --git a/CONST_create_template/.github/workflows/main.yaml b/CONST_create_template/.github/workflows/main.yaml index 7e0520845..d0919c51c 100644 --- a/CONST_create_template/.github/workflows/main.yaml +++ b/CONST_create_template/.github/workflows/main.yaml @@ -56,7 +56,6 @@ jobs: run: c2cciutils-publish --group=config - run: ci/trigger --image=config - geoportal: runs-on: ubuntu-20.04 name: Geoportal diff --git a/CONST_create_template/geoportal/vars.yaml b/CONST_create_template/geoportal/vars.yaml index 01185d1da..123530719 100644 --- a/CONST_create_template/geoportal/vars.yaml +++ b/CONST_create_template/geoportal/vars.yaml @@ -1,9 +1,7 @@ --- - extends: CONST_vars.yaml vars: - srid: 2056 alternate_projections: &alternate_projections @@ -140,7 +138,7 @@ vars: # Default values for the admin interface's maps. map: baseLayers: - - type_: "OSM" + - type_: 'OSM' view: projection: 'EPSG:3857' center: [829170, 5933942] @@ -167,7 +165,7 @@ vars: shortener: # Used to send a confirmation email email_from: info@example.com - email_subject: "Geoportal URL" + email_subject: 'Geoportal URL' email_body: | Hello, @@ -322,7 +320,6 @@ no_interpreted: - reset_password.email_body - shortener.email_body - welcome_email.email_body - # Standalone version # runtime_postprocess: # - expression: "int({})" diff --git a/geoportal/geomapfish_geoportal/static/story-map.html b/geoportal/geomapfish_geoportal/static/story-map.html index 214d1d7b1..8986a46c7 100644 --- a/geoportal/geomapfish_geoportal/static/story-map.html +++ b/geoportal/geomapfish_geoportal/static/story-map.html @@ -1,142 +1,140 @@ + + + ngeo story map - - - ngeo story map + + - - + - + + - - - - - - - - - -
- -
-
-

story map

-

A story map with ngeo.

-
Start
-
- -
-

Nyon

- -

- Nyon est une ville et une commune suisse du canton de Vaud, située dans le district de Nyon, dont elle est le - chef-lieu. -

-
-
-

Morges

- -

- Morges est une commune suisse du canton de Vaud, située au bord du Léman. La ville est le - chef-lieu du district de Morges, qui se trouve être la limite occidentale de l'agglomération lausannoise, aussi - nommée agglomération Lausanne-Morges. -

-
-
-

Lausanne

- -

- Lausanne est une ville suisse située sur la rive nord du lac Léman. Elle est la capitale et ville principale du - canton de Vaud et le chef-lieu du district de Lausanne. Elle constitue la quatrième ville du pays en termes de - population4 après Zurich, Genève et Bâle. -

-
-
-

Vevey

- -

- Vevey est une ville et une commune suisse du canton de Vaud située sur la rive nord du lac Léman. Sixième - commune du canton par sa population, elle est le chef-lieu du district de la Riviera-Pays-d'Enhaut. Au 31 - décembre 2018, la commune de Vevey compte 19 904 habitants. -

-
-
- -

Go to Lausanne chapter

- - - - + + + + +
+ +
+
+

story map

+

A story map with ngeo.

+
Start
+
+ +
+

Nyon

+ +

+ Nyon est une ville et une commune suisse du canton de Vaud, située dans le district de Nyon, dont + elle est le chef-lieu. +

+
+
+

Morges

+ +

+ Morges est une commune suisse du canton de Vaud, située au bord du Léman. La ville est le chef-lieu + du district de Morges, qui se trouve être la limite occidentale de l'agglomération lausannoise, + aussi nommée agglomération Lausanne-Morges. +

+
+
+

Lausanne

+ +

+ Lausanne est une ville suisse située sur la rive nord du lac Léman. Elle est la capitale et ville + principale du canton de Vaud et le chef-lieu du district de Lausanne. Elle constitue la quatrième + ville du pays en termes de population4 après Zurich, Genève et Bâle. +

+
+
+

Vevey

+ +

+ Vevey est une ville et une commune suisse du canton de Vaud située sur la rive nord du lac Léman. + Sixième commune du canton par sa population, elle est le chef-lieu du district de la + Riviera-Pays-d'Enhaut. Au 31 décembre 2018, la commune de Vevey compte 19 904 habitants. +

+
+
+

Go to Lausanne chapter

+ + + diff --git a/print/print-apps/geomapfish/requestDataA4Portrait.json b/print/print-apps/geomapfish/requestDataA4Portrait.json index 80d68ee9b..094db4dd2 100644 --- a/print/print-apps/geomapfish/requestDataA4Portrait.json +++ b/print/print-apps/geomapfish/requestDataA4Portrait.json @@ -1,183 +1,178 @@ { - "attributes": { - "map": { - "dpi": 254, - "rotation": 0, - "center": [537667.8392100265, 152527.76089525849], - "projection": "EPSG:2056", - "scale": 5000, - "layers": [ - { - "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy", - "imageFormat": "image/png", - "layers": [ - "osm_hospitals", - "osm_firestations", - "landuse", - "railways" - ], - "customParams": { - "TRANSPARENT": "true", - "ogcserver": "QGIS server", - "cache_version": "cfe127c3bd2c4d3a80c3f37d6c4eca1a", - "STYLES": ",,," - }, - "serverType": "qgisserver", - "type": "wms", - "opacity": 1, - "useNativeAngle": true - }, - { - "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/tiles/1.0.0/map/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png", - "dimensions": [], - "dimensionParams": {}, - "imageFormat": "image/png", - "layer": "map", - "matrices": [ - { - "identifier": "0", - "scaleDenominator": 3571428.571428572, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [1, 1] - }, - { - "identifier": "1", - "scaleDenominator": 1785714.285714286, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [3, 2] - }, - { - "identifier": "2", - "scaleDenominator": 892857.142857143, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [7, 4] - }, - { - "identifier": "3", - "scaleDenominator": 357142.85714285716, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [18, 12] - }, - { - "identifier": "4", - "scaleDenominator": 178571.42857142858, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [37, 24] - }, - { - "identifier": "5", - "scaleDenominator": 71428.57142857143, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [93, 62] - }, - { - "identifier": "6", - "scaleDenominator": 35714.28571428572, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [187, 124] - }, - { - "identifier": "7", - "scaleDenominator": 17857.14285714286, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [374, 249] - }, - { - "identifier": "8", - "scaleDenominator": 7142.857142857143, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [937, 624] - }, - { - "identifier": "9", - "scaleDenominator": 3571.4285714285716, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [1874, 1249] - }, - { - "identifier": "10", - "scaleDenominator": 1785.7142857142858, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [3749, 2499] - }, - { - "identifier": "11", - "scaleDenominator": 892.8571428571429, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [7499, 4999] - }, - { - "identifier": "12", - "scaleDenominator": 357.14285714285717, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [18749, 12499] - }, - { - "identifier": "13", - "scaleDenominator": 178.57142857142858, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [37499, 24999] - } - ], - "matrixSet": "swissgrid_005", - "opacity": 1, - "requestEncoding": "REST", - "style": "default", - "type": "WMTS", - "version": "1.0.0" - } - ] + "attributes": { + "map": { + "dpi": 254, + "rotation": 0, + "center": [537667.8392100265, 152527.76089525849], + "projection": "EPSG:2056", + "scale": 5000, + "layers": [ + { + "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy", + "imageFormat": "image/png", + "layers": ["osm_hospitals", "osm_firestations", "landuse", "railways"], + "customParams": { + "TRANSPARENT": "true", + "ogcserver": "QGIS server", + "cache_version": "cfe127c3bd2c4d3a80c3f37d6c4eca1a", + "STYLES": ",,," + }, + "serverType": "qgisserver", + "type": "wms", + "opacity": 1, + "useNativeAngle": true }, - "datasource": [], - "debug": false, - "legend": { - "classes": [ - { - "classes": [ - { - "name": "Hôpitaux OSM", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_hospitals&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - }, - { - "name": "Caserne de pompiers OSM", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_firestations&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - }, - { - "name": "Utilisation du sol", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=landuse&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - }, - { - "name": "Voies ferrées", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=railways&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - } - ] - } - ] + { + "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/tiles/1.0.0/map/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png", + "dimensions": [], + "dimensionParams": {}, + "imageFormat": "image/png", + "layer": "map", + "matrices": [ + { + "identifier": "0", + "scaleDenominator": 3571428.571428572, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [1, 1] + }, + { + "identifier": "1", + "scaleDenominator": 1785714.285714286, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [3, 2] + }, + { + "identifier": "2", + "scaleDenominator": 892857.142857143, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [7, 4] + }, + { + "identifier": "3", + "scaleDenominator": 357142.85714285716, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [18, 12] + }, + { + "identifier": "4", + "scaleDenominator": 178571.42857142858, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [37, 24] + }, + { + "identifier": "5", + "scaleDenominator": 71428.57142857143, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [93, 62] + }, + { + "identifier": "6", + "scaleDenominator": 35714.28571428572, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [187, 124] + }, + { + "identifier": "7", + "scaleDenominator": 17857.14285714286, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [374, 249] + }, + { + "identifier": "8", + "scaleDenominator": 7142.857142857143, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [937, 624] + }, + { + "identifier": "9", + "scaleDenominator": 3571.4285714285716, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [1874, 1249] + }, + { + "identifier": "10", + "scaleDenominator": 1785.7142857142858, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [3749, 2499] + }, + { + "identifier": "11", + "scaleDenominator": 892.8571428571429, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [7499, 4999] + }, + { + "identifier": "12", + "scaleDenominator": 357.14285714285717, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [18749, 12499] + }, + { + "identifier": "13", + "scaleDenominator": 178.57142857142858, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [37499, 24999] + } + ], + "matrixSet": "swissgrid_005", + "opacity": 1, + "requestEncoding": "REST", + "style": "default", + "type": "WMTS", + "version": "1.0.0" } + ] }, - "format": "pdf", - "lang": "fr", - "layout": "1 A4 portrait" + "datasource": [], + "debug": false, + "legend": { + "classes": [ + { + "classes": [ + { + "name": "Hôpitaux OSM", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_hospitals&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + }, + { + "name": "Caserne de pompiers OSM", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_firestations&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + }, + { + "name": "Utilisation du sol", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=landuse&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + }, + { + "name": "Voies ferrées", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=railways&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + } + ] + } + ] + } + }, + "format": "pdf", + "lang": "fr", + "layout": "1 A4 portrait" } diff --git a/print/print-apps/geomapfish/requestDataEN.json b/print/print-apps/geomapfish/requestDataEN.json index f20ddbd2b..209ef4bbd 100644 --- a/print/print-apps/geomapfish/requestDataEN.json +++ b/print/print-apps/geomapfish/requestDataEN.json @@ -1,183 +1,178 @@ { - "attributes": { - "map": { - "dpi": 254, - "rotation": 0, - "center": [537667.8392100265, 152527.76089525849], - "projection": "EPSG:2056", - "scale": 5000, - "layers": [ - { - "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy", - "imageFormat": "image/png", - "layers": [ - "osm_hospitals", - "osm_firestations", - "landuse", - "railways" - ], - "customParams": { - "TRANSPARENT": "true", - "ogcserver": "QGIS server", - "cache_version": "cfe127c3bd2c4d3a80c3f37d6c4eca1a", - "STYLES": ",,," - }, - "serverType": "qgisserver", - "type": "wms", - "opacity": 1, - "useNativeAngle": true - }, - { - "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/tiles/1.0.0/map/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png", - "dimensions": [], - "dimensionParams": {}, - "imageFormat": "image/png", - "layer": "map", - "matrices": [ - { - "identifier": "0", - "scaleDenominator": 3571428.571428572, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [1, 1] - }, - { - "identifier": "1", - "scaleDenominator": 1785714.285714286, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [3, 2] - }, - { - "identifier": "2", - "scaleDenominator": 892857.142857143, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [7, 4] - }, - { - "identifier": "3", - "scaleDenominator": 357142.85714285716, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [18, 12] - }, - { - "identifier": "4", - "scaleDenominator": 178571.42857142858, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [37, 24] - }, - { - "identifier": "5", - "scaleDenominator": 71428.57142857143, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [93, 62] - }, - { - "identifier": "6", - "scaleDenominator": 35714.28571428572, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [187, 124] - }, - { - "identifier": "7", - "scaleDenominator": 17857.14285714286, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [374, 249] - }, - { - "identifier": "8", - "scaleDenominator": 7142.857142857143, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [937, 624] - }, - { - "identifier": "9", - "scaleDenominator": 3571.4285714285716, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [1874, 1249] - }, - { - "identifier": "10", - "scaleDenominator": 1785.7142857142858, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [3749, 2499] - }, - { - "identifier": "11", - "scaleDenominator": 892.8571428571429, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [7499, 4999] - }, - { - "identifier": "12", - "scaleDenominator": 357.14285714285717, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [18749, 12499] - }, - { - "identifier": "13", - "scaleDenominator": 178.57142857142858, - "tileSize": [256, 256], - "topLeftCorner": [420000, 350000], - "matrixSize": [37499, 24999] - } - ], - "matrixSet": "swissgrid_005", - "opacity": 1, - "requestEncoding": "REST", - "style": "default", - "type": "WMTS", - "version": "1.0.0" - } - ] + "attributes": { + "map": { + "dpi": 254, + "rotation": 0, + "center": [537667.8392100265, 152527.76089525849], + "projection": "EPSG:2056", + "scale": 5000, + "layers": [ + { + "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy", + "imageFormat": "image/png", + "layers": ["osm_hospitals", "osm_firestations", "landuse", "railways"], + "customParams": { + "TRANSPARENT": "true", + "ogcserver": "QGIS server", + "cache_version": "cfe127c3bd2c4d3a80c3f37d6c4eca1a", + "STYLES": ",,," + }, + "serverType": "qgisserver", + "type": "wms", + "opacity": 1, + "useNativeAngle": true }, - "datasource": [], - "debug": false, - "legend": { - "classes": [ - { - "classes": [ - { - "name": "Hôpitaux OSM", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_hospitals&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - }, - { - "name": "Caserne de pompiers OSM", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_firestations&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - }, - { - "name": "Utilisation du sol", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=landuse&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - }, - { - "name": "Voies ferrées", - "icons": [ - "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=railways&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" - ] - } - ] - } - ] + { + "baseURL": "https://geomapfish-demo-2-6.camptocamp.com/tiles/1.0.0/map/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png", + "dimensions": [], + "dimensionParams": {}, + "imageFormat": "image/png", + "layer": "map", + "matrices": [ + { + "identifier": "0", + "scaleDenominator": 3571428.571428572, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [1, 1] + }, + { + "identifier": "1", + "scaleDenominator": 1785714.285714286, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [3, 2] + }, + { + "identifier": "2", + "scaleDenominator": 892857.142857143, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [7, 4] + }, + { + "identifier": "3", + "scaleDenominator": 357142.85714285716, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [18, 12] + }, + { + "identifier": "4", + "scaleDenominator": 178571.42857142858, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [37, 24] + }, + { + "identifier": "5", + "scaleDenominator": 71428.57142857143, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [93, 62] + }, + { + "identifier": "6", + "scaleDenominator": 35714.28571428572, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [187, 124] + }, + { + "identifier": "7", + "scaleDenominator": 17857.14285714286, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [374, 249] + }, + { + "identifier": "8", + "scaleDenominator": 7142.857142857143, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [937, 624] + }, + { + "identifier": "9", + "scaleDenominator": 3571.4285714285716, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [1874, 1249] + }, + { + "identifier": "10", + "scaleDenominator": 1785.7142857142858, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [3749, 2499] + }, + { + "identifier": "11", + "scaleDenominator": 892.8571428571429, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [7499, 4999] + }, + { + "identifier": "12", + "scaleDenominator": 357.14285714285717, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [18749, 12499] + }, + { + "identifier": "13", + "scaleDenominator": 178.57142857142858, + "tileSize": [256, 256], + "topLeftCorner": [420000, 350000], + "matrixSize": [37499, 24999] + } + ], + "matrixSet": "swissgrid_005", + "opacity": 1, + "requestEncoding": "REST", + "style": "default", + "type": "WMTS", + "version": "1.0.0" } + ] }, - "format": "pdf", - "lang": "en", - "layout": "4 A3 landscape" + "datasource": [], + "debug": false, + "legend": { + "classes": [ + { + "classes": [ + { + "name": "Hôpitaux OSM", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_hospitals&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + }, + { + "name": "Caserne de pompiers OSM", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=osm_firestations&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + }, + { + "name": "Utilisation du sol", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=landuse&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + }, + { + "name": "Voies ferrées", + "icons": [ + "https://geomapfish-demo-2-6.camptocamp.com/mapserv_proxy?ogcserver=QGIS+server&cache_version=cfe127c3bd2c4d3a80c3f37d6c4eca1a&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=railways&SCALE=5000&DPI=254&BBOX=537178.3590643996%2C151932.4472046311%2C538157.3193556535%2C153123.07458588586&SRS=EPSG%3A2056&WIDTH=1958&HEIGHT=2381" + ] + } + ] + } + ] + } + }, + "format": "pdf", + "lang": "en", + "layout": "4 A3 landscape" }