From 728a0a3b258401e18c88f8ec233404d2ad44169e Mon Sep 17 00:00:00 2001 From: Luis Zenteno Date: Mon, 2 Dec 2024 10:54:29 -0600 Subject: [PATCH] feat(natural-forest): display widget when analyzing layer in the map --- .../widgets/land-cover/natural-forest/index.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/components/widgets/land-cover/natural-forest/index.js b/components/widgets/land-cover/natural-forest/index.js index dcf21e60f7..6c5cb2e25c 100644 --- a/components/widgets/land-cover/natural-forest/index.js +++ b/components/widgets/land-cover/natural-forest/index.js @@ -1,6 +1,10 @@ import { getNaturalForest } from 'services/analysis-cached'; -import { NATURAL_FOREST } from 'data/datasets'; -import { NATURAL_FOREST_2020 } from 'data/layers'; +import { NATURAL_FOREST, POLITICAL_BOUNDARIES_DATASET } from 'data/datasets'; +import { + NATURAL_FOREST_2020, + DISPUTED_POLITICAL_BOUNDARIES, + POLITICAL_BOUNDARIES, +} from 'data/layers'; import getWidgetProps from './selectors'; @@ -32,12 +36,16 @@ export default { categories: ['land-cover', 'summary'], types: ['global', 'country', 'geostore', 'aoi', 'wdpa', 'use'], admins: ['global', 'adm0', 'adm1', 'adm2'], - visible: ['dashboard'], + visible: ['dashboard', 'analysis'], datasets: [ + { + dataset: POLITICAL_BOUNDARIES_DATASET, + layers: [DISPUTED_POLITICAL_BOUNDARIES, POLITICAL_BOUNDARIES], + boundary: true, + }, { dataset: NATURAL_FOREST, layers: [NATURAL_FOREST_2020], - boundary: true, }, ], dataType: 'naturalForest',