@opengeoweb/core 2.1.1 → 2.1.2

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.
Files changed (75) hide show
  1. package/core.esm.js +965 -493
  2. package/core.umd.js +951 -419
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -0
  4. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +1 -0
  5. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +1 -0
  6. package/lib/components/CustomSwitch/CustomSwitch.d.ts +3 -0
  7. package/lib/components/CustomSwitch/CustomSwitch.spec.d.ts +1 -0
  8. package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +3 -0
  9. package/lib/components/CustomSwitch/index.d.ts +1 -0
  10. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +4 -5
  11. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +0 -1
  12. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +5 -5
  13. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +0 -1
  14. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.d.ts +3 -0
  15. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.spec.d.ts +1 -0
  16. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.stories.d.ts +7 -0
  17. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +11 -0
  18. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.spec.d.ts +1 -0
  19. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +3 -0
  20. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.stories.d.ts +7 -0
  21. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +10 -0
  22. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.spec.d.ts +1 -0
  23. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/mockServices.d.ts +42 -0
  24. package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +7 -7
  25. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +3 -0
  26. package/lib/components/LayerManager/LayerSelect/LayerSelectStories.stories.d.ts +6 -0
  27. package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +3 -0
  28. package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.spec.d.ts +1 -0
  29. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +8 -0
  30. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.spec.d.ts +1 -0
  31. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +8 -0
  32. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.spec.d.ts +1 -0
  33. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +6 -0
  34. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.spec.d.ts +1 -0
  35. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +3 -0
  36. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +1 -0
  37. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +7 -0
  38. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +0 -1
  39. package/lib/components/MapView/{MapView.MapCursor.stories.d.ts → MapView.MapPin.stories.d.ts} +1 -1
  40. package/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +5 -0
  41. package/lib/components/MapView/MapView.stories.d.ts +2 -1
  42. package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +5 -0
  43. package/lib/components/MapView/MapViewConnect.d.ts +5 -3
  44. package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
  45. package/lib/components/ReactMapView/ReactMapView.d.ts +5 -1
  46. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  47. package/lib/components/ReactMapView/types.d.ts +6 -11
  48. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +2 -3
  49. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +4 -4
  50. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +3 -1
  51. package/lib/store/coreModuleConfig.d.ts +1 -1
  52. package/lib/store/layerSelect/actions.d.ts +8 -0
  53. package/lib/store/layerSelect/config.d.ts +4 -0
  54. package/lib/store/layerSelect/constants.d.ts +1 -0
  55. package/lib/store/layerSelect/reducer.d.ts +3 -0
  56. package/lib/store/layerSelect/reducer.spec.d.ts +1 -0
  57. package/lib/store/layerSelect/selectors.d.ts +2 -0
  58. package/lib/store/layerSelect/selectors.spec.d.ts +1 -0
  59. package/lib/store/layerSelect/types.d.ts +19 -0
  60. package/lib/store/mapStore/layers/actions.d.ts +8 -1
  61. package/lib/store/mapStore/layers/constants.d.ts +1 -0
  62. package/lib/store/mapStore/layers/selectors.d.ts +18 -0
  63. package/lib/store/mapStore/layers/types.d.ts +21 -10
  64. package/lib/store/mapStore/map/actions.d.ts +11 -4
  65. package/lib/store/mapStore/map/constants.d.ts +1 -0
  66. package/lib/store/mapStore/map/selectors.d.ts +14 -6
  67. package/lib/store/mapStore/map/types.d.ts +19 -7
  68. package/lib/store/mapStore/service/actions.d.ts +1 -8
  69. package/lib/store/mapStore/service/constants.d.ts +0 -1
  70. package/lib/store/mapStore/service/selectors.d.ts +8 -0
  71. package/lib/store/mapStore/service/types.d.ts +8 -17
  72. package/lib/store/mapStore/utils/helpers.d.ts +4 -3
  73. package/lib/types/types.d.ts +2 -1
  74. package/lib/utils/defaultTestSettings.d.ts +45 -187
  75. package/package.json +6 -6
@@ -58,6 +58,15 @@ export declare const getBaseLayers: import("reselect").OutputSelector<AppStore,
58
58
  * @returns {array} returnType: array - an array of all overLayers containing layer information (service, name, style, enabled etc.)
59
59
  */
60
60
  export declare const getOverLayers: import("reselect").OutputSelector<AppStore, Layer[], (res: Layer[]) => Layer[]>;
61
+ /**
62
+ * Gets styles of the passed layer
63
+ *
64
+ * Example: layerStyles = getLayerStyles(store, 'layerId_1')
65
+ * @param {object} store store: object - object from which the layers state will be extracted
66
+ * @param {string} layerId layerId: string - Id of the layer
67
+ * @returns {array} returnType: Style[] - array containing layer styles
68
+ */
69
+ export declare const getLayerStyles: import("reselect").OutputParametricSelector<AppStore, string, import("@opengeoweb/webmap").Style[], (res: Layer) => import("@opengeoweb/webmap").Style[]>;
61
70
  /**
62
71
  * Gets dimensions of the passed layer
63
72
  *
@@ -131,6 +140,15 @@ export declare const getLayerName: import("reselect").OutputParametricSelector<A
131
140
  * @returns {string} returnType: string - layer service
132
141
  */
133
142
  export declare const getLayerService: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
143
+ /**
144
+ * Gets selected style of the passed layer
145
+ *
146
+ * Example: layerStyle = getLayerStyle(store, 'layerId_1')
147
+ * @param {object} store store: object - object from which the layers state will be extracted
148
+ * @param {string} layerId layerId: string - Id of the layer
149
+ * @returns {string} returnType: string - style that is currently selected
150
+ */
151
+ export declare const getLayerStyle: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
134
152
  /**
135
153
  * Gets layer status
136
154
  *
@@ -1,6 +1,7 @@
1
1
  import { Action } from 'redux';
2
- import { WEBMAP_LAYER_CHANGE_OPACITY, WEBMAP_LAYER_CHANGE_NAME, WEBMAP_LAYER_CHANGE_STYLE, WEBMAP_LAYER_CHANGE_DIMENSION, WEBMAP_LAYER_CHANGE_ENABLED, WEBMAP_LAYER_DELETE, WEBMAP_ADD_LAYER, WEBMAP_SET_LAYERS, WEBMAP_SET_BASELAYERS, WEBMAP_ADD_BASELAYER, WEBMAP_BASELAYER_DELETE, WEBMAP_LAYER_ERROR, WEBMAP_ADD_AVAILABLE_BASELAYER, WEBMAP_ADD_AVAILABLE_BASELAYERS, WEBMAP_LAYER_SET_DIMENSIONS } from './constants';
2
+ import { Style } from '@opengeoweb/webmap';
3
3
  import { Dimension } from '../map/types';
4
+ import { WEBMAP_LAYER_CHANGE_OPACITY, WEBMAP_LAYER_CHANGE_NAME, WEBMAP_LAYER_CHANGE_STYLE, WEBMAP_LAYER_CHANGE_DIMENSION, WEBMAP_LAYER_CHANGE_ENABLED, WEBMAP_LAYER_DELETE, WEBMAP_ADD_LAYER, WEBMAP_SET_LAYERS, WEBMAP_SET_BASELAYERS, WEBMAP_ADD_BASELAYER, WEBMAP_BASELAYER_DELETE, WEBMAP_LAYER_ERROR, WEBMAP_ADD_AVAILABLE_BASELAYER, WEBMAP_ADD_AVAILABLE_BASELAYERS, WEBMAP_LAYER_SET_DIMENSIONS, WEBMAP_LAYER_SET_STYLES } from './constants';
4
5
  export interface WMJSDimension {
5
6
  getFirstValue(): string;
6
7
  getLastValue(): string;
@@ -30,10 +31,12 @@ export interface Layer {
30
31
  mapId?: string;
31
32
  service?: string;
32
33
  name?: string;
34
+ title?: string;
33
35
  format?: string;
34
36
  enabled?: boolean;
35
37
  style?: string;
36
38
  dimensions?: Dimension[];
39
+ styles?: Style[];
37
40
  opacity?: number;
38
41
  headers?: Headers[];
39
42
  type?: string;
@@ -72,6 +75,22 @@ export interface SetBaseLayers extends Action {
72
75
  type: typeof WEBMAP_SET_BASELAYERS;
73
76
  payload: SetBaseLayersPayload;
74
77
  }
78
+ export interface SetLayerDimensionsPayload extends LayerPayload {
79
+ origin: string;
80
+ dimensions: Dimension[];
81
+ }
82
+ export interface SetLayerDimensions extends Action {
83
+ type: typeof WEBMAP_LAYER_SET_DIMENSIONS;
84
+ payload: SetLayerDimensionsPayload;
85
+ }
86
+ export interface SetLayerStylesPayload extends LayerPayload {
87
+ origin: string;
88
+ styles: Style[];
89
+ }
90
+ export interface SetLayerStyles extends Action {
91
+ type: typeof WEBMAP_LAYER_SET_STYLES;
92
+ payload: SetLayerStylesPayload;
93
+ }
75
94
  export interface SetLayerOpacityPayload extends LayerPayload {
76
95
  opacity: number;
77
96
  }
@@ -98,18 +117,10 @@ export interface SetLayerDimensionPayload extends LayerPayload {
98
117
  dimension: Dimension;
99
118
  service?: string;
100
119
  }
101
- export interface SetLayerDimensionsPayload extends LayerPayload {
102
- origin: string;
103
- dimensions: Dimension[];
104
- }
105
120
  export interface SetLayerDimension extends Action {
106
121
  type: typeof WEBMAP_LAYER_CHANGE_DIMENSION;
107
122
  payload: SetLayerDimensionPayload;
108
123
  }
109
- export interface SetLayerDimensions extends Action {
110
- type: typeof WEBMAP_LAYER_SET_DIMENSIONS;
111
- payload: SetLayerDimensionsPayload;
112
- }
113
124
  export interface SetLayerStylePayload extends LayerPayload {
114
125
  style: string;
115
126
  }
@@ -172,4 +183,4 @@ export interface ErrorLayer extends Action {
172
183
  type: typeof WEBMAP_LAYER_ERROR;
173
184
  payload: ErrorLayerPayload;
174
185
  }
175
- export declare type LayerActions = SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerDimensions | SetLayerName | SetLayerStyle | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers;
186
+ export declare type LayerActions = SetLayerDimensions | SetLayerStyles | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers;
@@ -1,4 +1,4 @@
1
- import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate, ToggleLoopPayload, ToggleLoop, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationDelayPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, ToggleTimestepAutoPayload, ToggleTimestepAuto, ToggleTimeSliderHoverPayload, ToggleTimeSliderHover, SetTimeSliderCenterTimePayload, SetTimeSliderSecondsPerPxPayload, SetTimeSliderDataScaleToSecondsPerPxPayload } from './types';
1
+ import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate, ToggleLoopPayload, ToggleLoop, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationDelayPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, ToggleTimestepAutoPayload, ToggleTimestepAuto, ToggleTimeSliderHoverPayload, ToggleTimeSliderHover, SetTimeSliderCenterTimePayload, SetTimeSliderSecondsPerPxPayload, SetTimeSliderDataScaleToSecondsPerPxPayload, MapPinLocationPayload } from './types';
2
2
  /**
3
3
  * Registers the map in the store and creates the map state
4
4
  *
@@ -39,7 +39,7 @@ export declare const mapUpdateAllMapDimensions: (payload: UpdateAllMapDimensions
39
39
  * Starts the animation for a map.
40
40
  *
41
41
  * Example: mapStartAnimation({mapId:'mapId1', start: 'someISOTime', end: 'someISOTime', interval: 15})
42
- * @param {object} payload Object with mapId: string, start: Moment, end: Moment and interval: number (in minutes), timeList?: TimeListType[]
42
+ * @param {object} payload Object with mapId: string, start: string, end: string and interval: number (in minutes), timeList?: TimeListType[]
43
43
  */
44
44
  export declare const mapStartAnimation: (payload: SetMapAnimationStartPayload) => MapActions;
45
45
  /**
@@ -102,14 +102,14 @@ export declare const setAnimationDelay: (payload: SetAnimationDelayPayload) => M
102
102
  *Sets the animation start time with id for a map
103
103
  *
104
104
  * Example: setAnimationStartTime({ mapId: 'mapId1'})
105
- * @param {object} payload object with mapId: string, animationStartTime: Moment
105
+ * @param {object} payload object with mapId: string, animationStartTime: string
106
106
  */
107
107
  export declare const setAnimationStartTime: (payload: SetAnimationStartTimePayload) => MapActions;
108
108
  /**
109
109
  *Sets the animation end time with id for a map
110
110
  *
111
111
  * Example: setAnimationEndTime({ mapId: 'mapId1'})
112
- * @param {object} payload object with mapId: string, animationEndTime: Moment
112
+ * @param {object} payload object with mapId: string, animationEndTime: string
113
113
  */
114
114
  export declare const setAnimationEndTime: (payload: SetAnimationEndTimePayload) => MapActions;
115
115
  /**
@@ -147,3 +147,10 @@ export declare const setTimeSliderSecondsPerPx: (payload: SetTimeSliderSecondsPe
147
147
  * @param {object} payload object with mapId: string, timeSliderDataScaleSecondsToPerPx: number
148
148
  */
149
149
  export declare const setTimeSliderDataScaleToSecondsPerPx: (payload: SetTimeSliderDataScaleToSecondsPerPxPayload) => MapActions;
150
+ /**
151
+ * Sets current curser location for a map to display the point marker
152
+ *
153
+ * Example: setMapPinLocation({ mapId: 'mapId1', mapPinLocation: {lon: 1.2, lat: 3.4} })
154
+ * @param {object} payload object with mapId: string, mapPinLocation: MapLocation
155
+ */
156
+ export declare const setMapPinLocation: (payload: MapPinLocationPayload) => MapActions;
@@ -19,3 +19,4 @@ export declare const WEBMAP_TOGGLE_TIME_SLIDER_HOVER = "WEBMAP_TOGGLE_TIME_SLIDE
19
19
  export declare const WEBMAP_SET_TIME_SLIDER_CENTER_TIME = "WEBMAP_SET_TIME_SLIDER_CENTER_TIME";
20
20
  export declare const WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX = "WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX";
21
21
  export declare const WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX = "WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX";
22
+ export declare const WEBMAP_SET_PIN = "WEBMAP_SET_PIN";
@@ -1,4 +1,3 @@
1
- import moment from 'moment';
2
1
  import { Scale, WebMap, WebMapState } from './types';
3
2
  import { AppStore } from '../../../types/types';
4
3
  import { Layer } from '../types';
@@ -149,18 +148,18 @@ export declare const isAnimating: import("reselect").OutputParametricSelector<Ap
149
148
  * Example: endTimeOfAnimetion = getAnimationStartTime(store, 'mapid_1')
150
149
  * @param {object} store store: object - store object
151
150
  * @param {string} mapId mapId: string - Id of the map
152
- * @returns {moment} returnType: Moment
151
+ * @returns {string} returnType: string
153
152
  */
154
- export declare const getAnimationStartTime: import("reselect").OutputParametricSelector<AppStore, string, moment.Moment, (res: WebMap) => moment.Moment>;
153
+ export declare const getAnimationStartTime: import("reselect").OutputParametricSelector<AppStore, string, string, (res: WebMap) => string>;
155
154
  /**
156
155
  * Gets end time of animation
157
156
  *
158
- * Example: endTimeOfAnimetion = getAnimationEndTime(store, 'mapid_1')
157
+ * Example: endTimeOfAnimation = getAnimationEndTime(store, 'mapid_1')
159
158
  * @param {object} store store: object - store object
160
159
  * @param {string} mapId mapId: string - Id of the map
161
- * @returns {moment} returnType: Moment
160
+ * @returns {string} returnType: string
162
161
  */
163
- export declare const getAnimationEndTime: import("reselect").OutputParametricSelector<AppStore, string, moment.Moment, (res: WebMap) => moment.Moment>;
162
+ export declare const getAnimationEndTime: import("reselect").OutputParametricSelector<AppStore, string, string, (res: WebMap) => string>;
164
163
  /**
165
164
  * Returns map is auto updating
166
165
  *
@@ -316,3 +315,12 @@ export declare const getLayerByLayerIndex: import("reselect").OutputParametricSe
316
315
  * @returns {array} returnType: array of dimension names
317
316
  */
318
317
  export declare const getAllUniqueDimensions: import("reselect").OutputSelector<AppStore, string[], (res1: string[], res2: AppStore) => string[]>;
318
+ /**
319
+ * Returns the mapPinLocation for the current map
320
+ *
321
+ * Example getAllUniqueDimensions(store);
322
+ * @param {object} store store: object - store object
323
+ * @param {string} mapId mapId: string - Id of the map
324
+ * @returns {object} returnType: latitude and longitude of pin
325
+ */
326
+ export declare const getPinLocation: import("reselect").OutputParametricSelector<AppStore, string, {}, (res: WebMap) => {}>;
@@ -1,7 +1,6 @@
1
1
  import { DateInterval } from '@opengeoweb/webmap';
2
- import { Moment } from 'moment';
3
2
  import { Action } from 'redux';
4
- import { WEBMAP_LAYER_MOVE, WEBMAP_SET_BBOX, WEBMAP_MAP_UPDATE_ALL_DIMENSIONS, WEBMAP_MAP_CHANGE_DIMENSION, WEBMAP_START_ANIMATION, WEBMAP_STOP_ANIMATION, WEBMAP_REGISTER_MAP, WEBMAP_UNREGISTER_MAP, WEBMAP_SET_ACTIVELAYERID, WEBMAP_TOGGLE_AUTO_UPDATE, WEBMAP_TOGGLE_LOOP, WEBMAP_SET_TIME_SLIDER_SCALE, WEBMAP_SET_TIME_STEP, WEBMAP_SET_ANIMATION_DELAY, WEBMAP_SET_ANIMATION_START_TIME, WEBMAP_SET_ANIMATION_END_TIME, WEBMAP_TOGGLE_TIMESTEP_AUTO, WEBMAP_TOGGLE_TIME_SLIDER_HOVER, WEBMAP_SET_TIME_SLIDER_CENTER_TIME, WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX, WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX } from './constants';
3
+ import { WEBMAP_LAYER_MOVE, WEBMAP_SET_BBOX, WEBMAP_MAP_UPDATE_ALL_DIMENSIONS, WEBMAP_MAP_CHANGE_DIMENSION, WEBMAP_START_ANIMATION, WEBMAP_STOP_ANIMATION, WEBMAP_REGISTER_MAP, WEBMAP_UNREGISTER_MAP, WEBMAP_SET_ACTIVELAYERID, WEBMAP_TOGGLE_AUTO_UPDATE, WEBMAP_TOGGLE_LOOP, WEBMAP_SET_TIME_SLIDER_SCALE, WEBMAP_SET_TIME_STEP, WEBMAP_SET_ANIMATION_DELAY, WEBMAP_SET_ANIMATION_START_TIME, WEBMAP_SET_ANIMATION_END_TIME, WEBMAP_TOGGLE_TIMESTEP_AUTO, WEBMAP_TOGGLE_TIME_SLIDER_HOVER, WEBMAP_SET_TIME_SLIDER_CENTER_TIME, WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX, WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX, WEBMAP_SET_PIN } from './constants';
5
4
  export interface Dimension {
6
5
  name?: string;
7
6
  units?: string;
@@ -36,11 +35,16 @@ export interface WebMap {
36
35
  timeSliderDataScaleToSecondsPerPx?: number;
37
36
  isTimestepAuto?: boolean;
38
37
  isTimeSliderHoverOn?: boolean;
38
+ mapPinLocation?: MapLocation;
39
39
  }
40
40
  export interface WebMapState {
41
41
  byId: Record<string, WebMap>;
42
42
  allIds: string[];
43
43
  }
44
+ export interface MapLocation {
45
+ lat: number;
46
+ lon: number;
47
+ }
44
48
  export interface Bbox {
45
49
  left: number;
46
50
  right: number;
@@ -109,8 +113,8 @@ export declare type TimeListType = {
109
113
  };
110
114
  export interface SetMapAnimationStartPayload {
111
115
  mapId: string;
112
- start?: Moment;
113
- end?: Moment;
116
+ start?: string;
117
+ end?: string;
114
118
  interval?: number;
115
119
  timeList?: TimeListType[];
116
120
  }
@@ -183,7 +187,7 @@ export interface SetAnimationStartTime extends Action {
183
187
  }
184
188
  export interface SetAnimationStartTimePayload {
185
189
  mapId: string;
186
- animationStartTime: Moment;
190
+ animationStartTime: string;
187
191
  }
188
192
  export interface SetAnimationEndTime extends Action {
189
193
  type: typeof WEBMAP_SET_ANIMATION_END_TIME;
@@ -191,7 +195,7 @@ export interface SetAnimationEndTime extends Action {
191
195
  }
192
196
  export interface SetAnimationEndTimePayload {
193
197
  mapId: string;
194
- animationEndTime: Moment;
198
+ animationEndTime: string;
195
199
  }
196
200
  export interface ToggleTimestepAutoPayload {
197
201
  mapId: string;
@@ -233,4 +237,12 @@ export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
233
237
  mapId: string;
234
238
  timeSliderDataScaleToSecondsPerPx: number;
235
239
  }
236
- export declare type MapActions = RegisterMap | UnregisterMap | SetMapDimension | UpdateAllMapDimensions | SetMapAnimationStart | SetMapAnimationStop | SetBbox | MoveLayer | SetActiveLayerId | ToggleAutoUpdate | ToggleLoop | SetTimeStep | SetTimeSliderScale | SetAnimationDelay | SetAnimationStartTime | SetAnimationEndTime | ToggleTimestepAuto | ToggleTimeSliderHover | SetTimeSliderCenterTime | SetTimeSliderSecondsPerPx | SetTimeSliderDataScaleToSecondsPerPx;
240
+ export interface SetMapPinLocation extends Action {
241
+ type: typeof WEBMAP_SET_PIN;
242
+ payload: MapPinLocationPayload;
243
+ }
244
+ export interface MapPinLocationPayload {
245
+ mapId: string;
246
+ mapPinLocation: MapLocation;
247
+ }
248
+ export declare type MapActions = RegisterMap | UnregisterMap | SetMapDimension | UpdateAllMapDimensions | SetMapAnimationStart | SetMapAnimationStop | SetBbox | MoveLayer | SetActiveLayerId | ToggleAutoUpdate | ToggleLoop | SetTimeStep | SetTimeSliderScale | SetAnimationDelay | SetAnimationStartTime | SetAnimationEndTime | ToggleTimestepAuto | ToggleTimeSliderHover | SetTimeSliderCenterTime | SetTimeSliderSecondsPerPx | SetTimeSliderDataScaleToSecondsPerPx | SetMapPinLocation;
@@ -1,4 +1,4 @@
1
- import { ServiceActions, SetLayersForServicePayload, SetLayerStylesForServicePayload } from './types';
1
+ import { ServiceActions, SetLayersForServicePayload } from './types';
2
2
  /**
3
3
  * Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
4
4
  *
@@ -6,10 +6,3 @@ import { ServiceActions, SetLayersForServicePayload, SetLayerStylesForServicePay
6
6
  * @param {object} payload consisting of service: string, layers: ServiceLayer[]
7
7
  */
8
8
  export declare const serviceSetLayers: (payload: SetLayersForServicePayload) => ServiceActions;
9
- /**
10
- * Action layerSetStyles is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
11
- *
12
- * Example: layerSetStyles({service: someService, name: 'layerName', styles: styleArray})
13
- * @param {object} payload consisting of service: string, name: string, styles: Style[]
14
- */
15
- export declare const layerSetStyles: (payload: SetLayerStylesForServicePayload) => ServiceActions;
@@ -1,2 +1 @@
1
1
  export declare const MAP_SERVICES_SET_LAYERS = "MAP_SERVICES_SET_LAYERS";
2
- export declare const MAP_SERVICES_LAYER_SET_STYLES = "MAP_SERVICES_LAYER_SET_STYLES";
@@ -24,3 +24,11 @@ export declare const getServices: import("reselect").OutputSelector<AppStore, im
24
24
  * @returns {array} returnType: ServiceLayer[]
25
25
  */
26
26
  export declare const getServiceLayersByName: (store: AppStore, serviceName: string) => ServiceLayer[];
27
+ /**
28
+ * Gets all keywords from services
29
+ *
30
+ * const keywords = useSelector((store) => mapSelectors.getKeywords(store));
31
+ * @param {object} store store: object - Store object
32
+ * @returns {array} returnType: Keyword[]
33
+ */
34
+ export declare const getKeywords: import("reselect").OutputSelector<AppStore, string[], (res: ServiceState) => string[]>;
@@ -1,15 +1,13 @@
1
- import { Style } from '@opengeoweb/webmap';
2
1
  import { Action } from 'redux';
3
- import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_LAYER_SET_STYLES } from './constants';
4
- export interface ServicesLayerStyles {
5
- styles: Record<string, unknown>[];
6
- }
2
+ import { MAP_SERVICES_SET_LAYERS } from './constants';
7
3
  export interface Services {
8
4
  [key: string]: Service;
9
5
  }
10
6
  export interface Service {
7
+ id?: string;
8
+ name?: string;
9
+ service?: string;
11
10
  layers?: ServiceLayer[];
12
- layer?: Record<string, ServicesLayerStyles>;
13
11
  }
14
12
  /**
15
13
  * Used in the services object of webmap to keep a list of available layers in the service
@@ -19,12 +17,15 @@ export interface ServiceLayer {
19
17
  text: string;
20
18
  leaf: boolean;
21
19
  path: string;
20
+ keywords?: string[];
22
21
  }
23
22
  export interface ServiceState {
24
23
  byId: Services;
25
24
  allIds: string[];
26
25
  }
27
26
  export interface SetLayersForServicePayload {
27
+ id: string;
28
+ name: string;
28
29
  service: string;
29
30
  layers: ServiceLayer[];
30
31
  }
@@ -32,15 +33,5 @@ interface SetLayersForService extends Action {
32
33
  type: typeof MAP_SERVICES_SET_LAYERS;
33
34
  payload: SetLayersForServicePayload;
34
35
  }
35
- export interface SetLayerStylesForServicePayload {
36
- origin?: string;
37
- service: string;
38
- name: string;
39
- styles: Style[];
40
- }
41
- interface SetLayerStylesForService extends Action {
42
- type: typeof MAP_SERVICES_LAYER_SET_STYLES;
43
- payload: SetLayerStylesForServicePayload;
44
- }
45
- export declare type ServiceActions = SetLayersForService | SetLayerStylesForService;
36
+ export declare type ServiceActions = SetLayersForService;
46
37
  export {};
@@ -1,5 +1,6 @@
1
1
  import { WMJSMap, WMLayer } from '@opengeoweb/webmap';
2
2
  import { Dimension, WMJSDimension } from '../types';
3
+ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
3
4
  export declare const generateLayerId: () => string;
4
5
  export declare const generateMapId: () => string;
5
6
  export declare const generateTimesliderId: () => string;
@@ -27,11 +28,11 @@ export declare const registerWMJSMap: (wmjsMap: WMJSMap, wmjsMapId: string) => v
27
28
  */
28
29
  export declare const getWMJSMapById: (wmjsMapId: string) => WMJSMap;
29
30
  /**
30
- * Returns the WMJSDimension object for given layerId and Dimension
31
+ * Returns the WMJSDimension object for given layerId and dimension name
31
32
  * @param layerId The layerId
32
- * @param dimension The dimension to lookup
33
+ * @param dimensionName The dimension to lookup
33
34
  */
34
- export declare const getWMJSDimensionForLayerAndDimension: (layerId: string, dimension: Dimension) => WMJSDimension;
35
+ export declare const getWMJSDimensionForLayerAndDimension: (layerId: string, dimensionName: string) => WMJSDimension;
35
36
  /**
36
37
  * Returns the list of dimensions without the time dimension
37
38
  * @param dimensions Dimension[]
@@ -2,5 +2,6 @@ import { WebMapStateModuleState } from '../store/mapStore/types';
2
2
  import { AdvancedLayerStoreModuleState } from '../store/advancedLayerStore/types';
3
3
  import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
4
4
  import { UIModuleState } from '../store/ui/types';
5
- export interface AppStore extends AdvancedLayerStoreModuleState, SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState {
5
+ import { LayerSelectModuleState } from '../store/layerSelect/types';
6
+ export interface AppStore extends AdvancedLayerStoreModuleState, SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
6
7
  }