@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
@@ -13,6 +13,7 @@ export interface MapPreset {
13
13
  shouldAutoUpdate?: boolean;
14
14
  shouldAnimate?: boolean;
15
15
  animationPayload?: AnimationPayloadType;
16
+ displayMapPin?: boolean;
16
17
  }
17
18
  interface InitialMultiMapProps {
18
19
  mapPreset: MapPreset[];
@@ -31,5 +31,6 @@ export interface ConfigurableConnectedMapProps {
31
31
  shouldAnimate?: boolean;
32
32
  animationPayload?: AnimationPayloadType;
33
33
  shouldShowZoomControls?: boolean;
34
+ displayMapPin?: boolean;
34
35
  }
35
36
  export declare const ConfigurableConnectedMap: React.FC<ConfigurableConnectedMapProps>;
@@ -13,5 +13,6 @@ export interface ConfigurableMapWithSliderConnectProps {
13
13
  srs?: string;
14
14
  shouldShowZoomControls?: boolean;
15
15
  animationPayload?: AnimationPayloadType;
16
+ displayMapPin?: boolean;
16
17
  }
17
18
  export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const CustomSwitch: import("react").ComponentType<Pick<import("@material-ui/core").SwitchProps, "color" | "translate" | "hidden" | "size" | "style" | "icon" | "disabled" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "form" | "innerRef" | "key" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "readOnly" | "required" | "action" | "checked" | "disableFocusRipple" | "disableRipple" | "buttonRef" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputProps" | "inputRef" | "checkedIcon" | "edge"> & import("@material-ui/core").StyledComponentProps<"track" | "checked" | "switchBase">>;
3
+ export default CustomSwitch;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const CustomSwitchLightTheme: () => React.ReactElement;
3
+ export declare const CustomSwitchDarkTheme: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export { default as CustomSwitch } from './CustomSwitch';
@@ -1,10 +1,9 @@
1
1
  import * as React from 'react';
2
- import { Dimension, Layer } from '../../../../../store/mapStore/types';
2
+ import { Dimension } from '../../../../../store/mapStore/types';
3
3
  interface DimensionSelectProps {
4
- layer: Layer;
5
- mapId: string;
6
- availableLayerDimensions?: Dimension[];
7
- onLayerChangeDimension: (mapId: string, layerId: string, dimensionName: string, dimensionValue: string) => void;
4
+ layerId: string;
5
+ layerDimensions?: Dimension[];
6
+ onLayerChangeDimension: (dimensionName: string, dimensionValue: string) => void;
8
7
  isEnabled?: boolean;
9
8
  }
10
9
  declare const DimensionSelect: React.FC<DimensionSelectProps>;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface DimensionSelectProps {
3
3
  layerId: string;
4
- mapId: string;
5
4
  }
6
5
  declare const DimensionSelectConnect: React.FC<DimensionSelectProps>;
7
6
  export default DimensionSelectConnect;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
- import { Layer, Service } from '../../../../../store/mapStore/types';
2
+ import { Style } from '@opengeoweb/webmap';
3
3
  interface RenderStylesProps {
4
- layer: Layer;
5
- services: Service;
6
- mapId: string;
7
- onChangeLayerStyle: (mapId: string, layerId: string, style: string) => void;
4
+ layerStyles: Style[];
5
+ layerName: string;
6
+ currentLayerStyle: string;
7
+ onChangeLayerStyle: (style: string) => void;
8
8
  isEnabled?: boolean;
9
9
  }
10
10
  declare const RenderStyles: React.FC<RenderStylesProps>;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  interface RenderStylesProps {
3
- mapId: string;
4
3
  layerId: string;
5
4
  }
6
5
  declare const RenderStylesConnect: React.FC<RenderStylesProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const KeywordFilterButton: React.FC;
3
+ export default KeywordFilterButton;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const KeywordFilterButtonLight: () => React.ReactElement;
7
+ export declare const KeywordFilterButtonDark: () => React.ReactElement;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ interface KeywordObject {
3
+ index: number;
4
+ id: string;
5
+ isSelected: boolean;
6
+ }
7
+ interface KeywordFilterResultsProps {
8
+ arrayOfKeywordObjects: KeywordObject[];
9
+ }
10
+ declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
11
+ export default KeywordFilterResults;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const KeywordFilterResultsConnect: React.FC;
3
+ export default KeywordFilterResultsConnect;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const KeywordFilterResultsConnectLight: () => React.ReactElement;
7
+ export declare const KeywordFilterResultsConnectDark: () => React.ReactElement;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ interface FilterListItemProps {
3
+ index: number;
4
+ text: string;
5
+ isSelected: boolean;
6
+ toggleCheckbox: (index: number) => void;
7
+ selectOnlyOne: (index: number) => void;
8
+ }
9
+ declare const FilterListItem: React.FC<FilterListItemProps>;
10
+ export default FilterListItem;
@@ -0,0 +1,42 @@
1
+ export declare const mockServices: {
2
+ services: {
3
+ byId: {
4
+ 'https://public-wms.met.no/verportal/verportal.map?': {
5
+ layers: {
6
+ name: string;
7
+ text: string;
8
+ leaf: boolean;
9
+ path: string;
10
+ keywords: any[];
11
+ }[];
12
+ };
13
+ 'https://geoservices.knmi.nl/wms?dataset=RADAR&': {
14
+ layers: {
15
+ name: string;
16
+ text: string;
17
+ leaf: boolean;
18
+ path: string;
19
+ keywords: any[];
20
+ }[];
21
+ };
22
+ 'https://openwms.fmi.fi/geoserver/wms?': {
23
+ layers: ({
24
+ name: string;
25
+ text: string;
26
+ leaf: boolean;
27
+ path: string;
28
+ keywords: string[];
29
+ abstract: string;
30
+ } | {
31
+ name: string;
32
+ text: string;
33
+ leaf: boolean;
34
+ path: string;
35
+ keywords: string[];
36
+ abstract?: undefined;
37
+ })[];
38
+ };
39
+ };
40
+ allIds: string[];
41
+ };
42
+ };
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- declare const _default: {
3
- title: string;
2
+ export declare const LayerSelectDemoLightTheme: {
3
+ (): React.ReactElement;
4
+ storyName: string;
5
+ };
6
+ export declare const LayerSelectDemoDarkTheme: {
7
+ (): React.ReactElement;
8
+ storyName: string;
4
9
  };
5
- export default _default;
6
- export declare const MapWithLayerSelectDemoLightTheme: React.FC;
7
- export declare const MapWithLayerSelectDemoDarkTheme: React.FC;
8
- export declare const LayerSelectDemoLightTheme: React.FC;
9
- export declare const LayerSelectDemoDarkTheme: React.FC;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const MapWithLayerSelectDemoLightTheme: React.FC;
3
+ export declare const MapWithLayerSelectDemoDarkTheme: React.FC;
@@ -0,0 +1,6 @@
1
+ export * from './LayerSelect.stories';
2
+ export * from './LayerSelectConnect.stories';
3
+ declare const _default: {
4
+ title: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const SearchField: React.FC;
3
+ export default SearchField;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Service } from '../../../../store/mapStore/types';
3
+ interface ServiceChipProps {
4
+ all?: boolean;
5
+ service?: Service;
6
+ }
7
+ declare const ServiceChip: React.FC<ServiceChipProps>;
8
+ export default ServiceChip;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Service } from '../../../../store/mapStore/types';
3
+ interface ServiceListProps {
4
+ layerSelectWidth?: number;
5
+ services: Service[];
6
+ }
7
+ declare const ServiceList: React.FC<ServiceListProps>;
8
+ export default ServiceList;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface ServiceListConnectProps {
3
+ layerSelectWidth?: number;
4
+ }
5
+ declare const ServiceListConnect: React.FC<ServiceListConnectProps>;
6
+ export default ServiceListConnect;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const ServiceOptionsButton: React.FC;
3
+ export default ServiceOptionsButton;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ServiceOptionsButtonLight: () => React.ReactElement;
7
+ export declare const ServiceOptionsButtonDark: () => React.ReactElement;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface ServicePopupProps {
3
3
  servicePopupVariant: 'edit' | 'add' | 'save';
4
- shouldDisableTransition?: boolean;
5
4
  hideBackdrop?: boolean;
6
5
  }
7
6
  export declare const ADD_HEADING = "Add a new service";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const SetMapCursor: {
2
+ export declare const SetMapPin: {
3
3
  (): React.ReactElement;
4
4
  storyName: string;
5
5
  };
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const MapWithShowLayerInfoEnabled: {
3
+ (): React.ReactElement;
4
+ storyName: string;
5
+ };
@@ -1,11 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  export * from './MapView.Error.stories';
3
- export * from './MapView.MapCursor.stories';
3
+ export * from './MapView.MapPin.stories';
4
4
  export * from './MapView.Passive.stories';
5
5
  export * from './MapView.RadarAnimation.stories';
6
6
  export * from './MapView.RadarData.stories';
7
7
  export * from './MapView.SetProjectionBBox.stories';
8
8
  export * from './MapView.SetProjectionBBoxLocalState.stories';
9
+ export * from './MapView.ShowLayerInfo.stories';
9
10
  declare const _default: {
10
11
  title: string;
11
12
  component: import("react").FC<import("./types").MapViewProps>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const SetMapPinAction: {
3
+ (): React.ReactElement;
4
+ storyName: string;
5
+ };
@@ -5,8 +5,10 @@ export interface MapViewConnectProps {
5
5
  controls?: {
6
6
  zoomControls?: boolean;
7
7
  };
8
+ displayMapPin?: boolean;
8
9
  showScaleBar?: boolean;
9
10
  children?: React.ReactNode;
11
+ showLayerInfo?: boolean;
10
12
  }
11
13
  /**
12
14
  * Connected component used to display the map and selected layers.
@@ -16,10 +18,10 @@ export interface MapViewConnectProps {
16
18
  * @param {string} mapId mapId: string - Id of the map
17
19
  * @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
18
20
  * @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
21
+ * @param {boolean} [displayMapPin] **optional** displayMapPin: boolean, toggle the display of pin on click, defaults to false
22
+ * @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
19
23
  * @example
20
- * ```<MapViewConnect mapId={mapId} />```
21
- * @example
22
- * ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} />```
24
+ * ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
23
25
  */
24
26
  declare const MapViewConnect: React.FC<MapViewConnectProps>;
25
27
  export default MapViewConnect;
@@ -8,6 +8,7 @@ export * from './MapViewConnect.LayerChangeEnabledOpacity.stories';
8
8
  export * from './MapViewConnect.SetBaseLayers.stories';
9
9
  export * from './MapViewConnect.ToggleControls.stories';
10
10
  export * from './MapViewConnect.FeatureLayers.stories';
11
+ export * from './MapViewConnect.MapPin.stories';
11
12
  declare const _default: {
12
13
  title: string;
13
14
  component: import("react").FC<import("./MapViewConnect").MapViewConnectProps>;
@@ -18,6 +18,7 @@ export declare const isAMapLayer: (layer: Layer) => boolean;
18
18
  * @param layer The Layer object, or the props from the ReactWMJSLayer
19
19
  */
20
20
  export declare const isAGeoJSONLayer: (layer: Layer) => boolean;
21
+ export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
21
22
  interface ReactMapViewState {
22
23
  adagucInitialised: boolean;
23
24
  }
@@ -50,7 +51,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
50
51
  top: number;
51
52
  };
52
53
  shouldAutoFetch: boolean;
53
- showCursor: boolean;
54
+ displayMapPin: boolean;
54
55
  onMount: () => void;
55
56
  onUnMount: () => void;
56
57
  onMapChangeDimension: () => void;
@@ -66,6 +67,9 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
66
67
  componentDidMount(): void;
67
68
  componentDidUpdate: (prevProps: ReactMapViewProps) => void;
68
69
  componentWillUnmount(): void;
70
+ onDimChangeListener(): void;
71
+ onAfterSetBBoxListener(wmjsMap: WMJSMap): void;
72
+ onUpdateBBoxListener(newBbox: WMBBOX): void;
69
73
  onStartRefetchTimer: () => void;
70
74
  getWMJSLayerFromReactLayer(wmLayers: WMLayer[], reactWebMapJSLayer: React.ReactElement, index: number): {
71
75
  layer: WMLayer;
@@ -1,5 +1,5 @@
1
1
  import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
2
- import { SetLayerStylePayload, SetLayersForServicePayload, SetLayerStylesForServicePayload, UpdateAllMapDimensionsPayload, SetLayerDimensionsPayload } from '../../store/mapStore/types';
2
+ import { SetLayerStylePayload, SetLayersForServicePayload, SetLayerStylesPayload, UpdateAllMapDimensionsPayload, SetLayerDimensionsPayload } from '../../store/mapStore/types';
3
3
  import { MapViewProps } from '../MapView/types';
4
4
  export declare const ORIGIN_REACTMAPVIEWPARSELAYER = "ReactMapViewParseLayer";
5
- export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, xml2jsonrequestURL: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onMapUpdateAllDimensions?: (payload: UpdateAllMapDimensionsPayload) => void, onLayerChangeStyle?: (payload: SetLayerStylePayload) => void, onServiceSetLayers?: (payload: SetLayersForServicePayload) => void, onLayerSetStyles?: (payload: SetLayerStylesForServicePayload) => void, onLayerSetDimensions?: (payload: SetLayerDimensionsPayload) => void) => void;
5
+ export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, xml2jsonrequestURL: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onMapUpdateAllDimensions?: (payload: UpdateAllMapDimensionsPayload) => void, onLayerChangeStyle?: (payload: SetLayerStylePayload) => void, onServiceSetLayers?: (payload: SetLayersForServicePayload) => void, onLayerSetStyles?: (payload: SetLayerStylesPayload) => void, onLayerSetDimensions?: (payload: SetLayerDimensionsPayload) => void) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { WMJSMap } from '@opengeoweb/webmap';
3
- import { SetMapDimensionPayload, SetLayerStylePayload, SetLayerDimensionPayload, SetLayersForServicePayload, SetLayerStylesForServicePayload, UpdateAllMapDimensionsPayload, Dimension, SetBboxPayload, SetLayerDimensionsPayload, Bbox } from '../../store/mapStore/types';
3
+ import { SetMapDimensionPayload, SetLayerStylePayload, SetLayerDimensionPayload, SetLayersForServicePayload, SetLayerStylesPayload, UpdateAllMapDimensionsPayload, Dimension, SetBboxPayload, SetLayerDimensionsPayload, Bbox, MapPinLocationPayload, MapLocation } from '../../store/mapStore/types';
4
4
  export interface ReactMapViewProps {
5
5
  listeners?: {
6
6
  name?: string;
@@ -21,12 +21,10 @@ export interface ReactMapViewProps {
21
21
  dimensions?: Dimension[];
22
22
  onClick?: () => void;
23
23
  xml2jsonrequestURL?: string;
24
- showCursor?: boolean;
25
- mapCursorLocation?: {
26
- lon: number;
27
- lat: number;
28
- };
24
+ displayMapPin?: boolean;
25
+ mapPinLocation?: MapLocation;
29
26
  shouldAutoFetch?: boolean;
27
+ showLayerInfo?: boolean;
30
28
  onMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
31
29
  onUnMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
32
30
  onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
@@ -34,12 +32,9 @@ export interface ReactMapViewProps {
34
32
  onLayerChangeStyle?: (payload: SetLayerStylePayload) => void;
35
33
  onLayerChangeDimension?: (payload: SetLayerDimensionPayload) => void;
36
34
  onServiceSetLayers?: (payload: SetLayersForServicePayload) => void;
37
- onLayerSetStyles?: (payload: SetLayerStylesForServicePayload) => void;
35
+ onLayerSetStyles?: (payload: SetLayerStylesPayload) => void;
38
36
  onMapZoomEnd?: (payload: SetBboxPayload) => void;
39
37
  onRegisterAdaguc?: (WMJSMapInstance: WMJSMap) => void;
40
38
  onLayerSetDimensions?: (payload: SetLayerDimensionsPayload) => void;
41
- onMapCursorChangeLocation?: (payload: {
42
- lon: number;
43
- lat: number;
44
- }) => void;
39
+ onMapPinChangeLocation?: (payload: MapPinLocationPayload) => void;
45
40
  }
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
- import { Moment } from 'moment';
3
2
  import * as mapActions from '../../../../store/mapStore/actions';
4
3
  export declare const animationIntervalDefault = 5;
5
4
  export interface PlayButtonConnectProps {
6
5
  mapId: string;
7
6
  isAnimating?: boolean;
8
- animationStartTime?: Moment;
9
- animationEndTime?: Moment;
7
+ animationStartTime?: string;
8
+ animationEndTime?: string;
10
9
  isDisabled?: boolean;
11
10
  mapStartAnimation?: typeof mapActions.mapStartAnimation;
12
11
  mapStopAnimation?: typeof mapActions.mapStopAnimation;
@@ -6,15 +6,15 @@ interface TimeSliderRailProps {
6
6
  secondsPerPx: number;
7
7
  selectedTime?: moment.Moment;
8
8
  timeStep?: number;
9
- animationStartTime?: moment.Moment;
10
- animationEndTime?: moment.Moment;
9
+ animationStartTime?: string;
10
+ animationEndTime?: string;
11
11
  currentTime?: number;
12
12
  dataStartTime?: number;
13
13
  dataEndTime?: number;
14
14
  isTimeSliderHoverOn?: boolean;
15
15
  scale?: Scale;
16
- onSetAnimationStartTime?: (time: moment.Moment) => void;
17
- onSetAnimationEndTime?: (time: moment.Moment) => void;
16
+ onSetAnimationStartTime?: (time: string) => void;
17
+ onSetAnimationEndTime?: (time: string) => void;
18
18
  onSetNewDate?: (newDate: string) => void;
19
19
  onSetCenterTime?: (newTime: number) => void;
20
20
  }
@@ -37,7 +37,9 @@ export declare const onsetNewDateDebounced: (dateToSet: string, onSetNewDate: (n
37
37
  export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string) => number;
38
38
  export declare const setNewRoundedTime: (x: number, centerTime: number, width: number, secondsPerPx: number, timeStep: number, dataStartTime: number, dataEndTime: number, onSetNewDate: (newDate: string) => void) => void;
39
39
  export declare const getDataLimitsFromLayers: (layers: Layer[]) => Array<number>;
40
- export declare const getValueFromEvent: (event: React.KeyboardEvent<HTMLInputElement>, newValue: string, sliderChangeFunction: (number: any) => number, sliderSetFunction: (number: any) => void) => void;
40
+ export declare const getNextTimeStepvalue: (value: number, max: number) => number;
41
+ export declare const getPreviousTimeStepvalue: (value: number, min: number) => number;
42
+ export declare const getValueFromKeyboardEvent: (event: React.KeyboardEvent<HTMLInputElement>, value: number, min: number, max: number) => number;
41
43
  export declare const getTimeStepFromDataInterval: (timeInterval: DateInterval) => number;
42
44
  export declare const getActiveLayerTimeStep: (timeDimension: Dimension) => number | null;
43
45
  /**
@@ -1,2 +1,2 @@
1
- declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState>)[];
1
+ declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-core").IModule<import("./layerSelect/types").LayerSelectModuleState>)[];
2
2
  export default coreModuleConfig;
@@ -0,0 +1,8 @@
1
+ import { LayerSelectActions, SetSearchFilterPayload } from './types';
2
+ /**
3
+ * Sets the given text to the searchFilter
4
+ *
5
+ * Example: setSearchFilter({ filterText: 'hello world' })
6
+ * @param {string} payload { filterText: string }
7
+ */
8
+ export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
@@ -0,0 +1,4 @@
1
+ import { IModule } from 'redux-dynamic-modules';
2
+ import { LayerSelectModuleState } from './types';
3
+ declare const layerSelectConfig: IModule<LayerSelectModuleState>;
4
+ export default layerSelectConfig;
@@ -0,0 +1 @@
1
+ export declare const LAYER_SELECT_SET_SEARCH_FILTER = "LAYER_SELECT_SET_SEARCH_FILTER";
@@ -0,0 +1,3 @@
1
+ import { LayerSelectActions, LayerSelectStoreType } from './types';
2
+ export declare const initialState: LayerSelectStoreType;
3
+ export declare const reducer: (state: LayerSelectStoreType, action: LayerSelectActions) => LayerSelectStoreType;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { AppStore } from '../../types/types';
2
+ export declare const getSearchFilter: (store: AppStore) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { Action } from 'redux';
2
+ import { LAYER_SELECT_SET_SEARCH_FILTER } from './constants';
3
+ export interface FiltersType {
4
+ searchFilter: string;
5
+ }
6
+ export interface LayerSelectStoreType {
7
+ filters: FiltersType;
8
+ }
9
+ export interface LayerSelectModuleState {
10
+ layerSelect?: LayerSelectStoreType;
11
+ }
12
+ export interface SetSearchFilterPayload {
13
+ filterText: string;
14
+ }
15
+ export interface SetSearchFilter extends Action {
16
+ type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
17
+ payload: SetSearchFilterPayload;
18
+ }
19
+ export declare type LayerSelectActions = SetSearchFilter;
@@ -1,4 +1,4 @@
1
- import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload } from './types';
1
+ import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, SetLayerStylesPayload } from './types';
2
2
  /**
3
3
  * Set the layers for a map. Erases all previous layers.
4
4
  * The following action types are triggered after the getCapabilities are parsed:
@@ -72,6 +72,13 @@ export declare const layerChangeDimension: (payload: SetLayerDimensionPayload) =
72
72
  * @param {object} payload Object with layerId: string, dimensions: [Dimension], origin?: string
73
73
  */
74
74
  export declare const layerSetDimensions: (payload: SetLayerDimensionsPayload) => LayerActions;
75
+ /**
76
+ * Action layerSetStyles is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
77
+ *
78
+ * Example: layerSetStyles({service: someService, name: 'layerName', styles: styleArray})
79
+ * @param {object} payload consisting of service: string, name: string, styles: Style[]
80
+ */
81
+ export declare const layerSetStyles: (payload: SetLayerStylesPayload) => LayerActions;
75
82
  /**
76
83
  * Changes the name of the layer
77
84
  *
@@ -3,6 +3,7 @@ export declare const WEBMAP_LAYER_CHANGE_NAME = "WEBMAP_LAYER_CHANGE_NAME";
3
3
  export declare const WEBMAP_LAYER_CHANGE_STYLE = "WEBMAP_LAYER_CHANGE_STYLE";
4
4
  export declare const WEBMAP_LAYER_CHANGE_DIMENSION = "WEBMAP_LAYER_CHANGE_DIMENSION";
5
5
  export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
6
+ export declare const WEBMAP_LAYER_SET_STYLES = "WEBMAP_LAYER_SET_STYLES";
6
7
  export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
7
8
  export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
8
9
  export declare const WEBMAP_LAYER_ERROR = "WEBMAP_LAYER_ERROR";