@hisptz/dhis2-analytics 2.0.0-alpha.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ChartAnalytics/ChartAnalytics.stories.js +20 -43
- package/dist/components/ChartAnalytics/DHIS2Chart.js +17 -43
- package/dist/components/ChartAnalytics/DHIS2Chart.js.map +1 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +14 -16
- package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.js.map +1 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +8 -14
- package/dist/components/ChartAnalytics/components/DownloadMenu/index.js +19 -21
- package/dist/components/ChartAnalytics/components/DownloadMenu/index.js.map +1 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +0 -1
- package/dist/components/ChartAnalytics/hooks/useChart.js +11 -13
- package/dist/components/ChartAnalytics/hooks/useChart.js.map +1 -1
- package/dist/components/ChartAnalytics/index.js +1 -12
- package/dist/components/ChartAnalytics/index.js.map +1 -1
- package/dist/components/ChartAnalytics/models/bar.js +3 -6
- package/dist/components/ChartAnalytics/models/bar.js.map +1 -1
- package/dist/components/ChartAnalytics/models/column.js +6 -9
- package/dist/components/ChartAnalytics/models/column.js.map +1 -1
- package/dist/components/ChartAnalytics/models/index.js +1 -6
- package/dist/components/ChartAnalytics/models/index.js.map +1 -1
- package/dist/components/ChartAnalytics/models/line.js +6 -8
- package/dist/components/ChartAnalytics/models/line.js.map +1 -1
- package/dist/components/ChartAnalytics/models/multi-series.js +26 -15
- package/dist/components/ChartAnalytics/models/multi-series.js.map +1 -1
- package/dist/components/ChartAnalytics/models/pie.js +8 -8
- package/dist/components/ChartAnalytics/models/pie.js.map +1 -1
- package/dist/components/ChartAnalytics/services/export.js +7 -20
- package/dist/components/ChartAnalytics/services/export.js.map +1 -1
- package/dist/components/ChartAnalytics/styles/custom-highchart.css +40 -0
- package/dist/components/ChartAnalytics/styles/custom-highchart.css.map +1 -0
- package/dist/components/ChartAnalytics/types/props.js +0 -1
- package/dist/components/ChartAnalytics/utils/chart.js +24 -31
- package/dist/components/ChartAnalytics/utils/chart.js.map +1 -1
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.js +14 -23
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.js.map +1 -1
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +3 -10
- package/dist/components/CircularProgressDashboard/index.js +2 -19
- package/dist/components/CircularProgressDashboard/index.js.map +1 -1
- package/dist/components/CircularProgressDashboard/types/props.js +0 -1
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.js +13 -15
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.js.map +1 -1
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.js +5 -14
- package/dist/components/DHIS2PivotTable/components/Table/index.js +4 -6
- package/dist/components/DHIS2PivotTable/components/TableBody/index.js +30 -36
- package/dist/components/DHIS2PivotTable/components/TableBody/index.js.map +1 -1
- package/dist/components/DHIS2PivotTable/components/TableHeaders/index.js +27 -33
- package/dist/components/DHIS2PivotTable/components/TableHeaders/index.js.map +1 -1
- package/dist/components/DHIS2PivotTable/index.js +2 -19
- package/dist/components/DHIS2PivotTable/index.js.map +1 -1
- package/dist/components/DHIS2PivotTable/interfaces/index.js +0 -1
- package/dist/components/DHIS2PivotTable/services/engine.js +10 -18
- package/dist/components/DHIS2PivotTable/services/engine.js.map +1 -1
- package/dist/components/DHIS2PivotTable/state/engine.js +6 -9
- package/dist/components/DHIS2PivotTable/state/engine.js.map +1 -1
- package/dist/components/Map/DHIS2Map.js +13 -20
- package/dist/components/Map/DHIS2Map.js.map +1 -1
- package/dist/components/Map/DHIS2Map.stories.js +3 -17
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js +15 -21
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +10 -15
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js +16 -18
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +7 -12
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.js +24 -30
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.js +42 -49
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.js +16 -22
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.js +26 -32
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.js +10 -16
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.js +21 -27
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.js +16 -19
- package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.js.map +1 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/index.js +2 -19
- package/dist/components/Map/components/EarthEngineLayerConfiguration/index.js.map +1 -1
- package/dist/components/Map/components/MapArea/index.js +60 -54
- package/dist/components/Map/components/MapArea/index.js.map +1 -1
- package/dist/components/Map/components/MapArea/interfaces/index.js +0 -1
- package/dist/components/Map/components/MapControls/components/CustomControl/index.js +3 -5
- package/dist/components/Map/components/MapControls/components/DownloadControl/index.js +8 -14
- package/dist/components/Map/components/MapControls/components/FullscreenControl/index.js +7 -9
- package/dist/components/Map/components/MapControls/index.js +22 -17
- package/dist/components/Map/components/MapControls/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +3 -5
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js +21 -31
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +59 -34
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +99 -89
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +9 -14
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +62 -69
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +31466 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +43 -43
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +34 -31
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +6 -8
- package/dist/components/Map/components/MapLayer/components/LegendArea/index.js +46 -57
- package/dist/components/Map/components/MapLayer/components/LegendArea/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +38 -30
- package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +5 -7
- package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/PointLayer/index.js +21 -28
- package/dist/components/Map/components/MapLayer/components/PointLayer/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +39 -13
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js +40 -32
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +13 -20
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +17 -23
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +30 -25
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +17 -20
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +15 -21
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +6 -8
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js +16 -24
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +56 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css.map +1 -0
- package/dist/components/Map/components/MapLayer/index.js +10 -18
- package/dist/components/Map/components/MapLayer/index.js.map +1 -1
- package/dist/components/Map/components/MapLayer/interfaces/index.js +7 -4
- package/dist/components/Map/components/MapLayer/interfaces/index.js.map +1 -1
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +59 -63
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js.map +1 -1
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.js +30 -36
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.js.map +1 -1
- package/dist/components/Map/components/MapProvider/hooks/index.js +6 -10
- package/dist/components/Map/components/MapProvider/hooks/index.js.map +1 -1
- package/dist/components/Map/components/MapProvider/index.js +25 -31
- package/dist/components/Map/components/MapProvider/index.js.map +1 -1
- package/dist/components/Map/components/MapUpdater/index.js +5 -7
- package/dist/components/Map/components/MapUpdater/index.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.js +15 -21
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +5 -10
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js +53 -60
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +7 -12
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +21 -15
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.js +1 -4
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +22 -30
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +18 -21
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +23 -30
- package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +16 -22
- package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +16 -22
- package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.js +16 -22
- package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.js +18 -24
- package/dist/components/Map/components/ThematicLayerConfiguration/index.js +3 -26
- package/dist/components/Map/components/ThematicLayerConfiguration/index.js.map +1 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/types/index.js +0 -1
- package/dist/components/Map/constants/colors.js +1 -4
- package/dist/components/Map/constants/legendSet.js +1 -3
- package/dist/components/Map/hooks/map.js +17 -21
- package/dist/components/Map/hooks/map.js.map +1 -1
- package/dist/components/Map/index.js +5 -40
- package/dist/components/Map/index.js.map +1 -1
- package/dist/components/Map/interfaces/index.js +0 -1
- package/dist/components/Map/state/index.js +5 -9
- package/dist/components/Map/state/index.js.map +1 -1
- package/dist/components/Map/utils/colors.js +18 -22
- package/dist/components/Map/utils/colors.js.map +1 -1
- package/dist/components/Map/utils/helpers.js +3 -11
- package/dist/components/Map/utils/map.js +25 -24
- package/dist/components/Map/utils/map.js.map +1 -1
- package/dist/components/SingleValueContainer/SingleValueContainer.stories.js +3 -11
- package/dist/components/SingleValueContainer/SingleValueVisualizer.js +17 -35
- package/dist/components/SingleValueContainer/SingleValueVisualizer.js.map +1 -1
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +14 -21
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js.map +1 -1
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +7 -13
- package/dist/components/SingleValueContainer/index.js +3 -19
- package/dist/components/SingleValueContainer/index.js.map +1 -1
- package/dist/components/SingleValueContainer/types/props.js +0 -1
- package/dist/components/Visualization/components/AnalyticsDataProvider/index.js +50 -26
- package/dist/components/Visualization/components/AnalyticsDataProvider/index.js.map +1 -1
- package/dist/components/Visualization/components/DimensionsProvider/index.js +13 -18
- package/dist/components/Visualization/components/LayoutProvider/index.js +11 -14
- package/dist/components/Visualization/components/LayoutProvider/index.js.map +1 -1
- package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js +30 -36
- package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js.map +1 -1
- package/dist/components/Visualization/components/VisualizationProvider/index.js +14 -10
- package/dist/components/Visualization/components/VisualizationProvider/index.js.map +1 -1
- package/dist/components/Visualization/components/VisualizationSelector/index.js +46 -57
- package/dist/components/Visualization/components/VisualizationSelector/index.js.map +1 -1
- package/dist/components/Visualization/components/VisualizationTypeProvider/index.js +16 -19
- package/dist/components/Visualization/components/VisualizationTypeProvider/index.js.map +1 -1
- package/dist/components/Visualization/components/VisualizationTypeSelector/index.js +37 -27
- package/dist/components/Visualization/components/VisualizationTypeSelector/index.js.map +1 -1
- package/dist/components/Visualization/index.js +27 -33
- package/dist/components/Visualization/index.js.map +1 -1
- package/dist/index.js +6 -47
- package/dist/index.js.map +1 -1
- package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts +4 -4
- package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +2 -2
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +2 -2
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/index.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/index.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/models/bar.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/models/bar.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/models/column.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/models/column.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/models/index.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/models/index.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/models/line.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/models/line.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/models/multi-series.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/models/multi-series.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/models/pie.d.ts +1 -1
- package/dist/types/components/ChartAnalytics/models/pie.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/services/export.d.ts.map +1 -1
- package/dist/types/components/ChartAnalytics/utils/chart.d.ts +2 -2
- package/dist/types/components/ChartAnalytics/utils/chart.d.ts.map +1 -1
- package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts +2 -2
- package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts.map +1 -1
- package/dist/types/components/CircularProgressDashboard/index.d.ts +2 -2
- package/dist/types/components/CircularProgressDashboard/index.d.ts.map +1 -1
- package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts +2 -2
- package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts.map +1 -1
- package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts +1 -1
- package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts.map +1 -1
- package/dist/types/components/DHIS2PivotTable/index.d.ts +2 -2
- package/dist/types/components/DHIS2PivotTable/index.d.ts.map +1 -1
- package/dist/types/components/DHIS2PivotTable/services/engine.d.ts +1 -1
- package/dist/types/components/DHIS2PivotTable/services/engine.d.ts.map +1 -1
- package/dist/types/components/DHIS2PivotTable/state/engine.d.ts +2 -2
- package/dist/types/components/DHIS2PivotTable/state/engine.d.ts.map +1 -1
- package/dist/types/components/Map/DHIS2Map.d.ts +1 -1
- package/dist/types/components/Map/DHIS2Map.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts +2 -2
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts.map +1 -1
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +2 -2
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapArea/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapArea/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapControls/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapControls/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +3 -3
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +4 -4
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts +4 -4
- package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapProvider/hooks/index.d.ts +3 -3
- package/dist/types/components/Map/components/MapProvider/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapProvider/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/MapUpdater/index.d.ts +1 -1
- package/dist/types/components/Map/components/MapUpdater/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts +2 -2
- package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts.map +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts.map +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts.map +1 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +3 -3
- package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts.map +1 -1
- package/dist/types/components/Map/hooks/map.d.ts.map +1 -1
- package/dist/types/components/Map/index.d.ts +5 -5
- package/dist/types/components/Map/index.d.ts.map +1 -1
- package/dist/types/components/Map/interfaces/index.d.ts +2 -2
- package/dist/types/components/Map/interfaces/index.d.ts.map +1 -1
- package/dist/types/components/Map/state/index.d.ts +2 -2
- package/dist/types/components/Map/state/index.d.ts.map +1 -1
- package/dist/types/components/Map/utils/colors.d.ts +1 -1
- package/dist/types/components/Map/utils/colors.d.ts.map +1 -1
- package/dist/types/components/Map/utils/map.d.ts.map +1 -1
- package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts +3 -3
- package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts.map +1 -1
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +1 -1
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts.map +1 -1
- package/dist/types/components/SingleValueContainer/index.d.ts +3 -2
- package/dist/types/components/SingleValueContainer/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts +1 -1
- package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts +2 -2
- package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts +1 -1
- package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts +4 -4
- package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts +10 -10
- package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts +2 -2
- package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts +1 -1
- package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts.map +1 -1
- package/dist/types/components/Visualization/index.d.ts +6 -6
- package/dist/types/components/Visualization/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/components/ChartAnalytics/ChartAnalytics.stories.mjs +0 -254
- package/dist/components/ChartAnalytics/ChartAnalytics.stories.mjs.map +0 -1
- package/dist/components/ChartAnalytics/DHIS2Chart.mjs +0 -36
- package/dist/components/ChartAnalytics/DHIS2Chart.mjs.map +0 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.mjs +0 -52
- package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.mjs.map +0 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.mjs +0 -42
- package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.mjs.map +0 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/index.mjs +0 -65
- package/dist/components/ChartAnalytics/components/DownloadMenu/index.mjs.map +0 -1
- package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.mjs +0 -3
- package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.mjs.map +0 -1
- package/dist/components/ChartAnalytics/hooks/useChart.mjs +0 -43
- package/dist/components/ChartAnalytics/hooks/useChart.mjs.map +0 -1
- package/dist/components/ChartAnalytics/index.mjs +0 -3
- package/dist/components/ChartAnalytics/index.mjs.map +0 -1
- package/dist/components/ChartAnalytics/models/bar.mjs +0 -21
- package/dist/components/ChartAnalytics/models/bar.mjs.map +0 -1
- package/dist/components/ChartAnalytics/models/column.mjs +0 -48
- package/dist/components/ChartAnalytics/models/column.mjs.map +0 -1
- package/dist/components/ChartAnalytics/models/index.mjs +0 -117
- package/dist/components/ChartAnalytics/models/index.mjs.map +0 -1
- package/dist/components/ChartAnalytics/models/line.mjs +0 -31
- package/dist/components/ChartAnalytics/models/line.mjs.map +0 -1
- package/dist/components/ChartAnalytics/models/multi-series.mjs +0 -99
- package/dist/components/ChartAnalytics/models/multi-series.mjs.map +0 -1
- package/dist/components/ChartAnalytics/models/pie.mjs +0 -51
- package/dist/components/ChartAnalytics/models/pie.mjs.map +0 -1
- package/dist/components/ChartAnalytics/services/export.mjs +0 -35
- package/dist/components/ChartAnalytics/services/export.mjs.map +0 -1
- package/dist/components/ChartAnalytics/types/props.mjs +0 -3
- package/dist/components/ChartAnalytics/types/props.mjs.map +0 -1
- package/dist/components/ChartAnalytics/utils/chart.mjs +0 -130
- package/dist/components/ChartAnalytics/utils/chart.mjs.map +0 -1
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.mjs +0 -66
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.mjs.map +0 -1
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.mjs +0 -42
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.mjs.map +0 -1
- package/dist/components/CircularProgressDashboard/index.mjs +0 -4
- package/dist/components/CircularProgressDashboard/index.mjs.map +0 -1
- package/dist/components/CircularProgressDashboard/types/props.mjs +0 -3
- package/dist/components/CircularProgressDashboard/types/props.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.mjs +0 -26
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.mjs +0 -30
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/components/Table/index.mjs +0 -10
- package/dist/components/DHIS2PivotTable/components/Table/index.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/components/TableBody/index.mjs +0 -106
- package/dist/components/DHIS2PivotTable/components/TableBody/index.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/components/TableHeaders/index.mjs +0 -94
- package/dist/components/DHIS2PivotTable/components/TableHeaders/index.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/index.mjs +0 -4
- package/dist/components/DHIS2PivotTable/index.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/interfaces/index.mjs +0 -3
- package/dist/components/DHIS2PivotTable/interfaces/index.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/services/engine.mjs +0 -93
- package/dist/components/DHIS2PivotTable/services/engine.mjs.map +0 -1
- package/dist/components/DHIS2PivotTable/state/engine.mjs +0 -17
- package/dist/components/DHIS2PivotTable/state/engine.mjs.map +0 -1
- package/dist/components/Map/DHIS2Map.mjs +0 -65
- package/dist/components/Map/DHIS2Map.mjs.map +0 -1
- package/dist/components/Map/DHIS2Map.stories.mjs +0 -366
- package/dist/components/Map/DHIS2Map.stories.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.mjs +0 -41
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.mjs +0 -34
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.mjs +0 -26
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.mjs +0 -21
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.mjs +0 -67
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.mjs +0 -134
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.mjs +0 -44
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.mjs +0 -67
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.mjs +0 -24
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.mjs +0 -67
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.mjs +0 -45
- package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.mjs.map +0 -1
- package/dist/components/Map/components/EarthEngineLayerConfiguration/index.mjs +0 -4
- package/dist/components/Map/components/EarthEngineLayerConfiguration/index.mjs.map +0 -1
- package/dist/components/Map/components/MapArea/index.mjs +0 -85
- package/dist/components/Map/components/MapArea/index.mjs.map +0 -1
- package/dist/components/Map/components/MapArea/interfaces/index.mjs +0 -3
- package/dist/components/Map/components/MapArea/interfaces/index.mjs.map +0 -1
- package/dist/components/Map/components/MapControls/components/CustomControl/index.mjs +0 -16
- package/dist/components/Map/components/MapControls/components/CustomControl/index.mjs.map +0 -1
- package/dist/components/Map/components/MapControls/components/DownloadControl/index.mjs +0 -15
- package/dist/components/Map/components/MapControls/components/DownloadControl/index.mjs.map +0 -1
- package/dist/components/Map/components/MapControls/components/FullscreenControl/index.mjs +0 -13
- package/dist/components/Map/components/MapControls/components/FullscreenControl/index.mjs.map +0 -1
- package/dist/components/Map/components/MapControls/index.mjs +0 -23
- package/dist/components/Map/components/MapControls/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.mjs +0 -10
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.mjs +0 -52
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.mjs +0 -65
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.mjs +0 -439
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.mjs +0 -32
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.mjs +0 -197
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.mjs +0 -3
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.mjs +0 -359
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.mjs +0 -82
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.mjs +0 -17
- package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/LegendArea/index.mjs +0 -179
- package/dist/components/Map/components/MapLayer/components/LegendArea/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.mjs +0 -78
- package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.mjs +0 -11
- package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/PointLayer/index.mjs +0 -48
- package/dist/components/Map/components/MapLayer/components/PointLayer/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.mjs +0 -36
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.mjs +0 -111
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.mjs +0 -41
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.mjs +0 -50
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.mjs +0 -42
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.mjs +0 -37
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.mjs +0 -40
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.mjs +0 -12
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.mjs +0 -55
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/index.mjs +0 -32
- package/dist/components/Map/components/MapLayer/index.mjs.map +0 -1
- package/dist/components/Map/components/MapLayer/interfaces/index.mjs +0 -5
- package/dist/components/Map/components/MapLayer/interfaces/index.mjs.map +0 -1
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.mjs +0 -405
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.mjs.map +0 -1
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.mjs +0 -115
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.mjs.map +0 -1
- package/dist/components/Map/components/MapProvider/hooks/index.mjs +0 -16
- package/dist/components/Map/components/MapProvider/hooks/index.mjs.map +0 -1
- package/dist/components/Map/components/MapProvider/index.mjs +0 -95
- package/dist/components/Map/components/MapProvider/index.mjs.map +0 -1
- package/dist/components/Map/components/MapUpdater/index.mjs +0 -11
- package/dist/components/Map/components/MapUpdater/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.mjs +0 -41
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.mjs +0 -24
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.mjs +0 -174
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.mjs +0 -21
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.mjs +0 -24
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.mjs +0 -436
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.mjs +0 -71
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.mjs +0 -74
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.mjs +0 -57
- package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.mjs +0 -44
- package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.mjs +0 -60
- package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.mjs +0 -54
- package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.mjs +0 -63
- package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/index.mjs +0 -5
- package/dist/components/Map/components/ThematicLayerConfiguration/index.mjs.map +0 -1
- package/dist/components/Map/components/ThematicLayerConfiguration/types/index.mjs +0 -3
- package/dist/components/Map/components/ThematicLayerConfiguration/types/index.mjs.map +0 -1
- package/dist/components/Map/constants/colors.mjs +0 -436
- package/dist/components/Map/constants/colors.mjs.map +0 -1
- package/dist/components/Map/constants/legendSet.mjs +0 -23
- package/dist/components/Map/constants/legendSet.mjs.map +0 -1
- package/dist/components/Map/hooks/map.mjs +0 -44
- package/dist/components/Map/hooks/map.mjs.map +0 -1
- package/dist/components/Map/index.mjs +0 -7
- package/dist/components/Map/index.mjs.map +0 -1
- package/dist/components/Map/interfaces/index.mjs +0 -3
- package/dist/components/Map/interfaces/index.mjs.map +0 -1
- package/dist/components/Map/state/index.mjs +0 -18
- package/dist/components/Map/state/index.mjs.map +0 -1
- package/dist/components/Map/utils/colors.mjs +0 -77
- package/dist/components/Map/utils/colors.mjs.map +0 -1
- package/dist/components/Map/utils/helpers.mjs +0 -18
- package/dist/components/Map/utils/helpers.mjs.map +0 -1
- package/dist/components/Map/utils/map.mjs +0 -127
- package/dist/components/Map/utils/map.mjs.map +0 -1
- package/dist/components/SingleValueContainer/SingleValueContainer.stories.mjs +0 -145
- package/dist/components/SingleValueContainer/SingleValueContainer.stories.mjs.map +0 -1
- package/dist/components/SingleValueContainer/SingleValueVisualizer.mjs +0 -44
- package/dist/components/SingleValueContainer/SingleValueVisualizer.mjs.map +0 -1
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.mjs +0 -49
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.mjs.map +0 -1
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.mjs +0 -22
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.mjs.map +0 -1
- package/dist/components/SingleValueContainer/index.mjs +0 -4
- package/dist/components/SingleValueContainer/index.mjs.map +0 -1
- package/dist/components/SingleValueContainer/types/props.mjs +0 -3
- package/dist/components/SingleValueContainer/types/props.mjs.map +0 -1
- package/dist/components/Visualization/components/AnalyticsDataProvider/index.mjs +0 -67
- package/dist/components/Visualization/components/AnalyticsDataProvider/index.mjs.map +0 -1
- package/dist/components/Visualization/components/DimensionsProvider/index.mjs +0 -35
- package/dist/components/Visualization/components/DimensionsProvider/index.mjs.map +0 -1
- package/dist/components/Visualization/components/LayoutProvider/index.mjs +0 -17
- package/dist/components/Visualization/components/LayoutProvider/index.mjs.map +0 -1
- package/dist/components/Visualization/components/VisualizationDimensionSelector/index.mjs +0 -85
- package/dist/components/Visualization/components/VisualizationDimensionSelector/index.mjs.map +0 -1
- package/dist/components/Visualization/components/VisualizationProvider/index.mjs +0 -13
- package/dist/components/Visualization/components/VisualizationProvider/index.mjs.map +0 -1
- package/dist/components/Visualization/components/VisualizationSelector/index.mjs +0 -167
- package/dist/components/Visualization/components/VisualizationSelector/index.mjs.map +0 -1
- package/dist/components/Visualization/components/VisualizationTypeProvider/index.mjs +0 -23
- package/dist/components/Visualization/components/VisualizationTypeProvider/index.mjs.map +0 -1
- package/dist/components/Visualization/components/VisualizationTypeSelector/index.mjs +0 -39
- package/dist/components/Visualization/components/VisualizationTypeSelector/index.mjs.map +0 -1
- package/dist/components/Visualization/index.mjs +0 -113
- package/dist/components/Visualization/index.mjs.map +0 -1
- package/dist/index.mjs +0 -8
- package/dist/index.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../src/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.tsx"],"names":["min","max"],"mappings":"AAaE,SACC,KADD;AAbF,SAAgB,kBAAkB;AAClC,OAAO,sBAAsB;AAE7B,SAAS,eAAe;AACxB,OAAO,UAAU;AACjB,SAAS,eAAe;AAEjB,SAAS,WAAW;AAAA,EAC1B;AACD,GAEG;AACF,SACC,qBAAC,SAAI,WAAU,eACd;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,WAAU;AAAA,QACV,OAAO,EAAE,iBAAiB,OAAO,MAAM;AAAA;AAAA,IACxC;AAAA,IACC,OAAO,OACP,oBAAC,SAAI,WAAU,qBAAqB,aAAG,OAAO,IAAI,IAAG,IAErD,oBAAC,SAAI,WAAU,qBAAqB,aAAG,OAAO,GAAG,MAAM,OAAO,GAAG,IAAG;AAAA,KAEtE;AAEF;AAEA,SAAS,qBAAqB,
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../src/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.tsx"],"names":["min","max"],"mappings":"AAaE,SACC,KADD;AAbF,SAAgB,kBAAkB;AAClC,OAAO,sBAAsB;AAE7B,SAAS,eAAe;AACx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AAY,SAAS,KAAK,EAAE;AAAA,MACpD,WAAU;AAAA,MACV;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACA,OAAO;AAAA,YACP;AAAA,YACA;AAAA;AAAA,QACD;AAAA,QACA,oBAAC,WAAQ,QAAQ,KAAK;AAAA,QACtB,oBAAC,OAAE,OAAO,EAAE,QAAQ,EAAE,GAAI,mBAAS,eAAe,IAAG;AAAA,QACpD,CAAC,QAAQ,OAAO,KAAK,oBAAC,OAAG,mBAAS,QAAQ,IAAG;AAAA,QAC9C,oBAAC,SAAI,WAAU,eACb,mBAAS,IAAI,CAAC,WACd;AAAA,UAAC;AAAA;AAAA,YAEA;AAAA;AAAA,UADK,GAAG,QAAQ,KAAK;AAAA,QAEtB,CACA,GACF;AAAA,QACC,SAAS,UACT,qBAAC,SAAI,WAAU,aACb;AAAA,eAAK,EAAE,QAAQ;AAAA,UAAE;AAAA,UAClB;AAAA,YAAC;AAAA;AAAA,cACA,WAAU;AAAA,cACV,QAAO;AAAA,cACP,gBAAe;AAAA,cACf,MAAM,SAAS;AAAA,cAEd,mBAAS,UAAU;AAAA;AAAA,UACrB;AAAA,WACD;AAAA;AAAA;AAAA,EAEF;AAEF;AAEA,IAAO,4BAAQ,WAAW,iBAAiB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport LegendCardHeader from \"../../LegendArea/components/LegendCardHeader/index.js\";\nimport { CustomGoogleEngineLayer } from \"../../../interfaces/index.js\";\nimport { Divider } from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport { isEmpty } from \"lodash\";\n\nexport function LegendItem({\n\tlegend,\n}: {\n\tlegend: { min: number; max: number; color: string; name?: string };\n}) {\n\treturn (\n\t\t<div className=\"legend-item\">\n\t\t\t<div\n\t\t\t\tclassName=\"legend-item-color\"\n\t\t\t\tstyle={{ backgroundColor: legend.color }}\n\t\t\t/>\n\t\t\t{legend.name ? (\n\t\t\t\t<div className=\"legend-item-label\">{`${legend.name}`}</div>\n\t\t\t) : (\n\t\t\t\t<div className=\"legend-item-label\">{`${legend.min} - ${legend.max}`}</div>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n\nfunction getLegendsFromParams(params?: {\n\tmin: number;\n\tmax: number;\n\tpalette: string | string[];\n}) {\n\tif (!params) return [];\n\n\tconst { palette, min, max } = params;\n\tconst sanitizedPalette = Array.isArray(palette)\n\t\t? palette\n\t\t: palette.split(\",\");\n\tconst classes = sanitizedPalette.length;\n\tconst difference = max - min;\n\tconst interval = Math.round(difference / classes);\n\tconst legends = [];\n\tfor (let i = 0; i < classes; i++) {\n\t\tconst min = i * interval;\n\t\tconst max = min + interval;\n\n\t\tconst name = i === classes - 1 ? `> ${min}` : undefined;\n\n\t\tlegends.push({\n\t\t\tid: sanitizedPalette[i],\n\t\t\tcolor: sanitizedPalette[i],\n\t\t\tmin,\n\t\t\tmax,\n\t\t\tname,\n\t\t});\n\t}\n\n\treturn legends;\n}\n\nfunction EarthEngineLegend(\n\t{\n\t\tlayer,\n\t\tcollapsible,\n\t\tonCollapse,\n\t\tname,\n\t}: {\n\t\tlayer: CustomGoogleEngineLayer;\n\t\tcollapsible?: boolean;\n\t\tonCollapse?: () => void;\n\t\tname: string;\n\t},\n\tref: React.LegacyRef<HTMLDivElement>,\n) {\n\tconst { options } = layer;\n\tconst legends =\n\t\toptions?.legend?.items ?? getLegendsFromParams(options?.params);\n\n\treturn (\n\t\t<div\n\t\t\tstyle={{ maxWidth: 200, alignItems: \"start\", gap: 8 }}\n\t\t\tclassName=\"legend-card\"\n\t\t\tref={ref}\n\t\t>\n\t\t\t<LegendCardHeader\n\t\t\t\ttitle={name}\n\t\t\t\tcollapsible={collapsible}\n\t\t\t\tonCollapse={onCollapse}\n\t\t\t/>\n\t\t\t<Divider margin={\"0\"} />\n\t\t\t<p style={{ margin: 0 }}>{options?.description ?? \"\"}</p>\n\t\t\t{!isEmpty(legends) && <b>{options?.unit ?? \"\"}</b>}\n\t\t\t<div className=\"legend-list\">\n\t\t\t\t{legends?.map((legend: any) => (\n\t\t\t\t\t<LegendItem\n\t\t\t\t\t\tkey={`${legend?.color}-legend-list`}\n\t\t\t\t\t\tlegend={legend}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t\t{options?.source && (\n\t\t\t\t<div className=\"row gap-8\">\n\t\t\t\t\t{i18n.t(\"Source\")}:\n\t\t\t\t\t<a\n\t\t\t\t\t\tclassName=\"source-url\"\n\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\treferrerPolicy=\"no-referrer\"\n\t\t\t\t\t\thref={options?.sourceUrl}\n\t\t\t\t\t>\n\t\t\t\t\t\t{options?.source ?? \"\"}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n\nexport default forwardRef(EarthEngineLegend);\n"]}
|
package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var i18n = require('@dhis2/d2-i18n');
|
|
4
|
-
|
|
5
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var i18n__default = /*#__PURE__*/_interopDefault(i18n);
|
|
1
|
+
import i18n from '@dhis2/d2-i18n';
|
|
8
2
|
|
|
9
3
|
const EARTH_ENGINE_LAYER = "earthEngine";
|
|
10
4
|
const EARTH_ENGINE_LAYERS = [
|
|
@@ -13,9 +7,9 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
13
7
|
id: "population",
|
|
14
8
|
datasetId: "WorldPop/GP/100m/pop",
|
|
15
9
|
type: "ImageCollection",
|
|
16
|
-
name:
|
|
17
|
-
unit:
|
|
18
|
-
description:
|
|
10
|
+
name: i18n.t("Population"),
|
|
11
|
+
unit: i18n.t("people per hectare"),
|
|
12
|
+
description: i18n.t("Estimated number of people living in an area."),
|
|
19
13
|
source: "WorldPop / Google Earth Engine",
|
|
20
14
|
sourceUrl: "https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop",
|
|
21
15
|
img: "images/population.png",
|
|
@@ -38,9 +32,11 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
38
32
|
tokenType: "Bearer",
|
|
39
33
|
id: "populationAgeGroups",
|
|
40
34
|
datasetId: "WorldPop/GP/100m/pop_age_sex_cons_unadj",
|
|
41
|
-
name:
|
|
42
|
-
unit:
|
|
43
|
-
description:
|
|
35
|
+
name: i18n.t("Population age groups"),
|
|
36
|
+
unit: i18n.t("people per hectare"),
|
|
37
|
+
description: i18n.t(
|
|
38
|
+
"Estimated number of people living in an area, grouped by age and gender."
|
|
39
|
+
),
|
|
44
40
|
source: "WorldPop / Google Earth Engine",
|
|
45
41
|
sourceUrl: "https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop_age_sex_cons_unadj",
|
|
46
42
|
img: "images/population.png",
|
|
@@ -49,148 +45,148 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
49
45
|
bands: [
|
|
50
46
|
{
|
|
51
47
|
id: "M_0",
|
|
52
|
-
name:
|
|
48
|
+
name: i18n.t("Male 0 - 1 years")
|
|
53
49
|
},
|
|
54
50
|
{
|
|
55
51
|
id: "M_1",
|
|
56
|
-
name:
|
|
52
|
+
name: i18n.t("Male 1 - 4 years")
|
|
57
53
|
},
|
|
58
54
|
{
|
|
59
55
|
id: "M_5",
|
|
60
|
-
name:
|
|
56
|
+
name: i18n.t("Male 5 - 9 years")
|
|
61
57
|
},
|
|
62
58
|
{
|
|
63
59
|
id: "M_10",
|
|
64
|
-
name:
|
|
60
|
+
name: i18n.t("Male 10 - 14 years")
|
|
65
61
|
},
|
|
66
62
|
{
|
|
67
63
|
id: "M_15",
|
|
68
|
-
name:
|
|
64
|
+
name: i18n.t("Male 15 - 19 years")
|
|
69
65
|
},
|
|
70
66
|
{
|
|
71
67
|
id: "M_20",
|
|
72
|
-
name:
|
|
68
|
+
name: i18n.t("Male 20 - 24 years")
|
|
73
69
|
},
|
|
74
70
|
{
|
|
75
71
|
id: "M_25",
|
|
76
|
-
name:
|
|
72
|
+
name: i18n.t("Male 25 - 29 years")
|
|
77
73
|
},
|
|
78
74
|
{
|
|
79
75
|
id: "M_30",
|
|
80
|
-
name:
|
|
76
|
+
name: i18n.t("Male 30 - 34 years")
|
|
81
77
|
},
|
|
82
78
|
{
|
|
83
79
|
id: "M_35",
|
|
84
|
-
name:
|
|
80
|
+
name: i18n.t("Male 35 - 39 years")
|
|
85
81
|
},
|
|
86
82
|
{
|
|
87
83
|
id: "M_40",
|
|
88
|
-
name:
|
|
84
|
+
name: i18n.t("Male 40 - 44 years")
|
|
89
85
|
},
|
|
90
86
|
{
|
|
91
87
|
id: "M_45",
|
|
92
|
-
name:
|
|
88
|
+
name: i18n.t("Male 45 - 49 years")
|
|
93
89
|
},
|
|
94
90
|
{
|
|
95
91
|
id: "M_50",
|
|
96
|
-
name:
|
|
92
|
+
name: i18n.t("Male 50 - 54 years")
|
|
97
93
|
},
|
|
98
94
|
{
|
|
99
95
|
id: "M_55",
|
|
100
|
-
name:
|
|
96
|
+
name: i18n.t("Male 55 - 59 years")
|
|
101
97
|
},
|
|
102
98
|
{
|
|
103
99
|
id: "M_60",
|
|
104
|
-
name:
|
|
100
|
+
name: i18n.t("Male 60 - 64 years")
|
|
105
101
|
},
|
|
106
102
|
{
|
|
107
103
|
id: "M_65",
|
|
108
|
-
name:
|
|
104
|
+
name: i18n.t("Male 65 - 69 years")
|
|
109
105
|
},
|
|
110
106
|
{
|
|
111
107
|
id: "M_70",
|
|
112
|
-
name:
|
|
108
|
+
name: i18n.t("Male 70 - 74 years")
|
|
113
109
|
},
|
|
114
110
|
{
|
|
115
111
|
id: "M_75",
|
|
116
|
-
name:
|
|
112
|
+
name: i18n.t("Male 75 - 79 years")
|
|
117
113
|
},
|
|
118
114
|
{
|
|
119
115
|
id: "M_80",
|
|
120
|
-
name:
|
|
116
|
+
name: i18n.t("Male 80 years and above")
|
|
121
117
|
},
|
|
122
118
|
{
|
|
123
119
|
id: "F_0",
|
|
124
|
-
name:
|
|
120
|
+
name: i18n.t("Female 0 - 1 years")
|
|
125
121
|
},
|
|
126
122
|
{
|
|
127
123
|
id: "F_1",
|
|
128
|
-
name:
|
|
124
|
+
name: i18n.t("Female 1 - 4 years")
|
|
129
125
|
},
|
|
130
126
|
{
|
|
131
127
|
id: "F_5",
|
|
132
|
-
name:
|
|
128
|
+
name: i18n.t("Female 5 - 9 years")
|
|
133
129
|
},
|
|
134
130
|
{
|
|
135
131
|
id: "F_10",
|
|
136
|
-
name:
|
|
132
|
+
name: i18n.t("Female 10 - 14 years")
|
|
137
133
|
},
|
|
138
134
|
{
|
|
139
135
|
id: "F_15",
|
|
140
|
-
name:
|
|
136
|
+
name: i18n.t("Female 15 - 19 years")
|
|
141
137
|
},
|
|
142
138
|
{
|
|
143
139
|
id: "F_20",
|
|
144
|
-
name:
|
|
140
|
+
name: i18n.t("Female 20 - 24 years")
|
|
145
141
|
},
|
|
146
142
|
{
|
|
147
143
|
id: "F_25",
|
|
148
|
-
name:
|
|
144
|
+
name: i18n.t("Female 25 - 29 years")
|
|
149
145
|
},
|
|
150
146
|
{
|
|
151
147
|
id: "F_30",
|
|
152
|
-
name:
|
|
148
|
+
name: i18n.t("Female 30 - 34 years")
|
|
153
149
|
},
|
|
154
150
|
{
|
|
155
151
|
id: "F_35",
|
|
156
|
-
name:
|
|
152
|
+
name: i18n.t("Female 35 - 39 years")
|
|
157
153
|
},
|
|
158
154
|
{
|
|
159
155
|
id: "F_40",
|
|
160
|
-
name:
|
|
156
|
+
name: i18n.t("Female 40 - 44 years")
|
|
161
157
|
},
|
|
162
158
|
{
|
|
163
159
|
id: "F_45",
|
|
164
|
-
name:
|
|
160
|
+
name: i18n.t("Female 45 - 49 years")
|
|
165
161
|
},
|
|
166
162
|
{
|
|
167
163
|
id: "F_50",
|
|
168
|
-
name:
|
|
164
|
+
name: i18n.t("Female 50 - 54 years")
|
|
169
165
|
},
|
|
170
166
|
{
|
|
171
167
|
id: "F_55",
|
|
172
|
-
name:
|
|
168
|
+
name: i18n.t("Female 55 - 59 years")
|
|
173
169
|
},
|
|
174
170
|
{
|
|
175
171
|
id: "F_60",
|
|
176
|
-
name:
|
|
172
|
+
name: i18n.t("Female 60 - 64 years")
|
|
177
173
|
},
|
|
178
174
|
{
|
|
179
175
|
id: "F_65",
|
|
180
|
-
name:
|
|
176
|
+
name: i18n.t("Female 65 - 69 years")
|
|
181
177
|
},
|
|
182
178
|
{
|
|
183
179
|
id: "F_70",
|
|
184
|
-
name:
|
|
180
|
+
name: i18n.t("Female 70 - 74 years"),
|
|
185
181
|
multiple: true
|
|
186
182
|
},
|
|
187
183
|
{
|
|
188
184
|
id: "F_75",
|
|
189
|
-
name:
|
|
185
|
+
name: i18n.t("Female 75 - 79 years")
|
|
190
186
|
},
|
|
191
187
|
{
|
|
192
188
|
id: "F_80",
|
|
193
|
-
name:
|
|
189
|
+
name: i18n.t("Female 80 years and above")
|
|
194
190
|
}
|
|
195
191
|
],
|
|
196
192
|
filters: ["period"],
|
|
@@ -209,11 +205,17 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
209
205
|
id: "footprints",
|
|
210
206
|
datasetId: "GOOGLE/Research/open-buildings/v1/polygons",
|
|
211
207
|
type: "FeatureCollection",
|
|
212
|
-
name:
|
|
213
|
-
unit:
|
|
214
|
-
description:
|
|
215
|
-
|
|
216
|
-
|
|
208
|
+
name: i18n.t("Building footprints"),
|
|
209
|
+
unit: i18n.t("Number of buildings"),
|
|
210
|
+
description: i18n.t(
|
|
211
|
+
"The outlines of buildings derived from high-resolution satellite imagery. Only for the continent of Africa."
|
|
212
|
+
),
|
|
213
|
+
notice: i18n.t(
|
|
214
|
+
"Building counts are only available for smaller organisation unit areas."
|
|
215
|
+
),
|
|
216
|
+
error: i18n.t(
|
|
217
|
+
"Select a smaller area or single organization unit to see the count of buildings."
|
|
218
|
+
),
|
|
217
219
|
source: "NASA / USGS / JPL-Caltech / Google Earth Engine",
|
|
218
220
|
sourceUrl: "https://sites.research.google/open-buildings/",
|
|
219
221
|
img: "images/buildings.png",
|
|
@@ -228,9 +230,9 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
228
230
|
type: "Image",
|
|
229
231
|
tokenType: "Bearer",
|
|
230
232
|
datasetId: "USGS/SRTMGL1_003",
|
|
231
|
-
name:
|
|
232
|
-
unit:
|
|
233
|
-
description:
|
|
233
|
+
name: i18n.t("Elevation"),
|
|
234
|
+
unit: i18n.t("meters"),
|
|
235
|
+
description: i18n.t("Elevation above sea-level."),
|
|
234
236
|
source: "NASA / USGS / JPL-Caltech / Google Earth Engine",
|
|
235
237
|
sourceUrl: "https://explorer.earthengine.google.com/#detail/USGS%2FSRTMGL1_003",
|
|
236
238
|
img: "images/elevation.png",
|
|
@@ -251,9 +253,9 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
251
253
|
id: "precipitation",
|
|
252
254
|
type: "ImageCollection",
|
|
253
255
|
tokenType: "Bearer",
|
|
254
|
-
name:
|
|
255
|
-
unit:
|
|
256
|
-
description:
|
|
256
|
+
name: i18n.t("Precipitation"),
|
|
257
|
+
unit: i18n.t("millimeter"),
|
|
258
|
+
description: i18n.t(
|
|
257
259
|
"Precipitation collected from satellite and weather stations on the ground. The values are in millimeters within 5 days periods. Updated monthly, during the 3rd week of the following month."
|
|
258
260
|
),
|
|
259
261
|
source: "UCSB / CHG / Google Earth Engine",
|
|
@@ -278,9 +280,11 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
278
280
|
id: "temperature",
|
|
279
281
|
type: "ImageCollection",
|
|
280
282
|
tokenType: "Bearer",
|
|
281
|
-
name:
|
|
282
|
-
unit:
|
|
283
|
-
description:
|
|
283
|
+
name: i18n.t("Temperature"),
|
|
284
|
+
unit: i18n.t("\xB0C during daytime"),
|
|
285
|
+
description: i18n.t(
|
|
286
|
+
"Land surface temperatures collected from satellite. Blank spots will appear in areas with a persistent cloud cover."
|
|
287
|
+
),
|
|
284
288
|
source: "NASA LP DAAC / Google Earth Engine",
|
|
285
289
|
sourceUrl: "https://explorer.earthengine.google.com/#detail/MODIS%2FMOD11A2",
|
|
286
290
|
img: "images/temperature.png",
|
|
@@ -309,8 +313,10 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
309
313
|
id: "landCover",
|
|
310
314
|
datasetId: "MODIS/006/MCD12Q1",
|
|
311
315
|
// No longer in use: 'MODIS/051/MCD12Q1',
|
|
312
|
-
name:
|
|
313
|
-
description:
|
|
316
|
+
name: i18n.t("Landcover"),
|
|
317
|
+
description: i18n.t(
|
|
318
|
+
"Distinct landcover types collected from satellites."
|
|
319
|
+
),
|
|
314
320
|
source: "NASA LP DAAC / Google Earth Engine",
|
|
315
321
|
sourceUrl: "https://developers.google.com/earth-engine/datasets/catalog/MODIS_006_MCD12Q1",
|
|
316
322
|
periodType: "Yearly",
|
|
@@ -323,87 +329,87 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
323
329
|
// http://www.eomf.ou.edu/static/IGBP.pdf
|
|
324
330
|
{
|
|
325
331
|
id: 1,
|
|
326
|
-
name:
|
|
332
|
+
name: i18n.t("Evergreen Needleleaf forest"),
|
|
327
333
|
color: "#162103"
|
|
328
334
|
},
|
|
329
335
|
{
|
|
330
336
|
id: 2,
|
|
331
|
-
name:
|
|
337
|
+
name: i18n.t("Evergreen Broadleaf forest"),
|
|
332
338
|
color: "#235123"
|
|
333
339
|
},
|
|
334
340
|
{
|
|
335
341
|
id: 3,
|
|
336
|
-
name:
|
|
342
|
+
name: i18n.t("Deciduous Needleleaf forest"),
|
|
337
343
|
color: "#399b38"
|
|
338
344
|
},
|
|
339
345
|
{
|
|
340
346
|
id: 4,
|
|
341
|
-
name:
|
|
347
|
+
name: i18n.t("Deciduous Broadleaf forest"),
|
|
342
348
|
color: "#38eb38"
|
|
343
349
|
},
|
|
344
350
|
{
|
|
345
351
|
id: 5,
|
|
346
|
-
name:
|
|
352
|
+
name: i18n.t("Mixed forest"),
|
|
347
353
|
color: "#39723b"
|
|
348
354
|
},
|
|
349
355
|
{
|
|
350
356
|
id: 6,
|
|
351
|
-
name:
|
|
357
|
+
name: i18n.t("Closed shrublands"),
|
|
352
358
|
color: "#6a2424"
|
|
353
359
|
},
|
|
354
360
|
{
|
|
355
361
|
id: 7,
|
|
356
|
-
name:
|
|
362
|
+
name: i18n.t("Open shrublands"),
|
|
357
363
|
color: "#c3a55f"
|
|
358
364
|
},
|
|
359
365
|
{
|
|
360
366
|
id: 8,
|
|
361
|
-
name:
|
|
367
|
+
name: i18n.t("Woody savannas"),
|
|
362
368
|
color: "#b76124"
|
|
363
369
|
},
|
|
364
370
|
{
|
|
365
371
|
id: 9,
|
|
366
|
-
name:
|
|
372
|
+
name: i18n.t("Savannas"),
|
|
367
373
|
color: "#d99125"
|
|
368
374
|
},
|
|
369
375
|
{
|
|
370
376
|
id: 10,
|
|
371
|
-
name:
|
|
377
|
+
name: i18n.t("Grasslands"),
|
|
372
378
|
color: "#92af1f"
|
|
373
379
|
},
|
|
374
380
|
{
|
|
375
381
|
id: 11,
|
|
376
|
-
name:
|
|
382
|
+
name: i18n.t("Permanent wetlands"),
|
|
377
383
|
color: "#10104c"
|
|
378
384
|
},
|
|
379
385
|
{
|
|
380
386
|
id: 12,
|
|
381
|
-
name:
|
|
387
|
+
name: i18n.t("Croplands"),
|
|
382
388
|
color: "#cdb400"
|
|
383
389
|
},
|
|
384
390
|
{
|
|
385
391
|
id: 13,
|
|
386
|
-
name:
|
|
392
|
+
name: i18n.t("Urban and built-up"),
|
|
387
393
|
color: "#cc0202"
|
|
388
394
|
},
|
|
389
395
|
{
|
|
390
396
|
id: 14,
|
|
391
|
-
name:
|
|
397
|
+
name: i18n.t("Cropland/Natural vegetation mosaic"),
|
|
392
398
|
color: "#332808"
|
|
393
399
|
},
|
|
394
400
|
{
|
|
395
401
|
id: 15,
|
|
396
|
-
name:
|
|
402
|
+
name: i18n.t("Snow and ice"),
|
|
397
403
|
color: "#d7cdcc"
|
|
398
404
|
},
|
|
399
405
|
{
|
|
400
406
|
id: 16,
|
|
401
|
-
name:
|
|
407
|
+
name: i18n.t("Barren or sparsely vegetated"),
|
|
402
408
|
color: "#f7e174"
|
|
403
409
|
},
|
|
404
410
|
{
|
|
405
411
|
id: 17,
|
|
406
|
-
name:
|
|
412
|
+
name: i18n.t("Water"),
|
|
407
413
|
color: "#aec3d6"
|
|
408
414
|
}
|
|
409
415
|
]
|
|
@@ -420,9 +426,11 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
420
426
|
legacy: true,
|
|
421
427
|
// Kept for backward compability
|
|
422
428
|
datasetId: "NOAA/DMSP-OLS/NIGHTTIME_LIGHTS",
|
|
423
|
-
name:
|
|
424
|
-
unit:
|
|
425
|
-
description:
|
|
429
|
+
name: i18n.t("Nighttime lights"),
|
|
430
|
+
unit: i18n.t("light intensity"),
|
|
431
|
+
description: i18n.t(
|
|
432
|
+
"Light intensity from cities, towns, and other sites with persistent lighting, including gas flares."
|
|
433
|
+
),
|
|
426
434
|
source: "NOAA / Google Earth Engine",
|
|
427
435
|
sourceUrl: "https://explorer.earthengine.google.com/#detail/NOAA%2FDMSP-OLS%2FNIGHTTIME_LIGHTS",
|
|
428
436
|
periodType: "Yearly",
|
|
@@ -438,10 +446,12 @@ const EARTH_ENGINE_LAYERS = [
|
|
|
438
446
|
opacity: 0.9
|
|
439
447
|
}
|
|
440
448
|
];
|
|
441
|
-
const SUPPORTED_EARTH_ENGINE_LAYERS = [
|
|
449
|
+
const SUPPORTED_EARTH_ENGINE_LAYERS = [
|
|
450
|
+
"population",
|
|
451
|
+
"landCover",
|
|
452
|
+
"footprints"
|
|
453
|
+
];
|
|
442
454
|
|
|
443
|
-
|
|
444
|
-
exports.EARTH_ENGINE_LAYERS = EARTH_ENGINE_LAYERS;
|
|
445
|
-
exports.SUPPORTED_EARTH_ENGINE_LAYERS = SUPPORTED_EARTH_ENGINE_LAYERS;
|
|
455
|
+
export { EARTH_ENGINE_LAYER, EARTH_ENGINE_LAYERS, SUPPORTED_EARTH_ENGINE_LAYERS };
|
|
446
456
|
//# sourceMappingURL=out.js.map
|
|
447
457
|
//# sourceMappingURL=index.js.map
|
package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../src/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU;AAGV,MAAM,qBAAqB;AAE3B,MAAM,sBAA4C;AAAA,EACvD;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,IACJ,WAAW;AAAA,IACX,MAAM;AAAA,IACN,MAAM,KAAK,EAAE,YAAY;AAAA,IACzB,MAAM,KAAK,EAAE,oBAAoB;AAAA,IACjC,aAAa,KAAK,EAAE,+CAA+C;AAAA,IACnE,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,KAAK;AAAA,IACL,qBAAqB,CAAC,OAAO,MAAM;AAAA,IACnC,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,SAAS,CAAC,QAAQ;AAAA,IAClB,QAAQ;AAAA,IACR,QAAQ;AAAA,MACN,KAAK;AAAA,MACL,KAAK;AAAA,MACL,SAAS;AAAA;AAAA,IACX;AAAA,IACA,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,IAAI;AAAA,IACJ,WAAW;AAAA,IACX,MAAM,KAAK,EAAE,uBAAuB;AAAA,IACpC,MAAM,KAAK,EAAE,oBAAoB;AAAA,IACjC,aAAa,KAAK,EAAE,0EAA0E;AAAA,IAC9F,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,qBAAqB,CAAC,OAAO,MAAM;AAAA,IACnC,OAAO;AAAA,MACL;AAAA,QACE,IAAI;AAAA,QACJ,MAAM,KAAK,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/B,MAAM,KAAK,EAAE,iBAAiB;AAAA,IAC9B,aAAa,KAAK,EAAE,qGAAqG;AAAA,IACzH,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,eAAe,CAAC,eAAe;AAAA,IAC/B,MAAM;AAAA,IACN,KAAK;AAAA,IACL,QAAQ;AAAA,MACN,KAAK;AAAA,MACL,KAAK;AAAA,MACL,SAAS;AAAA;AAAA,IACX;AAAA,IACA,SAAS;AAAA,EACX;AACF;AAEO,MAAM,gCAAgC,CAAC,cAAc,aAAa,YAAY","sourcesContent":["import i18n from \"@dhis2/d2-i18n\";\nimport { EarthEngineOptions } from \"../interfaces\";\n\nexport const EARTH_ENGINE_LAYER = \"earthEngine\";\n\nexport const EARTH_ENGINE_LAYERS: EarthEngineOptions[] = [\n {\n layer: EARTH_ENGINE_LAYER,\n id: \"population\",\n datasetId: \"WorldPop/GP/100m/pop\",\n type: \"ImageCollection\",\n name: i18n.t(\"Population\"),\n unit: i18n.t(\"people per hectare\"),\n description: i18n.t(\"Estimated number of people living in an area.\"),\n source: \"WorldPop / Google Earth Engine\",\n sourceUrl: \"https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop\",\n img: \"images/population.png\",\n defaultAggregations: [\"sum\", \"mean\"],\n tokenType: \"Bearer\",\n periodType: \"Yearly\",\n filters: [\"period\"],\n mosaic: true,\n params: {\n min: 0,\n max: 10,\n palette: \"#fee5d9,#fcbba1,#fc9272,#fb6a4a,#de2d26,#a50f15\", // Reds\n },\n opacity: 0.9,\n },\n {\n layer: EARTH_ENGINE_LAYER,\n type: \"ImageCollection\",\n tokenType: \"Bearer\",\n id: \"populationAgeGroups\",\n datasetId: \"WorldPop/GP/100m/pop_age_sex_cons_unadj\",\n name: i18n.t(\"Population age groups\"),\n unit: i18n.t(\"people per hectare\"),\n description: i18n.t(\"Estimated number of people living in an area, grouped by age and gender.\"),\n source: \"WorldPop / Google Earth Engine\",\n sourceUrl: \"https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop_age_sex_cons_unadj\",\n img: \"images/population.png\",\n periodType: \"Yearly\",\n defaultAggregations: [\"sum\", \"mean\"],\n bands: [\n {\n id: \"M_0\",\n name: i18n.t(\"Male 0 - 1 years\"),\n },\n {\n id: \"M_1\",\n name: i18n.t(\"Male 1 - 4 years\"),\n },\n {\n id: \"M_5\",\n name: i18n.t(\"Male 5 - 9 years\"),\n },\n {\n id: \"M_10\",\n name: i18n.t(\"Male 10 - 14 years\"),\n },\n {\n id: \"M_15\",\n name: i18n.t(\"Male 15 - 19 years\"),\n },\n {\n id: \"M_20\",\n name: i18n.t(\"Male 20 - 24 years\"),\n },\n {\n id: \"M_25\",\n name: i18n.t(\"Male 25 - 29 years\"),\n },\n {\n id: \"M_30\",\n name: i18n.t(\"Male 30 - 34 years\"),\n },\n {\n id: \"M_35\",\n name: i18n.t(\"Male 35 - 39 years\"),\n },\n {\n id: \"M_40\",\n name: i18n.t(\"Male 40 - 44 years\"),\n },\n {\n id: \"M_45\",\n name: i18n.t(\"Male 45 - 49 years\"),\n },\n {\n id: \"M_50\",\n name: i18n.t(\"Male 50 - 54 years\"),\n },\n {\n id: \"M_55\",\n name: i18n.t(\"Male 55 - 59 years\"),\n },\n {\n id: \"M_60\",\n name: i18n.t(\"Male 60 - 64 years\"),\n },\n {\n id: \"M_65\",\n name: i18n.t(\"Male 65 - 69 years\"),\n },\n {\n id: \"M_70\",\n name: i18n.t(\"Male 70 - 74 years\"),\n },\n {\n id: \"M_75\",\n name: i18n.t(\"Male 75 - 79 years\"),\n },\n {\n id: \"M_80\",\n name: i18n.t(\"Male 80 years and above\"),\n },\n {\n id: \"F_0\",\n name: i18n.t(\"Female 0 - 1 years\"),\n },\n {\n id: \"F_1\",\n name: i18n.t(\"Female 1 - 4 years\"),\n },\n {\n id: \"F_5\",\n name: i18n.t(\"Female 5 - 9 years\"),\n },\n {\n id: \"F_10\",\n name: i18n.t(\"Female 10 - 14 years\"),\n },\n {\n id: \"F_15\",\n name: i18n.t(\"Female 15 - 19 years\"),\n },\n {\n id: \"F_20\",\n name: i18n.t(\"Female 20 - 24 years\"),\n },\n {\n id: \"F_25\",\n name: i18n.t(\"Female 25 - 29 years\"),\n },\n {\n id: \"F_30\",\n name: i18n.t(\"Female 30 - 34 years\"),\n },\n {\n id: \"F_35\",\n name: i18n.t(\"Female 35 - 39 years\"),\n },\n {\n id: \"F_40\",\n name: i18n.t(\"Female 40 - 44 years\"),\n },\n {\n id: \"F_45\",\n name: i18n.t(\"Female 45 - 49 years\"),\n },\n {\n id: \"F_50\",\n name: i18n.t(\"Female 50 - 54 years\"),\n },\n {\n id: \"F_55\",\n name: i18n.t(\"Female 55 - 59 years\"),\n },\n {\n id: \"F_60\",\n name: i18n.t(\"Female 60 - 64 years\"),\n },\n {\n id: \"F_65\",\n name: i18n.t(\"Female 65 - 69 years\"),\n },\n {\n id: \"F_70\",\n name: i18n.t(\"Female 70 - 74 years\"),\n multiple: true,\n },\n {\n id: \"F_75\",\n name: i18n.t(\"Female 75 - 79 years\"),\n },\n {\n id: \"F_80\",\n name: i18n.t(\"Female 80 years and above\"),\n },\n ],\n filters: [\"period\"],\n mosaic: true,\n params: {\n min: 0,\n max: 10,\n palette: \"#fee5d9,#fcbba1,#fc9272,#fb6a4a,#de2d26,#a50f15\", // Reds\n },\n opacity: 0.9,\n tileScale: 4,\n },\n {\n layer: EARTH_ENGINE_LAYER,\n id: \"footprints\",\n datasetId: \"GOOGLE/Research/open-buildings/v1/polygons\",\n type: \"FeatureCollection\",\n name: i18n.t(\"Building footprints\"),\n unit: i18n.t(\"Number of buildings\"),\n description: i18n.t(\"The outlines of buildings derived from high-resolution satellite imagery. Only for the continent of Africa.\"),\n notice: i18n.t(\"Building counts are only available for smaller organisation unit areas.\"),\n error: i18n.t(\"Select a smaller area or single organization unit to see the count of buildings.\"),\n source: \"NASA / USGS / JPL-Caltech / Google Earth Engine\",\n sourceUrl: \"https://sites.research.google/open-buildings/\",\n img: \"images/buildings.png\",\n aggregations: [\"count\"],\n defaultAggregations: [\"count\"],\n opacity: 0.9,\n tokenType: \"Bearer\",\n },\n {\n layer: EARTH_ENGINE_LAYER,\n id: \"elevation\",\n type: \"Image\",\n tokenType: \"Bearer\",\n datasetId: \"USGS/SRTMGL1_003\",\n name: i18n.t(\"Elevation\"),\n unit: i18n.t(\"meters\"),\n description: i18n.t(\"Elevation above sea-level.\"),\n source: \"NASA / USGS / JPL-Caltech / Google Earth Engine\",\n sourceUrl: \"https://explorer.earthengine.google.com/#detail/USGS%2FSRTMGL1_003\",\n img: \"images/elevation.png\",\n aggregations: [\"min\", \"max\", \"mean\", \"median\", \"stdDev\", \"variance\"],\n defaultAggregations: [\"mean\", \"min\", \"max\"],\n selectedBands: [\"elevation\"],\n params: {\n min: 0,\n max: 1500,\n palette: \"#ffffd4,#fee391,#fec44f,#fe9929,#d95f0e,#993404\", // YlOrBr\n },\n opacity: 0.9,\n },\n {\n layer: EARTH_ENGINE_LAYER,\n datasetId: \"UCSB-CHG/CHIRPS/PENTAD\",\n id: \"precipitation\",\n type: \"ImageCollection\",\n tokenType: \"Bearer\",\n name: i18n.t(\"Precipitation\"),\n unit: i18n.t(\"millimeter\"),\n description: i18n.t(\n \"Precipitation collected from satellite and weather stations on the ground. The values are in millimeters within 5 days periods. Updated monthly, during the 3rd week of the following month.\"\n ),\n source: \"UCSB / CHG / Google Earth Engine\",\n sourceUrl: \"https://explorer.earthengine.google.com/#detail/UCSB-CHG%2FCHIRPS%2FPENTAD\",\n periodType: \"Custom\",\n selectedBands: [\"precipitation\"],\n aggregations: [\"min\", \"max\", \"mean\", \"median\", \"stdDev\", \"variance\"],\n defaultAggregations: [\"mean\", \"min\", \"max\"],\n mask: true,\n img: \"images/precipitation.png\",\n params: {\n min: 0,\n max: 100,\n palette: \"#eff3ff,#c6dbef,#9ecae1,#6baed6,#3182bd,#08519c\", // Blues\n },\n opacity: 0.9,\n },\n {\n layer: EARTH_ENGINE_LAYER,\n datasetId: \"MODIS/006/MOD11A2\",\n id: \"temperature\",\n type: \"ImageCollection\",\n tokenType: \"Bearer\",\n name: i18n.t(\"Temperature\"),\n unit: i18n.t(\"°C during daytime\"),\n description: i18n.t(\"Land surface temperatures collected from satellite. Blank spots will appear in areas with a persistent cloud cover.\"),\n source: \"NASA LP DAAC / Google Earth Engine\",\n sourceUrl: \"https://explorer.earthengine.google.com/#detail/MODIS%2FMOD11A2\",\n img: \"images/temperature.png\",\n aggregations: [\"min\", \"max\", \"mean\", \"median\", \"stdDev\", \"variance\"],\n defaultAggregations: [\"mean\", \"min\", \"max\"],\n periodType: \"Custom\",\n selectedBands: [\"LST_Day_1km\"],\n mask: true,\n methods: {\n toFloat: [],\n multiply: [0.02],\n subtract: [273.15],\n },\n params: {\n min: 0,\n max: 40,\n palette: \"#fff5f0,#fee0d2,#fcbba1,#fc9272,#fb6a4a,#ef3b2c,#cb181d,#a50f15,#67000d\", // Reds\n },\n opacity: 0.9,\n },\n {\n layer: EARTH_ENGINE_LAYER,\n type: \"ImageCollection\",\n tokenType: \"Bearer\",\n id: \"landCover\",\n datasetId: \"MODIS/006/MCD12Q1\", // No longer in use: 'MODIS/051/MCD12Q1',\n name: i18n.t(\"Landcover\"),\n description: i18n.t(\"Distinct landcover types collected from satellites.\"),\n source: \"NASA LP DAAC / Google Earth Engine\",\n sourceUrl: \"https://developers.google.com/earth-engine/datasets/catalog/MODIS_006_MCD12Q1\",\n periodType: \"Yearly\",\n filters: [\"period\"],\n selectedBands: [\"LC_Type1\"],\n defaultAggregations: [\"percentage\", \"hectares\", \"acres\"],\n maxAggregations: 1,\n legend: {\n items: [\n // http://www.eomf.ou.edu/static/IGBP.pdf\n {\n id: 1,\n name: i18n.t(\"Evergreen Needleleaf forest\"),\n color: \"#162103\",\n },\n {\n id: 2,\n name: i18n.t(\"Evergreen Broadleaf forest\"),\n color: \"#235123\",\n },\n {\n id: 3,\n name: i18n.t(\"Deciduous Needleleaf forest\"),\n color: \"#399b38\",\n },\n {\n id: 4,\n name: i18n.t(\"Deciduous Broadleaf forest\"),\n color: \"#38eb38\",\n },\n {\n id: 5,\n name: i18n.t(\"Mixed forest\"),\n color: \"#39723b\",\n },\n {\n id: 6,\n name: i18n.t(\"Closed shrublands\"),\n color: \"#6a2424\",\n },\n {\n id: 7,\n name: i18n.t(\"Open shrublands\"),\n color: \"#c3a55f\",\n },\n {\n id: 8,\n name: i18n.t(\"Woody savannas\"),\n color: \"#b76124\",\n },\n {\n id: 9,\n name: i18n.t(\"Savannas\"),\n color: \"#d99125\",\n },\n {\n id: 10,\n name: i18n.t(\"Grasslands\"),\n color: \"#92af1f\",\n },\n {\n id: 11,\n name: i18n.t(\"Permanent wetlands\"),\n color: \"#10104c\",\n },\n {\n id: 12,\n name: i18n.t(\"Croplands\"),\n color: \"#cdb400\",\n },\n {\n id: 13,\n name: i18n.t(\"Urban and built-up\"),\n color: \"#cc0202\",\n },\n {\n id: 14,\n name: i18n.t(\"Cropland/Natural vegetation mosaic\"),\n color: \"#332808\",\n },\n {\n id: 15,\n name: i18n.t(\"Snow and ice\"),\n color: \"#d7cdcc\",\n },\n {\n id: 16,\n name: i18n.t(\"Barren or sparsely vegetated\"),\n color: \"#f7e174\",\n },\n {\n id: 17,\n name: i18n.t(\"Water\"),\n color: \"#aec3d6\",\n },\n ],\n },\n mask: false,\n img: \"images/landcover.png\",\n opacity: 0.9,\n },\n {\n layer: EARTH_ENGINE_LAYER,\n id: \"nightLights\",\n type: \"ImageCollection\",\n tokenType: \"Bearer\",\n legacy: true, // Kept for backward compability\n datasetId: \"NOAA/DMSP-OLS/NIGHTTIME_LIGHTS\",\n name: i18n.t(\"Nighttime lights\"),\n unit: i18n.t(\"light intensity\"),\n description: i18n.t(\"Light intensity from cities, towns, and other sites with persistent lighting, including gas flares.\"),\n source: \"NOAA / Google Earth Engine\",\n sourceUrl: \"https://explorer.earthengine.google.com/#detail/NOAA%2FDMSP-OLS%2FNIGHTTIME_LIGHTS\",\n periodType: \"Yearly\",\n selectedBands: [\"stable_lights\"],\n mask: true,\n img: \"images/nighttime.png\",\n params: {\n min: 0,\n max: 63,\n palette: \"#ffffd4,#fee391,#fec44f,#fe9929,#ec7014,#cc4c02,#8c2d04\", // YlOrBr\n },\n opacity: 0.9,\n },\n];\n\nexport const SUPPORTED_EARTH_ENGINE_LAYERS = [\"population\", \"landCover\", \"footprints\"];\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../src/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU;AAGV,MAAM,qBAAqB;AAE3B,MAAM,sBAA4C;AAAA,EACxD;AAAA,IACC,OAAO;AAAA,IACP,IAAI;AAAA,IACJ,WAAW;AAAA,IACX,MAAM;AAAA,IACN,MAAM,KAAK,EAAE,YAAY;AAAA,IACzB,MAAM,KAAK,EAAE,oBAAoB;AAAA,IACjC,aAAa,KAAK,EAAE,+CAA+C;AAAA,IACnE,QAAQ;AAAA,IACR,WACC;AAAA,IACD,KAAK;AAAA,IACL,qBAAqB,CAAC,OAAO,MAAM;AAAA,IACnC,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,SAAS,CAAC,QAAQ;AAAA,IAClB,QAAQ;AAAA,IACR,QAAQ;AAAA,MACP,KAAK;AAAA,MACL,KAAK;AAAA,MACL,SAAS;AAAA;AAAA,IACV;AAAA,IACA,SAAS;AAAA,EACV;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,IAAI;AAAA,IACJ,WAAW;AAAA,IACX,MAAM,KAAK,EAAE,uBAAuB;AAAA,IACpC,MAAM,KAAK,EAAE,oBAAoB;AAAA,IACjC,aAAa,KAAK;AAAA,MACjB;AAAA,IACD;AAAA,IACA,QAAQ;AAAA,IACR,WACC;AAAA,IACD,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,qBAAqB,CAAC,OAAO,MAAM;AAAA,IACnC,OAAO;AAAA,MACN;AAA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A;AAAA,IACR,WAAW;AAAA,IACX,MAAM,KAAK,EAAE,kBAAkB;AAAA,IAC/B,MAAM,KAAK,EAAE,iBAAiB;AAAA,IAC9B,aAAa,KAAK;AAAA,MACjB;AAAA,IACD;AAAA,IACA,QAAQ;AAAA,IACR,WACC;AAAA,IACD,YAAY;AAAA,IACZ,eAAe,CAAC,eAAe;AAAA,IAC/B,MAAM;AAAA,IACN,KAAK;AAAA,IACL,QAAQ;AAAA,MACP,KAAK;AAAA,MACL,KAAK;AAAA,MACL,SAAS;AAAA;AAAA,IACV;AAAA,IACA,SAAS;AAAA,EACV;AACD;AAEO,MAAM,gCAAgC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AACD","sourcesContent":["import i18n from \"@dhis2/d2-i18n\";\nimport { EarthEngineOptions } from \"../interfaces/index.js\";\n\nexport const EARTH_ENGINE_LAYER = \"earthEngine\";\n\nexport const EARTH_ENGINE_LAYERS: EarthEngineOptions[] = [\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\tid: \"population\",\n\t\tdatasetId: \"WorldPop/GP/100m/pop\",\n\t\ttype: \"ImageCollection\",\n\t\tname: i18n.t(\"Population\"),\n\t\tunit: i18n.t(\"people per hectare\"),\n\t\tdescription: i18n.t(\"Estimated number of people living in an area.\"),\n\t\tsource: \"WorldPop / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop\",\n\t\timg: \"images/population.png\",\n\t\tdefaultAggregations: [\"sum\", \"mean\"],\n\t\ttokenType: \"Bearer\",\n\t\tperiodType: \"Yearly\",\n\t\tfilters: [\"period\"],\n\t\tmosaic: true,\n\t\tparams: {\n\t\t\tmin: 0,\n\t\t\tmax: 10,\n\t\t\tpalette: \"#fee5d9,#fcbba1,#fc9272,#fb6a4a,#de2d26,#a50f15\", // Reds\n\t\t},\n\t\topacity: 0.9,\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\ttype: \"ImageCollection\",\n\t\ttokenType: \"Bearer\",\n\t\tid: \"populationAgeGroups\",\n\t\tdatasetId: \"WorldPop/GP/100m/pop_age_sex_cons_unadj\",\n\t\tname: i18n.t(\"Population age groups\"),\n\t\tunit: i18n.t(\"people per hectare\"),\n\t\tdescription: i18n.t(\n\t\t\t\"Estimated number of people living in an area, grouped by age and gender.\",\n\t\t),\n\t\tsource: \"WorldPop / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop_age_sex_cons_unadj\",\n\t\timg: \"images/population.png\",\n\t\tperiodType: \"Yearly\",\n\t\tdefaultAggregations: [\"sum\", \"mean\"],\n\t\tbands: [\n\t\t\t{\n\t\t\t\tid: \"M_0\",\n\t\t\t\tname: i18n.t(\"Male 0 - 1 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_1\",\n\t\t\t\tname: i18n.t(\"Male 1 - 4 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_5\",\n\t\t\t\tname: i18n.t(\"Male 5 - 9 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_10\",\n\t\t\t\tname: i18n.t(\"Male 10 - 14 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_15\",\n\t\t\t\tname: i18n.t(\"Male 15 - 19 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_20\",\n\t\t\t\tname: i18n.t(\"Male 20 - 24 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_25\",\n\t\t\t\tname: i18n.t(\"Male 25 - 29 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_30\",\n\t\t\t\tname: i18n.t(\"Male 30 - 34 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_35\",\n\t\t\t\tname: i18n.t(\"Male 35 - 39 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_40\",\n\t\t\t\tname: i18n.t(\"Male 40 - 44 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_45\",\n\t\t\t\tname: i18n.t(\"Male 45 - 49 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_50\",\n\t\t\t\tname: i18n.t(\"Male 50 - 54 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_55\",\n\t\t\t\tname: i18n.t(\"Male 55 - 59 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_60\",\n\t\t\t\tname: i18n.t(\"Male 60 - 64 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_65\",\n\t\t\t\tname: i18n.t(\"Male 65 - 69 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_70\",\n\t\t\t\tname: i18n.t(\"Male 70 - 74 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_75\",\n\t\t\t\tname: i18n.t(\"Male 75 - 79 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"M_80\",\n\t\t\t\tname: i18n.t(\"Male 80 years and above\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_0\",\n\t\t\t\tname: i18n.t(\"Female 0 - 1 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_1\",\n\t\t\t\tname: i18n.t(\"Female 1 - 4 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_5\",\n\t\t\t\tname: i18n.t(\"Female 5 - 9 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_10\",\n\t\t\t\tname: i18n.t(\"Female 10 - 14 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_15\",\n\t\t\t\tname: i18n.t(\"Female 15 - 19 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_20\",\n\t\t\t\tname: i18n.t(\"Female 20 - 24 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_25\",\n\t\t\t\tname: i18n.t(\"Female 25 - 29 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_30\",\n\t\t\t\tname: i18n.t(\"Female 30 - 34 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_35\",\n\t\t\t\tname: i18n.t(\"Female 35 - 39 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_40\",\n\t\t\t\tname: i18n.t(\"Female 40 - 44 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_45\",\n\t\t\t\tname: i18n.t(\"Female 45 - 49 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_50\",\n\t\t\t\tname: i18n.t(\"Female 50 - 54 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_55\",\n\t\t\t\tname: i18n.t(\"Female 55 - 59 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_60\",\n\t\t\t\tname: i18n.t(\"Female 60 - 64 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_65\",\n\t\t\t\tname: i18n.t(\"Female 65 - 69 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_70\",\n\t\t\t\tname: i18n.t(\"Female 70 - 74 years\"),\n\t\t\t\tmultiple: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_75\",\n\t\t\t\tname: i18n.t(\"Female 75 - 79 years\"),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"F_80\",\n\t\t\t\tname: i18n.t(\"Female 80 years and above\"),\n\t\t\t},\n\t\t],\n\t\tfilters: [\"period\"],\n\t\tmosaic: true,\n\t\tparams: {\n\t\t\tmin: 0,\n\t\t\tmax: 10,\n\t\t\tpalette: \"#fee5d9,#fcbba1,#fc9272,#fb6a4a,#de2d26,#a50f15\", // Reds\n\t\t},\n\t\topacity: 0.9,\n\t\ttileScale: 4,\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\tid: \"footprints\",\n\t\tdatasetId: \"GOOGLE/Research/open-buildings/v1/polygons\",\n\t\ttype: \"FeatureCollection\",\n\t\tname: i18n.t(\"Building footprints\"),\n\t\tunit: i18n.t(\"Number of buildings\"),\n\t\tdescription: i18n.t(\n\t\t\t\"The outlines of buildings derived from high-resolution satellite imagery. Only for the continent of Africa.\",\n\t\t),\n\t\tnotice: i18n.t(\n\t\t\t\"Building counts are only available for smaller organisation unit areas.\",\n\t\t),\n\t\terror: i18n.t(\n\t\t\t\"Select a smaller area or single organization unit to see the count of buildings.\",\n\t\t),\n\t\tsource: \"NASA / USGS / JPL-Caltech / Google Earth Engine\",\n\t\tsourceUrl: \"https://sites.research.google/open-buildings/\",\n\t\timg: \"images/buildings.png\",\n\t\taggregations: [\"count\"],\n\t\tdefaultAggregations: [\"count\"],\n\t\topacity: 0.9,\n\t\ttokenType: \"Bearer\",\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\tid: \"elevation\",\n\t\ttype: \"Image\",\n\t\ttokenType: \"Bearer\",\n\t\tdatasetId: \"USGS/SRTMGL1_003\",\n\t\tname: i18n.t(\"Elevation\"),\n\t\tunit: i18n.t(\"meters\"),\n\t\tdescription: i18n.t(\"Elevation above sea-level.\"),\n\t\tsource: \"NASA / USGS / JPL-Caltech / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://explorer.earthengine.google.com/#detail/USGS%2FSRTMGL1_003\",\n\t\timg: \"images/elevation.png\",\n\t\taggregations: [\"min\", \"max\", \"mean\", \"median\", \"stdDev\", \"variance\"],\n\t\tdefaultAggregations: [\"mean\", \"min\", \"max\"],\n\t\tselectedBands: [\"elevation\"],\n\t\tparams: {\n\t\t\tmin: 0,\n\t\t\tmax: 1500,\n\t\t\tpalette: \"#ffffd4,#fee391,#fec44f,#fe9929,#d95f0e,#993404\", // YlOrBr\n\t\t},\n\t\topacity: 0.9,\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\tdatasetId: \"UCSB-CHG/CHIRPS/PENTAD\",\n\t\tid: \"precipitation\",\n\t\ttype: \"ImageCollection\",\n\t\ttokenType: \"Bearer\",\n\t\tname: i18n.t(\"Precipitation\"),\n\t\tunit: i18n.t(\"millimeter\"),\n\t\tdescription: i18n.t(\n\t\t\t\"Precipitation collected from satellite and weather stations on the ground. The values are in millimeters within 5 days periods. Updated monthly, during the 3rd week of the following month.\",\n\t\t),\n\t\tsource: \"UCSB / CHG / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://explorer.earthengine.google.com/#detail/UCSB-CHG%2FCHIRPS%2FPENTAD\",\n\t\tperiodType: \"Custom\",\n\t\tselectedBands: [\"precipitation\"],\n\t\taggregations: [\"min\", \"max\", \"mean\", \"median\", \"stdDev\", \"variance\"],\n\t\tdefaultAggregations: [\"mean\", \"min\", \"max\"],\n\t\tmask: true,\n\t\timg: \"images/precipitation.png\",\n\t\tparams: {\n\t\t\tmin: 0,\n\t\t\tmax: 100,\n\t\t\tpalette: \"#eff3ff,#c6dbef,#9ecae1,#6baed6,#3182bd,#08519c\", // Blues\n\t\t},\n\t\topacity: 0.9,\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\tdatasetId: \"MODIS/006/MOD11A2\",\n\t\tid: \"temperature\",\n\t\ttype: \"ImageCollection\",\n\t\ttokenType: \"Bearer\",\n\t\tname: i18n.t(\"Temperature\"),\n\t\tunit: i18n.t(\"°C during daytime\"),\n\t\tdescription: i18n.t(\n\t\t\t\"Land surface temperatures collected from satellite. Blank spots will appear in areas with a persistent cloud cover.\",\n\t\t),\n\t\tsource: \"NASA LP DAAC / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://explorer.earthengine.google.com/#detail/MODIS%2FMOD11A2\",\n\t\timg: \"images/temperature.png\",\n\t\taggregations: [\"min\", \"max\", \"mean\", \"median\", \"stdDev\", \"variance\"],\n\t\tdefaultAggregations: [\"mean\", \"min\", \"max\"],\n\t\tperiodType: \"Custom\",\n\t\tselectedBands: [\"LST_Day_1km\"],\n\t\tmask: true,\n\t\tmethods: {\n\t\t\ttoFloat: [],\n\t\t\tmultiply: [0.02],\n\t\t\tsubtract: [273.15],\n\t\t},\n\t\tparams: {\n\t\t\tmin: 0,\n\t\t\tmax: 40,\n\t\t\tpalette:\n\t\t\t\t\"#fff5f0,#fee0d2,#fcbba1,#fc9272,#fb6a4a,#ef3b2c,#cb181d,#a50f15,#67000d\", // Reds\n\t\t},\n\t\topacity: 0.9,\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\ttype: \"ImageCollection\",\n\t\ttokenType: \"Bearer\",\n\t\tid: \"landCover\",\n\t\tdatasetId: \"MODIS/006/MCD12Q1\", // No longer in use: 'MODIS/051/MCD12Q1',\n\t\tname: i18n.t(\"Landcover\"),\n\t\tdescription: i18n.t(\n\t\t\t\"Distinct landcover types collected from satellites.\",\n\t\t),\n\t\tsource: \"NASA LP DAAC / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://developers.google.com/earth-engine/datasets/catalog/MODIS_006_MCD12Q1\",\n\t\tperiodType: \"Yearly\",\n\t\tfilters: [\"period\"],\n\t\tselectedBands: [\"LC_Type1\"],\n\t\tdefaultAggregations: [\"percentage\", \"hectares\", \"acres\"],\n\t\tmaxAggregations: 1,\n\t\tlegend: {\n\t\t\titems: [\n\t\t\t\t// http://www.eomf.ou.edu/static/IGBP.pdf\n\t\t\t\t{\n\t\t\t\t\tid: 1,\n\t\t\t\t\tname: i18n.t(\"Evergreen Needleleaf forest\"),\n\t\t\t\t\tcolor: \"#162103\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 2,\n\t\t\t\t\tname: i18n.t(\"Evergreen Broadleaf forest\"),\n\t\t\t\t\tcolor: \"#235123\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 3,\n\t\t\t\t\tname: i18n.t(\"Deciduous Needleleaf forest\"),\n\t\t\t\t\tcolor: \"#399b38\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 4,\n\t\t\t\t\tname: i18n.t(\"Deciduous Broadleaf forest\"),\n\t\t\t\t\tcolor: \"#38eb38\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 5,\n\t\t\t\t\tname: i18n.t(\"Mixed forest\"),\n\t\t\t\t\tcolor: \"#39723b\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 6,\n\t\t\t\t\tname: i18n.t(\"Closed shrublands\"),\n\t\t\t\t\tcolor: \"#6a2424\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 7,\n\t\t\t\t\tname: i18n.t(\"Open shrublands\"),\n\t\t\t\t\tcolor: \"#c3a55f\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 8,\n\t\t\t\t\tname: i18n.t(\"Woody savannas\"),\n\t\t\t\t\tcolor: \"#b76124\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 9,\n\t\t\t\t\tname: i18n.t(\"Savannas\"),\n\t\t\t\t\tcolor: \"#d99125\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 10,\n\t\t\t\t\tname: i18n.t(\"Grasslands\"),\n\t\t\t\t\tcolor: \"#92af1f\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 11,\n\t\t\t\t\tname: i18n.t(\"Permanent wetlands\"),\n\t\t\t\t\tcolor: \"#10104c\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 12,\n\t\t\t\t\tname: i18n.t(\"Croplands\"),\n\t\t\t\t\tcolor: \"#cdb400\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 13,\n\t\t\t\t\tname: i18n.t(\"Urban and built-up\"),\n\t\t\t\t\tcolor: \"#cc0202\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 14,\n\t\t\t\t\tname: i18n.t(\"Cropland/Natural vegetation mosaic\"),\n\t\t\t\t\tcolor: \"#332808\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 15,\n\t\t\t\t\tname: i18n.t(\"Snow and ice\"),\n\t\t\t\t\tcolor: \"#d7cdcc\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 16,\n\t\t\t\t\tname: i18n.t(\"Barren or sparsely vegetated\"),\n\t\t\t\t\tcolor: \"#f7e174\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 17,\n\t\t\t\t\tname: i18n.t(\"Water\"),\n\t\t\t\t\tcolor: \"#aec3d6\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\tmask: false,\n\t\timg: \"images/landcover.png\",\n\t\topacity: 0.9,\n\t},\n\t{\n\t\tlayer: EARTH_ENGINE_LAYER,\n\t\tid: \"nightLights\",\n\t\ttype: \"ImageCollection\",\n\t\ttokenType: \"Bearer\",\n\t\tlegacy: true, // Kept for backward compability\n\t\tdatasetId: \"NOAA/DMSP-OLS/NIGHTTIME_LIGHTS\",\n\t\tname: i18n.t(\"Nighttime lights\"),\n\t\tunit: i18n.t(\"light intensity\"),\n\t\tdescription: i18n.t(\n\t\t\t\"Light intensity from cities, towns, and other sites with persistent lighting, including gas flares.\",\n\t\t),\n\t\tsource: \"NOAA / Google Earth Engine\",\n\t\tsourceUrl:\n\t\t\t\"https://explorer.earthengine.google.com/#detail/NOAA%2FDMSP-OLS%2FNIGHTTIME_LIGHTS\",\n\t\tperiodType: \"Yearly\",\n\t\tselectedBands: [\"stable_lights\"],\n\t\tmask: true,\n\t\timg: \"images/nighttime.png\",\n\t\tparams: {\n\t\t\tmin: 0,\n\t\t\tmax: 63,\n\t\t\tpalette: \"#ffffd4,#fee391,#fec44f,#fe9929,#ec7014,#cc4c02,#8c2d04\", // YlOrBr\n\t\t},\n\t\topacity: 0.9,\n\t},\n];\n\nexport const SUPPORTED_EARTH_ENGINE_LAYERS = [\n\t\"population\",\n\t\"landCover\",\n\t\"footprints\",\n];\n"]}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var appRuntime = require('@dhis2/app-runtime');
|
|
6
|
-
var lodash = require('lodash');
|
|
7
|
-
var hooks = require('../../../../MapProvider/hooks');
|
|
8
|
-
var react = require('react');
|
|
1
|
+
import { useDataEngine } from '@dhis2/app-runtime';
|
|
2
|
+
import { find } from 'lodash';
|
|
3
|
+
import { useMapLayers } from '../../../../MapProvider/hooks/index.js';
|
|
4
|
+
import { useState } from 'react';
|
|
9
5
|
|
|
10
6
|
const googleEngineKeyQuery = {
|
|
11
7
|
token: {
|
|
@@ -13,8 +9,8 @@ const googleEngineKeyQuery = {
|
|
|
13
9
|
}
|
|
14
10
|
};
|
|
15
11
|
function useGoogleEngineToken() {
|
|
16
|
-
const engine =
|
|
17
|
-
const [loading, setLoading] =
|
|
12
|
+
const engine = useDataEngine();
|
|
13
|
+
const [loading, setLoading] = useState(false);
|
|
18
14
|
const getToken = async () => {
|
|
19
15
|
setLoading(true);
|
|
20
16
|
const token = await engine.query(googleEngineKeyQuery);
|
|
@@ -27,11 +23,10 @@ function useGoogleEngineToken() {
|
|
|
27
23
|
};
|
|
28
24
|
}
|
|
29
25
|
function useGoogleEngineLayer(layerId) {
|
|
30
|
-
const { layers } =
|
|
31
|
-
return
|
|
26
|
+
const { layers } = useMapLayers();
|
|
27
|
+
return find(layers, ["id", layerId]);
|
|
32
28
|
}
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
exports.useGoogleEngineToken = useGoogleEngineToken;
|
|
30
|
+
export { useGoogleEngineLayer as default, useGoogleEngineToken };
|
|
36
31
|
//# sourceMappingURL=out.js.map
|
|
37
32
|
//# sourceMappingURL=index.js.map
|
package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../src/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.ts"],"names":[],"mappings":"AAAA,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAG7B,SAAS,gBAAgB;AAEzB,MAAM,uBAAuB;AAAA,EAC5B,OAAO;AAAA,IACN,UAAU;AAAA,EACX;AACD;AAEO,SAAS,uBAAuB;
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../src/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.ts"],"names":[],"mappings":"AAAA,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAG7B,SAAS,gBAAgB;AAEzB,MAAM,uBAAuB;AAAA,EAC5B,OAAO;AAAA,IACN,UAAU;AAAA,EACX;AACD;AAEO,SAAS,uBAAuB;AACtC,QAAM,SAAS,cAAc;AAC7B,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,QAAM,WAAW,YAAY;AAC5B,eAAW,IAAI;AACf,UAAM,QAAQ,MAAM,OAAO,MAAM,oBAAoB;AACrD,eAAW,KAAK;AAChB,WAAO;AAAA,EACR;AAEA,SAAO;AAAA,IACN,SAAS;AAAA,IAGT;AAAA,EACD;AACD;AAEe,SAAR,qBACN,SACsC;AACtC,QAAM,EAAE,OAAO,IAAI,aAAa;AAChC,SAAO,KAAK,QAAqC,CAAC,MAAM,OAAO,CAAC;AACjE","sourcesContent":["import { useDataEngine } from \"@dhis2/app-runtime\";\nimport { find } from \"lodash\";\nimport { useMapLayers } from \"../../../../MapProvider/hooks/index.js\";\nimport { CustomGoogleEngineLayer } from \"../../../interfaces/index.js\";\nimport { EarthEngineToken } from \"../interfaces/index.js\";\nimport { useState } from \"react\";\n\nconst googleEngineKeyQuery = {\n\ttoken: {\n\t\tresource: \"tokens/google\",\n\t},\n};\n\nexport function useGoogleEngineToken() {\n\tconst engine = useDataEngine();\n\tconst [loading, setLoading] = useState(false);\n\n\tconst getToken = async () => {\n\t\tsetLoading(true);\n\t\tconst token = await engine.query(googleEngineKeyQuery);\n\t\tsetLoading(false);\n\t\treturn token;\n\t};\n\n\treturn {\n\t\trefresh: getToken as unknown as () => Promise<{\n\t\t\ttoken: EarthEngineToken;\n\t\t}>,\n\t\tloading,\n\t};\n}\n\nexport default function useGoogleEngineLayer(\n\tlayerId: string,\n): CustomGoogleEngineLayer | undefined {\n\tconst { layers } = useMapLayers();\n\treturn find(layers as CustomGoogleEngineLayer[], [\"id\", layerId]);\n}\n"]}
|