Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurmarakana89 committed Feb 20, 2024
1 parent e844dec commit 5f4825f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/geoview-time-slider/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { FooterPlugin } from 'geoview-core/src/api/plugin/footer-plugin';
import { TimeSliderPanel } from './time-slider-panel';
import schema from '../schema.json';
import defaultConfig from '../default-config-time-slider-panel.json';
import { SliderProps } from './time-slider-types';

export interface LayerProps {
layerPath: string;
Expand Down Expand Up @@ -97,9 +98,11 @@ class TimeSliderPlugin extends FooterPlugin {

onCreateContentProps = (): TypeTabs => {
// Set custom time dimension if applicable
this.configObj.sliders.forEach((obj: any) => {
this.configObj.sliders.forEach((obj: SliderProps) => {
if (obj.temporalDimension) {
api.maps[this.pluginProps.mapId].layer.geoviewLayer(obj.layerPaths[0]).setTemporalDimension(obj.layerPaths[0], obj.temporalDimension)
api.maps[this.pluginProps.mapId].layer
.geoviewLayer(obj.layerPaths[0])
.setTemporalDimension(obj.layerPaths[0], obj.temporalDimension);
}
});

Expand Down
4 changes: 2 additions & 2 deletions packages/geoview-time-slider/src/time-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function TimeSlider(TimeSliderPanelProps: TimeSliderPanelProps) {

// Get actions and states from store
// TODO: evaluate best option to set value by layer path.... trough a getter?
const { setTitle, setDescription, setDefaultValue, setValues, setLocked, setReversed, setDelay, setFiltering } =
const { setTitle, setDescription, setValues, setLocked, setReversed, setDelay, setFiltering } =
useTimeSliderStoreActions();

// TODO: check performance as we should technically have one selector by constant
Expand All @@ -69,7 +69,7 @@ export function TimeSlider(TimeSliderPanelProps: TimeSliderPanelProps) {
values,
delay,
locked,
reversed
reversed,
} = useTimeSliderLayers()[layerPath];

// slider config
Expand Down

0 comments on commit 5f4825f

Please sign in to comment.