diff --git a/src/components/spatialdisplay/SpatialDisplay.vue b/src/components/spatialdisplay/SpatialDisplay.vue index 2b9e4cc3..e6d91197 100644 --- a/src/components/spatialdisplay/SpatialDisplay.vue +++ b/src/components/spatialdisplay/SpatialDisplay.vue @@ -80,6 +80,7 @@ const end = computed(() => { if (!times.value || times.value.length === 0) return null return times.value[times.value.length - 1] }) + const maxValuesTimeSeries = useWmsMaxValuesTimeSeries( baseUrl, () => props.layerName, @@ -87,6 +88,12 @@ const maxValuesTimeSeries = useWmsMaxValuesTimeSeries( end, ) +const onlyCoverageLayersAvailable = computed(() => + layerCapabilities.value?.keywordList?.every( + (keyword) => keyword.type === 'COVERAGE', + ), +) + function getFilterActionsFilter(): filterActionsFilter & UseDisplayConfigOptions { return { @@ -197,6 +204,7 @@ function onCoordinateClick(latitude: number, longitude: number): void { } function openCoordinatesTimeSeriesDisplay(latitude: number, longitude: number) { + if (!onlyCoverageLayersAvailable.value) return const routeName = route.name ?.toString() .replace('SpatialDisplay', 'SpatialTimeSeriesDisplay')