From d0578e06d52a685683c970347d29600b7e6515dd Mon Sep 17 00:00:00 2001 From: nobohan Date: Sat, 22 May 2021 21:17:27 +0200 Subject: [PATCH] #2 enable wms layers in leaflet map --- README | 39 ----------------------------- patches/frontend/conf/app.config.ts | 2 +- patches/frontend/conf/map.config.ts | 8 ++++++ sandbox/wmts/README.md | 0 sandbox/wmts/index.html | 2 +- 5 files changed, 10 insertions(+), 41 deletions(-) delete mode 100644 README create mode 100644 sandbox/wmts/README.md diff --git a/README b/README deleted file mode 100644 index 81a0002..0000000 --- a/README +++ /dev/null @@ -1,39 +0,0 @@ -# gl-geonature - -L'instance Geonature-Citizen de Champs-Libres. - -# Installation développeur : - - $ git submodule update --init --recursive - $ docker-compose up -d - $ docker-compose exec citizen install/install_app.sh - -note: les credentials pour accéder au backend se trouvent dans /home/appuser/citizen/config - -# Remise en route du service - - $ docker-compose up -d - $ docker-compose exec citizen sh install/restart.sh - -# Documentation : - - $ make doc - -# Builder le front (pour production) - -``` -$ docker-compose exec citizen bash -appuser@ab136184159a:~/citizen/$ cd frontend -appuser@ab136184159a:~/citizen/frontend$ npm run ng build -- --configuration=fr --prod -``` - - -# Modifier la config du front end - -- faire des modifications dans patches/frontend/conf -- Builder le front (cfr commande ci-dessus) -- remise en route du service (cfr commande ci-desssus) - -# Modifier l'image de fond - -Il semble qu'un rebuild du container soit nécessaire!? \ No newline at end of file diff --git a/patches/frontend/conf/app.config.ts b/patches/frontend/conf/app.config.ts index 8422453..c4da60f 100644 --- a/patches/frontend/conf/app.config.ts +++ b/patches/frontend/conf/app.config.ts @@ -25,7 +25,7 @@ export const AppConfig = { signup:true, email_contact:false, platform_intro: { - fr: "Bienvenue
à Wasseiges", + fr: "Bienvenue
à BiomMap Wasseiges", en: "Welcome
on GeoNature Citizen" }, platform_teaser: { diff --git a/patches/frontend/conf/map.config.ts b/patches/frontend/conf/map.config.ts index 0e2e028..9767dad 100644 --- a/patches/frontend/conf/map.config.ts +++ b/patches/frontend/conf/map.config.ts @@ -57,6 +57,14 @@ export const MAP_CONFIG = { subdomains: "abc", attribution: '© OpenStreetMap contributors. Map style by Cyclosm. Tiles by Champs-Libres.' }, + { + name: "WMS SPW ortho", + maxZoom: 17, + layer: "//geoservices.wallonie.be/arcgis/services/IMAGERIE/ORTHO_2019/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© OpenStreetMap contributors. Map style by Cyclosm. Tiles by Champs-Libres.' + }, { name: "IGN Vue satellite", maxZoom: 17, diff --git a/sandbox/wmts/README.md b/sandbox/wmts/README.md new file mode 100644 index 0000000..e69de29 diff --git a/sandbox/wmts/index.html b/sandbox/wmts/index.html index 2d55bde..16d0079 100644 --- a/sandbox/wmts/index.html +++ b/sandbox/wmts/index.html @@ -39,7 +39,7 @@ WMTS: L.tileLayer( - 'https://geoservices.wallonie.be/arcgis/rest/services/IMAGERIE/ORTHO_LAST/MapServer/WTMS?' + + 'https://geoservices.wallonie.be/arcgis/rest/services/IMAGERIE/ORTHO_LAST/MapServer/WTMS/tile/1.0.0/?' + "&REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0" + "&STYLE=default" + "&TILEMATRIXSET=default028mm" +