fix(map): exclude high-resolution rasters from overview
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
normalizeBboxFromCorners,
|
||||
operationalScopeProjectLabel,
|
||||
parseBboxInput,
|
||||
persistedDatasetSupportsSelection,
|
||||
productCoversZones,
|
||||
readablePropertyName,
|
||||
resultCountLabel,
|
||||
@@ -1154,7 +1155,8 @@ export function MapWorkspace({
|
||||
if (boundedThemes.has(theme.id)) {
|
||||
return true
|
||||
}
|
||||
if (!themeDatasetMap[theme.id]) {
|
||||
const dataset = themeDatasetMap[theme.id]
|
||||
if (!dataset || !persistedDatasetSupportsSelection(dataset, mapSelectionBbox)) {
|
||||
return false
|
||||
}
|
||||
const coverageTheme = COVERAGE_THEME_BY_MAP_THEME[theme.id]
|
||||
@@ -1830,7 +1832,7 @@ export function MapWorkspace({
|
||||
const availableThemes: Array<MapThemeQuery<DataThemeId>> = []
|
||||
for (const theme of DATA_THEMES) {
|
||||
const dataset = themeDatasetMap[theme.id]
|
||||
if (dataset) {
|
||||
if (dataset && persistedDatasetSupportsSelection(dataset, bbox)) {
|
||||
availableThemes.push({
|
||||
themeId: theme.id,
|
||||
dataset,
|
||||
@@ -1865,7 +1867,12 @@ export function MapWorkspace({
|
||||
setMapAnalysisDurationMs(null)
|
||||
setSelectionBbox(bbox)
|
||||
const tasks: Array<Promise<unknown>> = [loadAllThemeResults(bbox, areaId)]
|
||||
if (activeThemeAvailable && !regionalPartitionedThemeActive && !onDemandThemeActive) {
|
||||
const activeDatasetSupportsSelection = !activeThemeDataset
|
||||
|| persistedDatasetSupportsSelection(activeThemeDataset, bbox)
|
||||
if (
|
||||
activeThemeAvailable && !regionalPartitionedThemeActive && !onDemandThemeActive
|
||||
&& activeDatasetSupportsSelection
|
||||
) {
|
||||
tasks.push(onRunMapSelectionExtract(bbox, areaId))
|
||||
}
|
||||
if (analysisMode === 'evolution' && earlierDatasetId && laterDatasetId) {
|
||||
|
||||
Reference in New Issue
Block a user