Skip to content

Commit

Permalink
feat(natural-forest): display widget when analyzing layer in the map
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Dec 2, 2024
1 parent cccd08d commit 728a0a3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions components/widgets/land-cover/natural-forest/index.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 728a0a3

Please sign in to comment.