@opengeoweb/core 2.12.0 → 2.13.0

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.
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Source } from '../../store/ui/types';
3
+ export declare const IS_LEGEND_OPEN_BY_DEFAULT = true;
3
4
  interface LegendConnectProps {
4
5
  showMapId?: boolean;
5
6
  source?: Source;
@@ -3,3 +3,4 @@ export declare const SetMapPinAction: {
3
3
  (): React.ReactElement;
4
4
  storyName: string;
5
5
  };
6
+ export declare const ToggleMapPinAction: () => React.ReactElement;
@@ -5,7 +5,6 @@ export interface MapViewConnectProps {
5
5
  controls?: {
6
6
  zoomControls?: boolean;
7
7
  };
8
- displayMapPin?: boolean;
9
8
  showScaleBar?: boolean;
10
9
  children?: React.ReactNode;
11
10
  showLayerInfo?: boolean;
@@ -20,7 +19,6 @@ export declare const ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO = "ORIGIN_REAC
20
19
  * @param {string} mapId mapId: string - Id of the map
21
20
  * @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
22
21
  * @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
23
- * @param {boolean} [displayMapPin] **optional** displayMapPin: boolean, toggle the display of pin on click, defaults to false
24
22
  * @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
25
23
  * @example
26
24
  * ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
@@ -1,4 +1,5 @@
1
1
  import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
2
2
  import { UpdateLayerInfoPayload } from '../../store/mapStore/types';
3
3
  import { MapViewProps } from '../MapView/types';
4
+ export declare const getCurrentDimensionValue: (dimensions: any[], name: string) => string;
4
5
  export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
@@ -0,0 +1 @@
1
+ export declare const mockGeoJSON: GeoJSON.FeatureCollection;
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- import { Dimension } from '../../../../store/mapStore/types';
2
+ import { Dimension, MapActionOrigin } from '../../../../store/mapStore/types';
3
3
  interface TimeStepProps {
4
4
  timeStep: number;
5
5
  disabled?: boolean;
6
6
  isTimestepAuto?: boolean;
7
7
  timeDimension?: Dimension;
8
- onChangeTimeStep: (scale: number) => void;
8
+ onChangeTimeStep: (scale: number, origin?: MapActionOrigin) => void;
9
9
  onToggleTimestepAuto?: () => void;
10
10
  }
11
11
  declare const TimeStepButton: React.FC<TimeStepProps>;
@@ -5,6 +5,7 @@ import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/t
5
5
  import CanvasComponent from '../CanvasComponent/CanvasComponent';
6
6
  export declare const defaultAnimationDelayAtStart = 250;
7
7
  export declare const defaultDelay = 1000;
8
+ export declare const defaultTimeStep = 5;
8
9
  export declare const speedFactors: SpeedFactorType[];
9
10
  export interface TimeBounds {
10
11
  selectedTime: number;
@@ -15,6 +16,7 @@ export interface TimeBounds {
15
16
  * Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
16
17
  */
17
18
  export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
19
+ export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
18
20
  /**
19
21
  * Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
20
22
  */
package/lib/index.d.ts CHANGED
@@ -47,8 +47,10 @@ export declare const mapActions: {
47
47
  toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleTimestepAutoPayload, string>;
48
48
  toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleTimeSliderHoverPayload, string>;
49
49
  toggleTimeSliderIsVisible: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleTimeSliderIsVisiblePayload, string>;
50
+ toggleZoomControls: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleZoomControlsPayload, string>;
50
51
  setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.MapPinLocationPayload, string>;
51
52
  setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DisableMapPinPayload, string>;
53
+ toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleMapPinIsVisiblePayload, string>;
52
54
  setActiveMapPresetId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetActiveMapPresetPayload, string>;
53
55
  setIsMapPresetLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetIsMapPresetLoadingPayload, string>;
54
56
  setHasMapPresetChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetIsMapPresetHasChangesPayload, string>;
@@ -1,5 +1,6 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
2
  import { WebMapState, SetActiveLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetSelectedFeaturePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSliderHoverPayload, MapPinLocationPayload, DisableMapPinPayload, SetActiveMapPresetPayload, SetTimeSliderSecondsPerPxPayload, UpdateAllMapDimensionsPayload, SetIsMapPresetLoadingPayload, SetIsMapPresetHasChangesPayload, SetMapPresetErrorPayload, ToggleTimeSliderIsVisiblePayload, SetAnimationIntervalPayload } from './types';
3
+ import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
3
4
  /**
4
5
  * Checks if the layer id is already taken in one of the maps.
5
6
  * @param state The WebMapState
@@ -41,8 +42,10 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
41
42
  toggleTimestepAuto: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleTimestepAutoPayload>) => void;
42
43
  toggleTimeSliderHover: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleTimeSliderHoverPayload>) => void;
43
44
  toggleTimeSliderIsVisible: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleTimeSliderIsVisiblePayload>) => void;
45
+ toggleZoomControls: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleZoomControlsPayload>) => void;
44
46
  setMapPinLocation: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MapPinLocationPayload>) => void;
45
47
  setDisableMapPin: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<DisableMapPinPayload>) => void;
48
+ toggleMapPinIsVisible: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleMapPinIsVisiblePayload>) => void;
46
49
  setActiveMapPresetId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetActiveMapPresetPayload>) => void;
47
50
  setIsMapPresetLoading: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetIsMapPresetLoadingPayload>) => void;
48
51
  setHasMapPresetChanges: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetIsMapPresetHasChangesPayload>) => void;
@@ -77,8 +80,10 @@ export declare const mapActions: {
77
80
  toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimestepAutoPayload, string>;
78
81
  toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimeSliderHoverPayload, string>;
79
82
  toggleTimeSliderIsVisible: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimeSliderIsVisiblePayload, string>;
83
+ toggleZoomControls: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleZoomControlsPayload, string>;
80
84
  setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<MapPinLocationPayload, string>;
81
85
  setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<DisableMapPinPayload, string>;
86
+ toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleMapPinIsVisiblePayload, string>;
82
87
  setActiveMapPresetId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetActiveMapPresetPayload, string>;
83
88
  setIsMapPresetLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetIsMapPresetLoadingPayload, string>;
84
89
  setHasMapPresetChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetIsMapPresetHasChangesPayload, string>;
@@ -4,6 +4,7 @@ import { mapActions } from '.';
4
4
  import { layerActions } from '../layers';
5
5
  import { Layer } from '../layers/types';
6
6
  import { genericActions } from '../../generic';
7
+ import { uiActions } from '../../ui';
7
8
  export declare const generateTimeList: (start: Moment, end: Moment, interval: number) => {
8
9
  name: string;
9
10
  value: string;
@@ -17,8 +18,8 @@ export declare function setLayerDimensionsSaga({ payload, }: ReturnType<typeof l
17
18
  export declare function toggleAutoUpdateSaga({ payload, }: ReturnType<typeof mapActions.toggleAutoUpdate>): SagaIterator;
18
19
  export declare function handleBaseLayersSaga(mapId: string, baseLayers: Layer[]): SagaIterator;
19
20
  export declare function setMapPresetSaga({ payload, }: ReturnType<typeof mapActions.setMapPreset>): SagaIterator;
20
- export declare type SupportedMapPresetChangeActions = ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof mapActions.layerMoveLayer> | ReturnType<typeof mapActions.setActiveLayerId> | ReturnType<typeof mapActions.toggleAutoUpdate> | ReturnType<typeof mapActions.mapStartAnimation> | ReturnType<typeof mapActions.mapStopAnimation> | ReturnType<typeof mapActions.toggleTimeSliderIsVisible> | ReturnType<typeof genericActions.setBbox>;
21
- export declare const mapPresetChangeActions: (string | import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetMapAnimationStopPayload, string>)[];
21
+ export declare type SupportedMapPresetChangeActions = ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof mapActions.layerMoveLayer> | ReturnType<typeof mapActions.setActiveLayerId> | ReturnType<typeof mapActions.toggleAutoUpdate> | ReturnType<typeof mapActions.mapStartAnimation> | ReturnType<typeof mapActions.mapStopAnimation> | ReturnType<typeof mapActions.toggleTimeSliderIsVisible> | ReturnType<typeof mapActions.setTimeStep> | ReturnType<typeof mapActions.setAnimationDelay> | ReturnType<typeof mapActions.toggleTimestepAuto> | ReturnType<typeof uiActions.setActiveMapIdForDialog> | ReturnType<typeof uiActions.setToggleOpenDialog> | ReturnType<typeof genericActions.setBbox>;
22
+ export declare const mapPresetChangeActions: (string | import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetMapAnimationStopPayload, string> | import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("../../ui/types").UIToggleDialogPayload, string>)[];
22
23
  export declare function checkMapPresetForChangesSaga(action: SupportedMapPresetChangeActions): SagaIterator;
23
24
  export declare function rootSaga(): SagaIterator;
24
25
  export default rootSaga;
@@ -1,6 +1,7 @@
1
1
  import { MapPreset, Scale, WebMap, WebMapState } from './types';
2
2
  import { AppStore } from '../../../types/types';
3
3
  import { Layer } from '../types';
4
+ import { UIStoreType } from '../../ui/types';
4
5
  /**
5
6
  * Gets the map state by mapId
6
7
  *
@@ -27,7 +28,7 @@ export declare const getAllMapIds: (store: AppStore) => string[];
27
28
  */
28
29
  export declare const getFirstMap: ((state: {
29
30
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
30
- ui?: import("../../ui/types").UIStoreType;
31
+ ui?: UIStoreType;
31
32
  webmap?: WebMapState;
32
33
  services?: import("../types").ServiceState;
33
34
  layers?: import("../types").LayerState;
@@ -46,7 +47,7 @@ export declare const getFirstMap: ((state: {
46
47
  */
47
48
  export declare const getFirstMapId: ((state: {
48
49
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
49
- ui?: import("../../ui/types").UIStoreType;
50
+ ui?: UIStoreType;
50
51
  webmap?: WebMapState;
51
52
  services?: import("../types").ServiceState;
52
53
  layers?: import("../types").LayerState;
@@ -63,7 +64,7 @@ export declare const getFirstMapId: ((state: {
63
64
  */
64
65
  export declare const getIsMapPresent: ((state: {
65
66
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
66
- ui?: import("../../ui/types").UIStoreType;
67
+ ui?: UIStoreType;
67
68
  webmap?: WebMapState;
68
69
  services?: import("../types").ServiceState;
69
70
  layers?: import("../types").LayerState;
@@ -83,7 +84,7 @@ export declare const getIsMapPresent: ((state: {
83
84
  */
84
85
  export declare const getLayerIds: ((state: {
85
86
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
86
- ui?: import("../../ui/types").UIStoreType;
87
+ ui?: UIStoreType;
87
88
  webmap?: WebMapState;
88
89
  services?: import("../types").ServiceState;
89
90
  layers?: import("../types").LayerState;
@@ -103,7 +104,7 @@ export declare const getLayerIds: ((state: {
103
104
  */
104
105
  export declare const getMapLayers: ((state: {
105
106
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
106
- ui?: import("../../ui/types").UIStoreType;
107
+ ui?: UIStoreType;
107
108
  webmap?: WebMapState;
108
109
  services?: import("../types").ServiceState;
109
110
  layers?: import("../types").LayerState;
@@ -123,7 +124,7 @@ export declare const getMapLayers: ((state: {
123
124
  */
124
125
  export declare const getMapBaseLayersIds: ((state: {
125
126
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
126
- ui?: import("../../ui/types").UIStoreType;
127
+ ui?: UIStoreType;
127
128
  webmap?: WebMapState;
128
129
  services?: import("../types").ServiceState;
129
130
  layers?: import("../types").LayerState;
@@ -143,7 +144,7 @@ export declare const getMapBaseLayersIds: ((state: {
143
144
  */
144
145
  export declare const getMapBaseLayers: ((state: {
145
146
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
146
- ui?: import("../../ui/types").UIStoreType;
147
+ ui?: UIStoreType;
147
148
  webmap?: WebMapState;
148
149
  services?: import("../types").ServiceState;
149
150
  layers?: import("../types").LayerState;
@@ -163,7 +164,7 @@ export declare const getMapBaseLayers: ((state: {
163
164
  */
164
165
  export declare const getMapOverLayersIds: ((state: {
165
166
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
166
- ui?: import("../../ui/types").UIStoreType;
167
+ ui?: UIStoreType;
167
168
  webmap?: WebMapState;
168
169
  services?: import("../types").ServiceState;
169
170
  layers?: import("../types").LayerState;
@@ -183,7 +184,7 @@ export declare const getMapOverLayersIds: ((state: {
183
184
  */
184
185
  export declare const getMapOverLayers: ((state: {
185
186
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
186
- ui?: import("../../ui/types").UIStoreType;
187
+ ui?: UIStoreType;
187
188
  webmap?: WebMapState;
188
189
  services?: import("../types").ServiceState;
189
190
  layers?: import("../types").LayerState;
@@ -203,7 +204,7 @@ export declare const getMapOverLayers: ((state: {
203
204
  */
204
205
  export declare const getMapDimensions: ((state: {
205
206
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
206
- ui?: import("../../ui/types").UIStoreType;
207
+ ui?: UIStoreType;
207
208
  webmap?: WebMapState;
208
209
  services?: import("../types").ServiceState;
209
210
  layers?: import("../types").LayerState;
@@ -224,7 +225,7 @@ export declare const getMapDimensions: ((state: {
224
225
  */
225
226
  export declare const getMapDimension: ((state: {
226
227
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
227
- ui?: import("../../ui/types").UIStoreType;
228
+ ui?: UIStoreType;
228
229
  webmap?: WebMapState;
229
230
  services?: import("../types").ServiceState;
230
231
  layers?: import("../types").LayerState;
@@ -244,7 +245,7 @@ export declare const getMapDimension: ((state: {
244
245
  */
245
246
  export declare const getSrs: ((state: {
246
247
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
247
- ui?: import("../../ui/types").UIStoreType;
248
+ ui?: UIStoreType;
248
249
  webmap?: WebMapState;
249
250
  services?: import("../types").ServiceState;
250
251
  layers?: import("../types").LayerState;
@@ -264,7 +265,7 @@ export declare const getSrs: ((state: {
264
265
  */
265
266
  export declare const getBbox: ((state: {
266
267
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
267
- ui?: import("../../ui/types").UIStoreType;
268
+ ui?: UIStoreType;
268
269
  webmap?: WebMapState;
269
270
  services?: import("../types").ServiceState;
270
271
  layers?: import("../types").LayerState;
@@ -284,7 +285,7 @@ export declare const getBbox: ((state: {
284
285
  */
285
286
  export declare const isAnimating: ((state: {
286
287
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
287
- ui?: import("../../ui/types").UIStoreType;
288
+ ui?: UIStoreType;
288
289
  webmap?: WebMapState;
289
290
  services?: import("../types").ServiceState;
290
291
  layers?: import("../types").LayerState;
@@ -304,7 +305,7 @@ export declare const isAnimating: ((state: {
304
305
  */
305
306
  export declare const linkedMapAnimationInfo: ((state: {
306
307
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
307
- ui?: import("../../ui/types").UIStoreType;
308
+ ui?: UIStoreType;
308
309
  webmap?: WebMapState;
309
310
  services?: import("../types").ServiceState;
310
311
  layers?: import("../types").LayerState;
@@ -333,7 +334,7 @@ export declare const linkedMapAnimationInfo: ((state: {
333
334
  */
334
335
  export declare const getAnimationStartTime: ((state: {
335
336
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
336
- ui?: import("../../ui/types").UIStoreType;
337
+ ui?: UIStoreType;
337
338
  webmap?: WebMapState;
338
339
  services?: import("../types").ServiceState;
339
340
  layers?: import("../types").LayerState;
@@ -353,7 +354,7 @@ export declare const getAnimationStartTime: ((state: {
353
354
  */
354
355
  export declare const getAnimationEndTime: ((state: {
355
356
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
356
- ui?: import("../../ui/types").UIStoreType;
357
+ ui?: UIStoreType;
357
358
  webmap?: WebMapState;
358
359
  services?: import("../types").ServiceState;
359
360
  layers?: import("../types").LayerState;
@@ -373,7 +374,7 @@ export declare const getAnimationEndTime: ((state: {
373
374
  */
374
375
  export declare const isAutoUpdating: ((state: {
375
376
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
376
- ui?: import("../../ui/types").UIStoreType;
377
+ ui?: UIStoreType;
377
378
  webmap?: WebMapState;
378
379
  services?: import("../types").ServiceState;
379
380
  layers?: import("../types").LayerState;
@@ -392,7 +393,7 @@ export declare const isAutoUpdating: ((state: {
392
393
  */
393
394
  export declare const getActiveLayerId: ((state: {
394
395
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
395
- ui?: import("../../ui/types").UIStoreType;
396
+ ui?: UIStoreType;
396
397
  webmap?: WebMapState;
397
398
  services?: import("../types").ServiceState;
398
399
  layers?: import("../types").LayerState;
@@ -412,7 +413,7 @@ export declare const getActiveLayerId: ((state: {
412
413
  */
413
414
  export declare const getMapTimeSliderScale: ((state: {
414
415
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
415
- ui?: import("../../ui/types").UIStoreType;
416
+ ui?: UIStoreType;
416
417
  webmap?: WebMapState;
417
418
  services?: import("../types").ServiceState;
418
419
  layers?: import("../types").LayerState;
@@ -432,7 +433,7 @@ export declare const getMapTimeSliderScale: ((state: {
432
433
  */
433
434
  export declare const getMapTimeStep: ((state: {
434
435
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
435
- ui?: import("../../ui/types").UIStoreType;
436
+ ui?: UIStoreType;
436
437
  webmap?: WebMapState;
437
438
  services?: import("../types").ServiceState;
438
439
  layers?: import("../types").LayerState;
@@ -452,7 +453,7 @@ export declare const getMapTimeStep: ((state: {
452
453
  */
453
454
  export declare const getMapAnimationDelay: ((state: {
454
455
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
455
- ui?: import("../../ui/types").UIStoreType;
456
+ ui?: UIStoreType;
456
457
  webmap?: WebMapState;
457
458
  services?: import("../types").ServiceState;
458
459
  layers?: import("../types").LayerState;
@@ -472,7 +473,7 @@ export declare const getMapAnimationDelay: ((state: {
472
473
  */
473
474
  export declare const getMapTimeSliderCenterTime: ((state: {
474
475
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
475
- ui?: import("../../ui/types").UIStoreType;
476
+ ui?: UIStoreType;
476
477
  webmap?: WebMapState;
477
478
  services?: import("../types").ServiceState;
478
479
  layers?: import("../types").LayerState;
@@ -492,7 +493,7 @@ export declare const getMapTimeSliderCenterTime: ((state: {
492
493
  */
493
494
  export declare const getMapTimeSliderSecondsPerPx: ((state: {
494
495
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
495
- ui?: import("../../ui/types").UIStoreType;
496
+ ui?: UIStoreType;
496
497
  webmap?: WebMapState;
497
498
  services?: import("../types").ServiceState;
498
499
  layers?: import("../types").LayerState;
@@ -512,7 +513,7 @@ export declare const getMapTimeSliderSecondsPerPx: ((state: {
512
513
  */
513
514
  export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
514
515
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
515
- ui?: import("../../ui/types").UIStoreType;
516
+ ui?: UIStoreType;
516
517
  webmap?: WebMapState;
517
518
  services?: import("../types").ServiceState;
518
519
  layers?: import("../types").LayerState;
@@ -532,7 +533,7 @@ export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
532
533
  */
533
534
  export declare const isTimestepAuto: ((state: {
534
535
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
535
- ui?: import("../../ui/types").UIStoreType;
536
+ ui?: UIStoreType;
536
537
  webmap?: WebMapState;
537
538
  services?: import("../types").ServiceState;
538
539
  layers?: import("../types").LayerState;
@@ -552,7 +553,27 @@ export declare const isTimestepAuto: ((state: {
552
553
  */
553
554
  export declare const isTimeSliderHoverOn: ((state: {
554
555
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
555
- ui?: import("../../ui/types").UIStoreType;
556
+ ui?: UIStoreType;
557
+ webmap?: WebMapState;
558
+ services?: import("../types").ServiceState;
559
+ layers?: import("../types").LayerState;
560
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
561
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
562
+ clearCache: () => void;
563
+ }> & {
564
+ clearCache: () => void;
565
+ };
566
+ /**
567
+ * Returns map if zoomcontrols are visible
568
+ *
569
+ * Example: isZoomControlsVisible = isZoomControlsVisible(store, 'mapid_1')
570
+ * @param {object} store store: object - store object
571
+ * @param {string} mapId mapId: string - Id of the map
572
+ * @returns {boolean} returnType: boolean
573
+ */
574
+ export declare const isZoomControlsVisible: ((state: {
575
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
576
+ ui?: UIStoreType;
556
577
  webmap?: WebMapState;
557
578
  services?: import("../types").ServiceState;
558
579
  layers?: import("../types").LayerState;
@@ -572,7 +593,7 @@ export declare const isTimeSliderHoverOn: ((state: {
572
593
  */
573
594
  export declare const isTimeSliderVisible: ((state: {
574
595
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
575
- ui?: import("../../ui/types").UIStoreType;
596
+ ui?: UIStoreType;
576
597
  webmap?: WebMapState;
577
598
  services?: import("../types").ServiceState;
578
599
  layers?: import("../types").LayerState;
@@ -593,7 +614,7 @@ export declare const isTimeSliderVisible: ((state: {
593
614
  */
594
615
  export declare const getIsLayerActiveLayer: ((state: {
595
616
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
596
- ui?: import("../../ui/types").UIStoreType;
617
+ ui?: UIStoreType;
597
618
  webmap?: WebMapState;
598
619
  services?: import("../types").ServiceState;
599
620
  layers?: import("../types").LayerState;
@@ -613,7 +634,7 @@ export declare const getIsLayerActiveLayer: ((state: {
613
634
  */
614
635
  export declare const getMapIdFromLayerId: ((state: {
615
636
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
616
- ui?: import("../../ui/types").UIStoreType;
637
+ ui?: UIStoreType;
617
638
  webmap?: WebMapState;
618
639
  services?: import("../types").ServiceState;
619
640
  layers?: import("../types").LayerState;
@@ -634,7 +655,7 @@ export declare const getMapIdFromLayerId: ((state: {
634
655
  */
635
656
  export declare const getLayerIdByLayerName: ((state: {
636
657
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
637
- ui?: import("../../ui/types").UIStoreType;
658
+ ui?: UIStoreType;
638
659
  webmap?: WebMapState;
639
660
  services?: import("../types").ServiceState;
640
661
  layers?: import("../types").LayerState;
@@ -655,7 +676,7 @@ export declare const getLayerIdByLayerName: ((state: {
655
676
  */
656
677
  export declare const getLayerIndexByLayerId: ((state: {
657
678
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
658
- ui?: import("../../ui/types").UIStoreType;
679
+ ui?: UIStoreType;
659
680
  webmap?: WebMapState;
660
681
  services?: import("../types").ServiceState;
661
682
  layers?: import("../types").LayerState;
@@ -676,7 +697,7 @@ export declare const getLayerIndexByLayerId: ((state: {
676
697
  */
677
698
  export declare const getLayerByLayerIndex: ((state: {
678
699
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
679
- ui?: import("../../ui/types").UIStoreType;
700
+ ui?: UIStoreType;
680
701
  webmap?: WebMapState;
681
702
  services?: import("../types").ServiceState;
682
703
  layers?: import("../types").LayerState;
@@ -695,7 +716,7 @@ export declare const getLayerByLayerIndex: ((state: {
695
716
  */
696
717
  export declare const getAllUniqueDimensions: ((state: {
697
718
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
698
- ui?: import("../../ui/types").UIStoreType;
719
+ ui?: UIStoreType;
699
720
  webmap?: WebMapState;
700
721
  services?: import("../types").ServiceState;
701
722
  layers?: import("../types").LayerState;
@@ -715,7 +736,7 @@ export declare const getAllUniqueDimensions: ((state: {
715
736
  */
716
737
  export declare const getPinLocation: ((state: {
717
738
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
718
- ui?: import("../../ui/types").UIStoreType;
739
+ ui?: UIStoreType;
719
740
  webmap?: WebMapState;
720
741
  services?: import("../types").ServiceState;
721
742
  layers?: import("../types").LayerState;
@@ -735,7 +756,27 @@ export declare const getPinLocation: ((state: {
735
756
  */
736
757
  export declare const getDisableMapPin: ((state: {
737
758
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
738
- ui?: import("../../ui/types").UIStoreType;
759
+ ui?: UIStoreType;
760
+ webmap?: WebMapState;
761
+ services?: import("../types").ServiceState;
762
+ layers?: import("../types").LayerState;
763
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
764
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
765
+ clearCache: () => void;
766
+ }> & {
767
+ clearCache: () => void;
768
+ };
769
+ /**
770
+ * Returns the diplay map pin boolean for the current map
771
+ *
772
+ * Example getDisplayMapPin(store);
773
+ * @param {object} store store: object - store object
774
+ * @param {string} mapId mapId: string - Id of the map
775
+ * @returns {boolean} returnType: boolean
776
+ */
777
+ export declare const getDisplayMapPin: ((state: {
778
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
779
+ ui?: UIStoreType;
739
780
  webmap?: WebMapState;
740
781
  services?: import("../types").ServiceState;
741
782
  layers?: import("../types").LayerState;
@@ -755,7 +796,7 @@ export declare const getDisableMapPin: ((state: {
755
796
  */
756
797
  export declare const getSelectedFeatureIndex: ((state: {
757
798
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
758
- ui?: import("../../ui/types").UIStoreType;
799
+ ui?: UIStoreType;
759
800
  webmap?: WebMapState;
760
801
  services?: import("../types").ServiceState;
761
802
  layers?: import("../types").LayerState;
@@ -775,7 +816,27 @@ export declare const getSelectedFeatureIndex: ((state: {
775
816
  */
776
817
  export declare const getActiveMapPresetId: ((state: {
777
818
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
778
- ui?: import("../../ui/types").UIStoreType;
819
+ ui?: UIStoreType;
820
+ webmap?: WebMapState;
821
+ services?: import("../types").ServiceState;
822
+ layers?: import("../types").LayerState;
823
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
824
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
825
+ clearCache: () => void;
826
+ }> & {
827
+ clearCache: () => void;
828
+ };
829
+ /**
830
+ * Returns the legend id
831
+ *
832
+ * Example getLegendId(store, mapId);
833
+ * @param {object} store store: object - store object
834
+ * @param {string} mapId mapId: string - Id of the map
835
+ * @returns {boolean} returnType: id or undefined
836
+ */
837
+ export declare const getLegendId: ((state: {
838
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
839
+ ui?: UIStoreType;
779
840
  webmap?: WebMapState;
780
841
  services?: import("../types").ServiceState;
781
842
  layers?: import("../types").LayerState;
@@ -795,12 +856,12 @@ export declare const getActiveMapPresetId: ((state: {
795
856
  */
796
857
  export declare const getMapPreset: ((state: {
797
858
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
798
- ui?: import("../../ui/types").UIStoreType;
859
+ ui?: UIStoreType;
799
860
  webmap?: WebMapState;
800
861
  services?: import("../types").ServiceState;
801
862
  layers?: import("../types").LayerState;
802
863
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
803
- }, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: {}, args_4: string, args_5: string, args_6: boolean, args_7: boolean, args_8: boolean) => MapPreset) & {
864
+ }, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: {}, args_4: string, args_5: string, args_6: boolean, args_7: boolean, args_8: boolean, args_9: boolean, args_10: boolean, args_11: number, args_12: number, args_13: boolean, args_14: string, args_15: UIStoreType) => MapPreset) & {
804
865
  clearCache: () => void;
805
866
  }> & {
806
867
  clearCache: () => void;
@@ -815,7 +876,7 @@ export declare const getMapPreset: ((state: {
815
876
  */
816
877
  export declare const getIsMapPresetLoading: ((state: {
817
878
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
818
- ui?: import("../../ui/types").UIStoreType;
879
+ ui?: UIStoreType;
819
880
  webmap?: WebMapState;
820
881
  services?: import("../types").ServiceState;
821
882
  layers?: import("../types").LayerState;
@@ -835,7 +896,7 @@ export declare const getIsMapPresetLoading: ((state: {
835
896
  */
836
897
  export declare const getHasMapPresetChanges: ((state: {
837
898
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
838
- ui?: import("../../ui/types").UIStoreType;
899
+ ui?: UIStoreType;
839
900
  webmap?: WebMapState;
840
901
  services?: import("../types").ServiceState;
841
902
  layers?: import("../types").LayerState;
@@ -855,7 +916,7 @@ export declare const getHasMapPresetChanges: ((state: {
855
916
  */
856
917
  export declare const getMapPresetError: ((state: {
857
918
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
858
- ui?: import("../../ui/types").UIStoreType;
919
+ ui?: UIStoreType;
859
920
  webmap?: WebMapState;
860
921
  services?: import("../types").ServiceState;
861
922
  layers?: import("../types").LayerState;
@@ -34,13 +34,16 @@ export interface WebMap {
34
34
  isTimestepAuto?: boolean;
35
35
  isTimeSliderHoverOn?: boolean;
36
36
  isTimeSliderVisible?: boolean;
37
+ shouldShowZoomControls?: boolean;
37
38
  mapPinLocation?: MapLocation;
38
39
  disableMapPin?: boolean;
40
+ displayMapPin?: boolean;
39
41
  selectedFeatureIndex?: number;
40
42
  activeMapPresetId?: string;
41
43
  isMapPresetLoading?: boolean;
42
44
  hasMapPresetChanges?: boolean;
43
45
  mapPresetError?: string;
46
+ legendId?: string;
44
47
  }
45
48
  export interface WebMapState {
46
49
  byId: Record<string, WebMap>;
@@ -85,11 +88,12 @@ export interface MapPreset {
85
88
  };
86
89
  shouldAnimate?: boolean;
87
90
  shouldAutoUpdate?: boolean;
88
- toggleTimestepAuto?: boolean;
89
- animationPayload?: AnimationPayloadType;
90
- shouldShowZoomControls?: boolean;
91
91
  showTimeSlider?: boolean;
92
92
  displayMapPin?: boolean;
93
+ shouldShowZoomControls?: boolean;
94
+ toggleTimestepAuto?: boolean;
95
+ animationPayload?: AnimationPayloadType;
96
+ shouldShowLegend?: boolean;
93
97
  }
94
98
  export interface MapPresetInitialProps {
95
99
  mapPreset: MapPreset;
@@ -149,10 +153,12 @@ export interface SetTimeSliderScalePayload {
149
153
  export interface SetTimeStepPayload {
150
154
  mapId: string;
151
155
  timeStep: number;
156
+ origin?: MapActionOrigin;
152
157
  }
153
158
  export interface SetAnimationDelayPayload {
154
159
  mapId: string;
155
160
  animationDelay: number;
161
+ origin?: MapActionOrigin;
156
162
  }
157
163
  export interface SetAnimationStartTimePayload {
158
164
  mapId: string;
@@ -192,6 +198,10 @@ export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
192
198
  mapId: string;
193
199
  timeSliderDataScaleToSecondsPerPx: number;
194
200
  }
201
+ export interface ToggleZoomControlsPayload {
202
+ mapId: string;
203
+ shouldShowZoomControls: boolean;
204
+ }
195
205
  export interface MapPinLocationPayload {
196
206
  mapId: string;
197
207
  mapPinLocation: MapLocation;
@@ -200,6 +210,10 @@ export interface DisableMapPinPayload {
200
210
  mapId: string;
201
211
  disableMapPin: boolean;
202
212
  }
213
+ export interface ToggleMapPinIsVisiblePayload {
214
+ mapId: string;
215
+ displayMapPin: boolean;
216
+ }
203
217
  export interface SetSelectedFeaturePayload {
204
218
  mapId: string;
205
219
  selectedFeatureIndex: number;