Repository: Vizzuality/half-earth-v3
Pull request #722: Butterfly-revamp
Author: login: cmanciero
Created: 2025-04-21T14:27:25Z | Merged: 2025-04-22T13:44:52Z

URL updates where pushed before data was fully vented and minor issues are being caused. This PR reverts those URL changes and also makes Butterflies data fully functional


Diff:
diff --git a/src/components/future-place-tooltip/future-place-tooltip-component.jsx b/src/components/future-place-tooltip/future-place-tooltip-component.jsx
index 621dd73ad..3fbabf9f3 100644
--- a/src/components/future-place-tooltip/future-place-tooltip-component.jsx
+++ b/src/components/future-place-tooltip/future-place-tooltip-component.jsx
@@ -56,7 +56,6 @@ function AOIEntryTooltipComponent({
       <section className={styles.areaSection}>
         <p className={styles.area}>
           {format(',.3f')(AREA_KM2)} {t('km')}
-          <sup>2</sup>
         </p>
       </section>
       <button
diff --git a/src/components/protected-areas-table/component.jsx b/src/components/protected-areas-table/component.jsx
index f1a2e9188..26165b822 100644
--- a/src/components/protected-areas-table/component.jsx
+++ b/src/components/protected-areas-table/component.jsx
@@ -169,7 +169,6 @@ function ProtectedAreasTable({ data, handleSortChange, handleNameClick }) {
             <div className={styles.headerColumnContainer}>
               <span>
                 {t('AREA (KM')}
-                <sup>2</sup>)
               </span>
               <div className={styles.arrowsContainer}>
                 <ArrowUp
@@ -212,7 +211,6 @@ function ProtectedAreasTable({ data, handleSortChange, handleNameClick }) {
                   (row.AREA_KM || row.AREA_KM2) &&
                   parseAreaKm(row.AREA_KM || row.AREA_KM2)
                 }km`}
-                <sup>2</sup>
               </td>
             </tr>
           ))}
diff --git a/src/constants/analyze-areas-constants.jsx b/src/constants/analyze-areas-constants.jsx
index 943d16be6..366e9f21d 100644
--- a/src/constants/analyze-areas-constants.jsx
+++ b/src/constants/analyze-areas-constants.jsx
@@ -168,8 +168,7 @@ export const getSidebarCardsConfig = (locale) => ({
     ),
     warning: (
       <T
-        _str="Species summaries are less reliable for areas under 1,000 km{sup}; only a portion of these species will be found here."
-        sup={<sup>2</sup>}
+        _str="Species summaries are less reliable for areas under 1,000 km; only a portion of these species will be found here."
       />
     ),
   },
@@ -181,8 +180,7 @@ export const getSidebarCardsConfig = (locale) => ({
       ),
     warning: (
       <T
-        _str="Biodiversity patterns not available for areas under __1,000 km{sup}__."
-        sup={<sup>2</sup>}
+        _str="Biodiversity patterns not available for areas under __1,000 km__."
       />
     ),
   },
diff --git a/src/constants/biodiversity-layers-constants.js b/src/constants/biodiversity-layers-constants.js
index 048670d5a..3600dd519 100644
--- a/src/constants/biodiversity-layers-constants.js
+++ b/src/constants/biodiversity-layers-constants.js
@@ -93,10 +93,10 @@ export const { TERRESTRIAL_GLOBAL, TERRESTRIAL_REGIONAL, MARINE } =
   TAXA_DISTRIBUTION;
 
 export const getResolutionOptions = () => ({
-  LOWEST: { label: `${t('~55km')}<sup>2</sup>`, slug: 'LOWEST' },
-  LOW: { label: `${t('~27km')}<sup>2</sup>`, slug: 'LOW' },
-  HIGH: { label: `${t('~1km')}<sup>2</sup>`, slug: 'HIGH' },
-  HIGHEST:  { label: `${t('~110km')}<sup>2</sup>`, slug: 'HIGHEST' },
+  LOWEST: { label: `${t('~55km')}`, slug: 'LOWEST' },
+  LOW: { label: `${t('~27km')}`, slug: 'LOW' },
+  HIGH: { label: `${t('~1km')}`, slug: 'HIGH' },
+  HIGHEST:  { label: `${t('~110km')}`, slug: 'HIGHEST' },
   COUNTRY: { label: t('country'), slug: 'COUNTRY' },
 });
 
diff --git a/src/constants/layers-urls.js b/src/constants/layers-urls.js
index dc3bb3d23..d4bbe666c 100644
--- a/src/constants/layers-urls.js
+++ b/src/constants/layers-urls.js
@@ -128,7 +128,7 @@ const isNotProduction =
   VITE_APP_VERCEL_ENV === 'development' || VITE_APP_VERCEL_ENV === 'preview';
 
 const COUNTRIES_DATA_URL =
-  'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/NRC_final_20250403/FeatureServer';
+  'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/NRC_final_20240507/FeatureServer';
 
 const EEZ_MARINE_BORDERS_URL =
   'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/Country_boundaries_with_EEZ/FeatureServer';
@@ -145,20 +145,20 @@ export const COUNTRIES_DATA_SERVICE_URL = `${COUNTRIES_DATA_URL}/0`;
 export const COUNTRIES_GEOMETRIES_SERVICE_URL =
   'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/gadm_generalised/FeatureServer/0';
 export const NRC_TERRESTRIAL_SPI_DATA_LAYER =
-  'https://utility.arcgis.com/usrsvcs/servers/56b76d12d8974c47a6e64f9733f9fc94/rest/services/terrestrial_spi_per_year_20250328/FeatureServer/0';
+  'https://utility.arcgis.com/usrsvcs/servers/496871854f434806b93057a171c57e75/rest/services/Terrestrial_SPI_by_country_202401_refine_update_allcountries2_withGID/FeatureServer/0';
 export const NRC_MARINE_SPI_DATA_LAYER =
-  'https://utility.arcgis.com/usrsvcs/servers/026649c877694cea96cbc1a9f06950f5/rest/services/marine_spi_per_year_20250328/FeatureServer/0';
+  'https://utility.arcgis.com/usrsvcs/servers/4d9ee1ec6fb840ad83cc4fcfe6cc84e5/rest/services/Marine_SPI_by_country_20240314_withGID/FeatureServer/0';
 
 const GADM_0_ADMIN_AREAS_FEATURE_LAYER_URL =
-  'https://utility.arcgis.com/usrsvcs/servers/ca22a0922f934999a00e092feca4315d/rest/services/main_gadm0_precalculated_aoi_summaries_updated_20250521/FeatureServer';
+  'https://utility.arcgis.com/usrsvcs/servers/f09f7630ec964885bb2a968c7f1a8bea/rest/services/gadm0_aoi_summaries_updated_20240326/FeatureServer';
 const GADM_1_ADMIN_AREAS_FEATURE_LAYER_URL =
-  'https://utility.arcgis.com/usrsvcs/servers/6710f8b62392473d8e06ee9c207ed010/rest/services/gadm1_precalculated_aoi_summaries_updated_20250327/FeatureServer';
+  'https://utility.arcgis.com/usrsvcs/servers/340d03102060417c8a9f712754708216/rest/services/gadm1_precalculated_aoi_summaries_updated_20240321/FeatureServer';
 
 export const LAYERS_URLS = {
   [GLOBAL_SPI_FEATURE_LAYER]:
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/SPI_Terrestrial_20250414/FeatureServer',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/SPI_Terrestrial_202403/FeatureServer',
   [MARINE_SPI_FEATURE_LAYER]:
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/SPI_marine_20250414/FeatureServer',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/Global_SPI_EEZ_202403/FeatureServer',
   [AOIS_HISTORIC_PRODUCTION]:
     'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/shared_custom_aois_prod/FeatureServer/0',
   [AOIS_HISTORIC_DEVELOPMENT]:
@@ -201,7 +201,7 @@ export const LAYERS_URLS = {
 
   // Protected areas WDPA
   [PROTECTED_AREAS_VECTOR_TILE_LAYER]:
-    'https://tiles.arcgis.com/tiles/IkktFdUAcY3WrH25/arcgis/rest/services/ProtectedAreas_20250416/VectorTileServer',
+    'https://vectortileservices9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/ProtectedAreas_MeriamNelson_202401/VectorTileServer',
   [COMMUNITY_AREAS_VECTOR_TILE_LAYER]:
     'https://vectortileservices9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/community_based_areas_20250408/VectorTileServer',
 
@@ -424,22 +424,22 @@ export const LAYERS_URLS = {
 
   // Vertebrate species modal
   [SPECIES_LIST]:
-    'https://utility.arcgis.com/usrsvcs/servers/06887b77aad943db9dcc25dc05f99ab5/rest/services/Terrestrial_SPI_NRCs_2025_refine_allcountries_withGID_202504015/FeatureServer',
+    'https://utility.arcgis.com/usrsvcs/servers/5e32902ede02487c8713d347813aaebf/rest/services/Terrestrial_SPI_NRCs_202401_refine_allcountries_withGID/FeatureServer',
   [MARINE_SPECIES_LIST]:
-    'https://utility.arcgis.com/usrsvcs/servers/f656c91cf3c14a86820297c719164992/rest/services/Marine_SPI_NRCs_2025_expert_withGID_202504015/FeatureServer',
+    'https://utility.arcgis.com/usrsvcs/servers/b252ecc71edc435cb34038dc9fb68768/rest/services/Marine_SPI_NRCs_202401_expert_withGID_20240314/FeatureServer',
   // AOIs lookup tables
   [SEARCH_LOOKUP_TABLE]:
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/AOI_lookup_table_202504/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/ArcGIS/rest/services/AOI_lookup_table_20240318/FeatureServer/0',
   [ELU_LOOKUP_TABLE]:
     'https://services9.arcgis.com/IkktFdUAcY3WrH25/ArcGIS/rest/services/ecosytem_categories_lookup/FeatureServer/0',
   [AMPHIBIAN_LOOKUP]:
-    'https://utility.arcgis.com/usrsvcs/servers/364481070b8448aa8df07e5324fcecc9/rest/services/amphibians_with_SPS_updated_202503/FeatureServer/0',
+    'https://utility.arcgis.com/usrsvcs/servers/04d64805adcb460aa0ff6face308703a/rest/services/amphibians_with_SPS_updated/FeatureServer/0',
   [BIRDS_LOOKUP]:
-    'https://utility.arcgis.com/usrsvcs/servers/4c4c7b9a327f48d3955f80a2402198f0/rest/services/birds_with_SPS_updated_202503/FeatureServer/0',
+    'https://utility.arcgis.com/usrsvcs/servers/af760c4cbcfb4402bb5ee63b5c09151f/rest/services/birds_with_SPS_updated/FeatureServer/0',
   [MAMMALS_LOOKUP]:
-    'https://utility.arcgis.com/usrsvcs/servers/94268703d9b345c6a8c1e5ccd1be0acf/rest/services/mammals_with_SPS_updated_202503/FeatureServer/0',
+    'https://utility.arcgis.com/usrsvcs/servers/a0a1d30a1fe54e2e926ef7b723dee75b/rest/services/mammals_with_SPS_updated/FeatureServer/0',
   [REPTILES_LOOKUP]:
-    'https://utility.arcgis.com/usrsvcs/servers/502f1d5023014390b9d415fecab92810/rest/services/reptiles_with_SPS_updated_202503/FeatureServer/0',
+    'https://utility.arcgis.com/usrsvcs/servers/ad816c55e2634f32848389d0ebec6d69/rest/services/reptiles_with_SPS_updated/FeatureServer/0',
   // AOIs precalculated layers
   [ADMIN_AREAS_FEATURE_LAYER]: [
     GADM_0_ADMIN_AREAS_FEATURE_LAYER_URL,
@@ -448,21 +448,21 @@ export const LAYERS_URLS = {
   [GADM_0_ADMIN_AREAS_FEATURE_LAYER]: `${GADM_0_ADMIN_AREAS_FEATURE_LAYER_URL}/0`,
   [GADM_1_ADMIN_AREAS_FEATURE_LAYER]: `${GADM_1_ADMIN_AREAS_FEATURE_LAYER_URL}/0`,
   [GADM_0_ADMIN_AREAS_WITH_WDPAS_FEATURE_LAYER]:
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_with_gadm0_updated_202503/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_with_gadm0_updated_202401/FeatureServer/0',
   [GADM_1_ADMIN_AREAS_WITH_WDPAS_FEATURE_LAYER]:
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_with_gadm1_updated_202503/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_with_gadm1_updated_202401/FeatureServer/0',
   // 99%, 90%, 50% WDPA simplifications
   [WDPA_OECM_FEATURE_LAYER]: [
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_Terrestrial_202501_Simplification50_20250415/FeatureServer/0',
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_Terrestrial_202501_Simplification90_20250414/FeatureServer/0',
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_Terrestrial_202501_Simplification99_20250414/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_Terrestrial_202401_Simplification50_20240320/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_Terrestrial_202401_Simplification90_20240320/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_Terrestrial_202401_Simplification99_20240320/FeatureServer/0',
   ],
   [WDPA_OECM_FEATURE_DATA_LAYER]:
-    'https://utility.arcgis.com/usrsvcs/servers/35903af4b187464cb78ce2136950cc34/rest/services/wdpa_precalculated_aoi_summaries_updated_20250415/FeatureServer/0',
+    'https://utility.arcgis.com/usrsvcs/servers/a26fcc88e1a8495b9e679565c9e628f6/rest/services/wdpa_precalculated_aoi_summaries_updated_20240408/FeatureServer/0',
   [HALF_EARTH_FUTURE_TILE_LAYER]:
-    'https://utility.arcgis.com/usrsvcs/servers/5e59f968feaf4efe8846869931b3b49c/rest/services/places_precalculated_aoi_summaries_updated_20250415/FeatureServer/0',
+    'https://utility.arcgis.com/usrsvcs/servers/69967ac4027f49f095fd379974bdc3a8/rest/services/places_precalculated_aoi_summaries_updated_20240321/FeatureServer/0',
   [HALF_EARTH_FUTURE_WDPA_LAYER]:
-    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_with_20places_updated_202503/FeatureServer/0',
+    'https://services9.arcgis.com/IkktFdUAcY3WrH25/arcgis/rest/services/WDPA_with_20places_updated_202401/FeatureServer/0',
   [SPECIFIC_REGIONS_TILE_LAYER]:
     'https://utility.arcgis.com/usrsvcs/servers/5bd5e7f56500423cb0df4145c4cb4319/rest/services/regions_precalculated_aoi_summaries_updated_20240321/FeatureServer/0',
   [SPECIFIC_REGIONS_WDPA_LAYER]:
diff --git a/src/constants/mol-layers-configs.js b/src/constants/mol-layers-configs.js
index f5e36c2da..05611d781 100644
--- a/src/constants/mol-layers-configs.js
+++ b/src/constants/mol-layers-configs.js
@@ -207,7 +207,6 @@ export const layersConfig = {
     type: LAYER_TYPES.FEATURE_LAYER,
     url: LAYERS_URLS[HALF_EARTH_FUTURE_WDPA_LAYER],
     bbox: null,
-    portalId: '5e59f968feaf4efe8846869931b3b49c',
   },
   [HALF_EARTH_FUTURE_TILE_LAYER]: {
     title: HALF_EARTH_FUTURE_TILE_LAYER,
@@ -215,6 +214,7 @@ export const layersConfig = {
     type: LAYER_TYPES.FEATURE_LAYER,
     url: LAYERS_URLS[HALF_EARTH_FUTURE_TILE_LAYER],
     bbox: null,
+    portalId: 'c84a2dfb84c5489a8518360f67925ec0',
   },
   [GLOBAL_SPI_FEATURE_LAYER]: {
     title: GLOBAL_SPI_FEATURE_LAYER,
@@ -230,7 +230,7 @@ export const layersConfig = {
     type: LAYER_TYPES.FEATURE_LAYER,
     url: LAYERS_URLS[MARINE_SPI_FEATURE_LAYER],
     bbox: null,
-    portalId: '484a4ed84da5455a8a3d3f624037030d',
+    portalId: '3f8accd89fe7482384972929fd2aae3f',
   },
   [COUNTRIES_LABELS_FEATURE_LAYER]: {
     title: COUNTRIES_LABELS_FEATURE_LAYER,
diff --git a/src/containers/nrc-content/nrc-challenges/nrc-challenges-component.jsx b/src/containers/nrc-content/nrc-challenges/nrc-challenges-component.jsx
index 2a759bd0f..98236d692 100644
--- a/src/containers/nrc-content/nrc-challenges/nrc-challenges-component.jsx
+++ b/src/containers/nrc-content/nrc-challenges/nrc-challenges-component.jsx
@@ -199,7 +199,7 @@ function Challenges({
           </div>
           <div>
             <h5 className={styles.legendTitle}>
-              <T _str="Country area in km{sup}" sup={<sup>2</sup>} />
+              <T _str="Country area in km" />
             </h5>
             <CountryAreaImage className={styles.countryAreaImage} />
           </div>
diff --git a/src/containers/sidebars/aoi-sidebar/component.jsx b/src/containers/sidebars/aoi-sidebar/component.jsx
index 1b9e9987c..76ea69dc1 100644
--- a/src/containers/sidebars/aoi-sidebar/component.jsx
+++ b/src/containers/sidebars/aoi-sidebar/component.jsx
@@ -204,7 +204,6 @@ function AOISidebar({
                       {area}{' '}
                       <span>
                         {t('km')}
-                        <sup>2</sup>
                       </span>
                     </p>
                   ) : (
diff --git a/src/containers/sidebars/aoi-sidebar/species-card/component.jsx b/src/containers/sidebars/aoi-sidebar/species-card/component.jsx
index 3224f3355..5dea86fe1 100644
--- a/src/containers/sidebars/aoi-sidebar/species-card/component.jsx
+++ b/src/containers/sidebars/aoi-sidebar/species-card/component.jsx
@@ -230,7 +230,6 @@ function Component(props) {
                       locale,
                       t
                     )}${t(' km')}`}
-                    <sup>2</sup>
                   </div>
                 </div>
 
diff --git a/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/component.jsx b/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/component.jsx
index ab72b2dbc..09d4b11e0 100644
--- a/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/component.jsx
+++ b/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/component.jsx
@@ -199,7 +199,6 @@ function AnalyzeAreasCardComponent({
             {t('Draw shape smaller than')}{' '}
             <b>
               {getLocaleNumber(HIGHER_AREA_SIZE_LIMIT, locale)} km
-              <sup>2</sup>
             </b>
             {t(', approximately the size of Belgium.')}
           </p>
@@ -215,7 +214,6 @@ function AnalyzeAreasCardComponent({
             {t('Upload your own shapefile. The shape should be smaller than')}{' '}
             <b>
               {getLocaleNumber(HIGHER_AREA_SIZE_LIMIT, locale)} km
-              <sup>2</sup>
             </b>{' '}
             {t('approximately the size of Belgium.')}
           </p>
diff --git a/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/index.js b/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/index.js
index 1468cc7d2..4f5a8af4d 100644
--- a/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/index.js
+++ b/src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/index.js
@@ -52,15 +52,13 @@ export const getWarningMessages = (t, locale) => ({
     description: (size) => (
       <span>
         {t(
-          'The maximum size for on the fly area analysis is {number} km{sup}.',
+          'The maximum size for on the fly area analysis is {number} km.',
           {
             number: getLocaleNumber(HIGHER_AREA_SIZE_LIMIT, locale),
-            sup: <sup>2</sup>,
           }
         )}{' '}
-        {t('The area that you are trying to analyze has {number} km{sup}.', {
+        {t('The area that you are trying to analyze has {number} km.', {
           number: getLocaleNumber(size, locale),
-          sup: <sup>2</sup>,
         })}{' '}
         {t('Please select a smaller area to trigger the analysis.')}
       </span>
diff --git a/src/containers/sidebars/nrc-landing-sidebar/component.jsx b/src/containers/sidebars/nrc-landing-sidebar/component.jsx
index cbef52bea..207cd0600 100644
--- a/src/containers/sidebars/nrc-landing-sidebar/component.jsx
+++ b/src/containers/sidebars/nrc-landing-sidebar/component.jsx
@@ -51,7 +51,7 @@ function NRCLandingSidebar({
       id: MARINE_SPI_FEATURE_LAYER,
       title: MARINE_SPI_FEATURE_LAYER,
       slug: MARINE_SPI_FEATURE_LAYER, // TODO: change specific slug for metadata
-      portalId: '484a4ed84da5455a8a3d3f624037030d',
+      portalId: '3f8accd89fe7482384972929fd2aae3f',
       metadataTitle: t('Marine SPI'),
     },
   ];
diff --git a/src/utils/layer-manager-utils.js b/src/utils/layer-manager-utils.js
index 33bcc3846..5e3f01208 100644
--- a/src/utils/layer-manager-utils.js
+++ b/src/utils/layer-manager-utils.js
@@ -209,16 +209,16 @@ export const createLayer = (layerConfig) => {
   const Layer = getLayer();
 
   let newLayer;
-  if(portalId){
-    newLayer = new FeatureLayer({
-      portalItem: {
-        id: portalId
-      },
-      title: slug,
-      id: slug,
-      outFields: ['*'],
-    })
-  }else {
+  // if(portalId){
+  //   newLayer = new FeatureLayer({
+  //     portalItem: {
+  //       id: portalId
+  //     },
+  //     title: slug,
+  //     id: slug,
+  //     outFields: ['*'],
+  //   })
+  // }else {
     newLayer = new Layer({
       url,
       urlTemplate: url,
@@ -227,7 +227,7 @@ export const createLayer = (layerConfig) => {
       outFields: ['*'],
       opacity: opacity || DEFAULT_OPACITY,
     });
-  }
+  // }
 
   if (renderer) {
     newLayer.renderer = renderer;
@@ -247,15 +247,15 @@ const createAndAddLayer = async (layerConfig, map) => {
   const isUrlArray = Array.isArray(layerConfig.url);
   const isPortalIdArray = Array.isArray(layerConfig.portalId);
 
-  if(isPortalIdArray){
-    const promises = layerConfig.portalId.map((portalId) =>
-      createLayer({ ...layerConfig, portalId }, map)
-    );
-    const newLayers = await Promise.all(promises);
-    newLayers.forEach((newLayer) => {
-      addLayerToMap(newLayer, map);
-    });
-  } else {
+  // if(isPortalIdArray){
+  //   const promises = layerConfig.portalId.map((portalId) =>
+  //     createLayer({ ...layerConfig, portalId }, map)
+  //   );
+  //   const newLayers = await Promise.all(promises);
+  //   newLayers.forEach((newLayer) => {
+  //     addLayerToMap(newLayer, map);
+  //   });
+  // } else {
     if (isUrlArray) {
       const promises = layerConfig.url.map((url) =>
         createLayer({ ...layerConfig, url }, map)
@@ -268,7 +268,7 @@ const createAndAddLayer = async (layerConfig, map) => {
       const newLayer = await createLayer(layerConfig, map);
       addLayerToMap(newLayer, map);
     }
-  }
+  // }
 };
 
 export const activateLayersOnLoad = (map, activeLayers, config) => {


Reviews:
user: login: Bluesmile82
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-22T07:47:12Z
user: login: Bluesmile82
body: I think is better to merge to develop first and then to main to respect the git flow
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-22T07:50:48Z
user: login: cmanciero
state: COMMENTED
author_association: COLLABORATOR
submitted_at: 2025-04-22T10:40:16Z
user: login: cmanciero
state: COMMENTED
author_association: COLLABORATOR
submitted_at: 2025-04-22T10:51:36Z
user: login: kkalkidan
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-04-22T13:44:22Z

Review comments:
diff_hunk: @@ -52,15 +52,13 @@ export const getWarningMessages = (t, locale) => ({
     description: (size) => (
       <span>
         {t(
-          'The maximum size for on the fly area analysis is {number} km{sup}.',
+          'The maximum size for on the fly area analysis is {number} km.',
           {
             number: getLocaleNumber(HIGHER_AREA_SIZE_LIMIT, locale),
-            sup: <sup>2</sup>,
           }
         )}{' '}
-        {t('The area that you are trying to analyze has {number} km{sup}.', {
+        {t('The area that you are trying to analyze has {number} km.', {
path: src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/index.js
user: login: Bluesmile82
body: I don't understand why are we removing all the ² (squares) on so many places. The units are still area so its km². Is there a reason?
created_at: 2025-04-22T07:46:42Z
author_association: CONTRIBUTOR
diff_hunk: @@ -209,16 +209,16 @@ export const createLayer = (layerConfig) => {
   const Layer = getLayer();
 
   let newLayer;
-  if(portalId){
-    newLayer = new FeatureLayer({
-      portalItem: {
-        id: portalId
-      },
-      title: slug,
-      id: slug,
-      outFields: ['*'],
-    })
-  }else {
+  // if(portalId){
path: src/utils/layer-manager-utils.js
user: login: Bluesmile82
body: It would be better to remove this code if we are not going to use it
created_at: 2025-04-22T07:48:24Z
author_association: CONTRIBUTOR
diff_hunk: @@ -51,7 +51,7 @@ function NRCLandingSidebar({
       id: MARINE_SPI_FEATURE_LAYER,
       title: MARINE_SPI_FEATURE_LAYER,
       slug: MARINE_SPI_FEATURE_LAYER, // TODO: change specific slug for metadata
-      portalId: 'f5684ad998bf480aa1339763ff11670a',
+      portalId: '3f8accd89fe7482384972929fd2aae3f',
path: src/containers/sidebars/nrc-landing-sidebar/component.jsx
user: login: Bluesmile82
body: Are we using this portalIds at all, if we don't use them in layer manager utils?
created_at: 2025-04-22T07:49:13Z
author_association: CONTRIBUTOR
diff_hunk: @@ -52,15 +52,13 @@ export const getWarningMessages = (t, locale) => ({
     description: (size) => (
       <span>
         {t(
-          'The maximum size for on the fly area analysis is {number} km{sup}.',
+          'The maximum size for on the fly area analysis is {number} km.',
           {
             number: getLocaleNumber(HIGHER_AREA_SIZE_LIMIT, locale),
-            sup: <sup>2</sup>,
           }
         )}{' '}
-        {t('The area that you are trying to analyze has {number} km{sup}.', {
+        {t('The area that you are trying to analyze has {number} km.', {
path: src/containers/sidebars/data-global-sidebar/analyze-areas-sidebar-card/index.js
user: login: cmanciero
body: Was a request from Alex and Tamara to remove them
created_at: 2025-04-22T10:40:16Z
author_association: COLLABORATOR
diff_hunk: @@ -209,16 +209,16 @@ export const createLayer = (layerConfig) => {
   const Layer = getLayer();
 
   let newLayer;
-  if(portalId){
-    newLayer = new FeatureLayer({
-      portalItem: {
-        id: portalId
-      },
-      title: slug,
-      id: slug,
-      outFields: ['*'],
-    })
-  }else {
+  // if(portalId){
path: src/utils/layer-manager-utils.js
user: login: cmanciero
body: This code will come back once data is fixed. Arcgis seems to have a tough time displaying the color and styles of feature layers unless we used a portal id to load the layer.
created_at: 2025-04-22T10:51:36Z
author_association: COLLABORATOR

PR comments:
user: login: vercel[bot]
created_at: 2025-04-21T14:27:30Z
body: [vc]: #d/MucgpQTmcCYjJBz5gb7vwd4u+Vvnmh/j+fc7mxPVc=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJoYWxmLWVhcnRoIiwiaW5zcGVjdG9yVXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL2hhbGYtZWFydGgtbWFwL2hhbGYtZWFydGgvOXQyQWJ4eDdwcUcyeU54d0MxcldkRVZLd0JKdCIsInByZXZpZXdVcmwiOiJoYWxmLWVhcnRoLWdpdC1idXR0ZXJmbHktcmV2YW1wLWhhbGYtZWFydGgtbWFwLnZlcmNlbC5hcHAiLCJuZXh0Q29tbWl0U3RhdHVzIjoiREVQTE9ZRUQiLCJsaXZlRmVlZGJhY2siOnsicmVzb2x2ZWQiOjAsInVucmVzb2x2ZWQiOjAsInRvdGFsIjowLCJsaW5rIjoiaGFsZi1lYXJ0aC1naXQtYnV0dGVyZmx5LXJldmFtcC1oYWxmLWVhcnRoLW1hcC52ZXJjZWwuYXBwIn0sInJvb3REaXJlY3RvcnkiOm51bGx9XX0=
**The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more)

| Name | Status | Preview | Comments | Updated (UTC) |
| :--- | :----- | :------ | :------- | :------ |
| **half-earth** | ✅ Ready ([Inspect](https://vercel.com/half-earth-map/half-earth/9t2Abxx7pqG2yNxwC1rWdEVKwBJt)) | [Visit Preview](https://half-earth-git-butterfly-revamp-half-earth-map.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/half-earth-git-butterfly-revamp-half-earth-map.vercel.app?via=pr-comment-feedback-link) | Apr 22, 2025 10:47am |


author_association: NONE
user: login: cmanciero
created_at: 2025-04-22T10:52:09Z
body: @Bluesmile82 Develop branch merged and then this branch was updated to follow the git flow
author_association: COLLABORATOR