From 343f53a1ae9b027fda433f295ad833e46517583d Mon Sep 17 00:00:00 2001
From: rbisson <remi.bisson@inrae.fr>
Date: Thu, 7 Nov 2024 15:56:24 +0100
Subject: [PATCH 1/2] [SearchMap.js] updated link of sylvoecoregions layer

---
 src/pages/maps/SearchMap.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/maps/SearchMap.js b/src/pages/maps/SearchMap.js
index d3e3521..37417d1 100644
--- a/src/pages/maps/SearchMap.js
+++ b/src/pages/maps/SearchMap.js
@@ -155,7 +155,7 @@ const SearchMap = ({ searchResults, selectedPointsIds, setSelectedPointsIds }) =
     sylvoEcoRegions: new VectorLayer({
       name: 'sylvoEcoRegions',
       source: new VectorSource({
-        url: 'https://w3.avignon.inrae.fr/geoserver/urfm/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=urfm:ser_l93&srs=EPSG:2154&outputFormat=application/json',
+        url: 'https://geodata.inrae.fr/geoserver/inrae/ows?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=inrae%3Aser_l93&OUTPUTFORMAT=application%2Fjson',
         format: new GeoJSON(),
         projection: 'EPSG:2154',
         crossOrigin: 'anonymous',
-- 
GitLab


From fd663ec3eb65b6bc86ed3d042b8cebcac929f2f2 Mon Sep 17 00:00:00 2001
From: rbisson <remi.bisson@inrae.fr>
Date: Thu, 7 Nov 2024 15:58:25 +0100
Subject: [PATCH 2/2] [SearchMap.js] removed useless attributes crossOrigins
 and projection

---
 src/pages/maps/SearchMap.js | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/pages/maps/SearchMap.js b/src/pages/maps/SearchMap.js
index 37417d1..5ee592a 100644
--- a/src/pages/maps/SearchMap.js
+++ b/src/pages/maps/SearchMap.js
@@ -157,8 +157,6 @@ const SearchMap = ({ searchResults, selectedPointsIds, setSelectedPointsIds }) =
       source: new VectorSource({
         url: 'https://geodata.inrae.fr/geoserver/inrae/ows?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=inrae%3Aser_l93&OUTPUTFORMAT=application%2Fjson',
         format: new GeoJSON(),
-        projection: 'EPSG:2154',
-        crossOrigin: 'anonymous',
       }),
       style: styles.filterLayer,
     }),
-- 
GitLab