From 4a35462147dca5215b5925e0d012091b607a7e50 Mon Sep 17 00:00:00 2001 From: Johann Levesque Date: Tue, 21 May 2024 13:50:22 -0400 Subject: [PATCH] rebase --- .../event-processor-children/time-slider-event-processor.ts | 4 ++-- .../store-interface-and-intial-values/time-slider-state.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/geoview-core/src/api/event-processors/event-processor-children/time-slider-event-processor.ts b/packages/geoview-core/src/api/event-processors/event-processor-children/time-slider-event-processor.ts index c0e83174aa5..04839004a26 100644 --- a/packages/geoview-core/src/api/event-processors/event-processor-children/time-slider-event-processor.ts +++ b/packages/geoview-core/src/api/event-processors/event-processor-children/time-slider-event-processor.ts @@ -92,7 +92,7 @@ export class TimeSliderEventProcessor extends AbstractEventProcessor { static getInitialTimeSliderValues(mapId: string, layerConfig: TypeLayerEntryConfig): TypeTimeSliderValues | undefined { // Get the layer using the map event processor, If no temporal dimension OR layerPath, return undefined if (!layerConfig.layerPath) return undefined; - const geoviewLayer = MapEventProcessor.getMapViewerLayerAPI(mapId).geoviewLayer(layerConfig.layerPath); + const geoviewLayer = MapEventProcessor.getMapViewerLayerAPI(mapId).getGeoviewLayer(layerConfig.layerPath)!; const temporalDimensionInfo = geoviewLayer.getTemporalDimension(layerConfig.layerPath); if (!temporalDimensionInfo || !temporalDimensionInfo.range) return undefined; @@ -174,7 +174,7 @@ export class TimeSliderEventProcessor extends AbstractEventProcessor { values: number[] ): void { // Get the layer using the map event processor - const geoviewLayer = MapEventProcessor.getMapViewerLayerAPI(mapId).geoviewLayer(layerPath); + const geoviewLayer = MapEventProcessor.getMapViewerLayerAPI(mapId).getGeoviewLayer(layerPath)!; const layerType = geoviewLayer.type; if (layerType === CONST_LAYER_TYPES.WMS) { diff --git a/packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts b/packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts index a44c73b418b..b7f6244879e 100644 --- a/packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts +++ b/packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts @@ -87,7 +87,7 @@ export function initializeTimeSliderState(set: TypeSetStore, get: TypeGetStore): get().timeSliderState.setterActions.setDelay(layerPath, delay); }, setFiltering(layerPath: string, filtering: boolean): void { - // Redirect to TimeSlidierEventProcessor + // Redirect to TimeSliderEventProcessor const { defaultValue, field, minAndMax, values } = get().timeSliderState.timeSliderLayers[layerPath]; TimeSliderEventProcessor.applyFilters(get().mapId, layerPath, defaultValue, field, filtering, minAndMax, values); }, @@ -104,7 +104,7 @@ export function initializeTimeSliderState(set: TypeSetStore, get: TypeGetStore): get().timeSliderState.setterActions.setDefaultValue(layerPath, defaultValue); }, setValues(layerPath: string, values: number[]): void { - // Redirect to TimeSlidierEventProcessor + // Redirect to TimeSliderEventProcessor const { defaultValue, field, minAndMax, filtering } = get().timeSliderState.timeSliderLayers[layerPath]; TimeSliderEventProcessor.applyFilters(get().mapId, layerPath, defaultValue, field, filtering, minAndMax, values); },