@opengeoweb/core 2.5.0 → 2.8.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.
Files changed (70) hide show
  1. package/index.esm.js +10415 -10230
  2. package/index.umd.js +10446 -10229
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +7 -21
  4. package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +10 -16
  5. package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
  6. package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
  7. package/lib/components/ConfigurableMap/index.d.ts +1 -0
  8. package/lib/components/LayerManager/LayerManager.d.ts +2 -1
  9. package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
  10. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +18 -0
  11. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -1
  12. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +4 -0
  13. package/lib/components/{ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts → LayerManager/LayerSelect/LayerSelectUtils.spec.d.ts} +0 -0
  14. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
  15. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +4 -3
  16. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
  17. package/lib/components/MapWarning/MapWarningProperties.d.ts +6 -0
  18. package/lib/components/{MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts → MapWarning/MapWarningProperties.spec.d.ts} +0 -0
  19. package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -1
  20. package/lib/components/MultiMapView/{HarmoniePresets/HarmRefTimePreset.d.ts → ModelRunInterval/ModelRunInterval.d.ts} +4 -2
  21. package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButton.spec.d.ts → MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts} +0 -0
  22. package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
  23. package/lib/components/MultiMapView/ModelRunInterval/index.d.ts +1 -0
  24. package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -3
  25. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
  26. package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
  27. package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
  28. package/lib/components/TimeSlider/TimeSlider.d.ts +2 -1
  29. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +0 -1
  30. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -1
  31. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
  32. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
  33. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -2
  34. package/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
  35. package/lib/index.d.ts +6 -5
  36. package/lib/store/layerSelect/sagas.d.ts +2 -1
  37. package/lib/store/mapStore/layers/actions.d.ts +8 -1
  38. package/lib/store/mapStore/layers/constants.d.ts +1 -0
  39. package/lib/store/mapStore/layers/types.d.ts +11 -3
  40. package/lib/store/mapStore/map/actions.d.ts +17 -8
  41. package/lib/store/mapStore/map/constants.d.ts +3 -0
  42. package/lib/store/mapStore/map/sagas.d.ts +4 -2
  43. package/lib/store/mapStore/map/selectors.d.ts +42 -21
  44. package/lib/store/mapStore/map/types.d.ts +57 -2
  45. package/lib/store/mapStore/map/utils.d.ts +2 -1
  46. package/lib/store/mapStore/service/reducer.d.ts +2 -8
  47. package/lib/store/mapStore/service/selectors.d.ts +6 -8
  48. package/lib/store/mapStore/service/types.d.ts +5 -8
  49. package/lib/store/mapStore/utils/helpers.d.ts +2 -0
  50. package/lib/store/ui/actions.d.ts +8 -1
  51. package/lib/store/ui/constants.d.ts +1 -0
  52. package/lib/store/ui/reducer.d.ts +2 -8
  53. package/lib/store/ui/selectors.d.ts +8 -0
  54. package/lib/store/ui/types.d.ts +10 -2
  55. package/lib/utils/defaultConfigurations.d.ts +2 -2
  56. package/lib/utils/defaultTestSettings.d.ts +10 -199
  57. package/lib/utils/jsonPresetFilter.d.ts +23 -7
  58. package/lib/utils/localStorage.d.ts +3 -3
  59. package/lib/{components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.spec.d.ts → utils/localStorage.spec.d.ts} +0 -0
  60. package/lib/utils/types.d.ts +3 -42
  61. package/package.json +9 -9
  62. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
  63. package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
  64. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -22
  65. package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
  66. package/lib/components/LayerManager/tooltipContainerStyles.d.ts +0 -2
  67. package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButton.d.ts +0 -8
  68. package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.d.ts +0 -10
  69. package/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -14
  70. package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +0 -1
@@ -1,29 +1,15 @@
1
1
  import React from 'react';
2
- import { Bbox, Layer } from '../../store/mapStore/types';
3
- import { AnimationPayloadType } from '../ConfigurableConnectedMap';
4
- import { InitialHarmRefTimeProps, InitialHarmTempAndPrecipProps } from '../MultiMapView/HarmoniePresets';
5
- interface TSMapPreset {
6
- layers?: Layer[];
7
- activeLayerId?: string;
8
- baseLayer?: Layer;
9
- proj?: {
10
- bbox: Bbox;
11
- srs: string;
12
- };
13
- shouldAutoUpdate?: boolean;
14
- shouldAnimate?: boolean;
15
- animationPayload?: AnimationPayloadType;
16
- displayMapPin?: boolean;
17
- }
2
+ import { MapPreset, MapPresetInitialProps } from '../../store/mapStore/types';
3
+ import { InitialHarmTempAndPrecipProps } from '../MultiMapView/HarmoniePresets';
4
+ import { ModelRunIntervalProps } from '../MultiMapView/ModelRunInterval';
18
5
  interface InitialMultiMapProps {
19
- mapPreset: TSMapPreset[];
6
+ mapPreset: MapPreset[];
20
7
  syncGroupsIds: string[];
21
8
  shouldShowZoomControls?: boolean;
22
9
  }
23
10
  interface InitialMapProps {
24
- mapPreset: TSMapPreset;
11
+ mapPreset: MapPreset;
25
12
  syncGroupsIds: string[];
26
- shouldShowZoomControls?: boolean;
27
13
  }
28
14
  interface InitialSliderProps {
29
15
  sliderPreset: {
@@ -31,13 +17,13 @@ interface InitialSliderProps {
31
17
  };
32
18
  syncGroupsIds: string[];
33
19
  }
34
- export declare type InitialProps = InitialMultiMapProps | InitialMapProps | InitialSliderProps | InitialHarmTempAndPrecipProps | InitialHarmRefTimeProps;
20
+ export declare type InitialProps = InitialMapProps | InitialMultiMapProps | InitialSliderProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | MapPresetInitialProps;
35
21
  /**
36
22
  * The lookup table is for registering your own components with the screenmanager.
37
23
  * @param payload
38
24
  * @returns
39
25
  */
40
- export declare type SupportedComponentTypes = 'ConfigurableMap' | 'ConfigurableMapWithSlider' | 'HarmRefTimePreset' | 'HarmonieTempAndPrecipPreset' | 'ConfigurableMultiMapWithSlider' | 'TimeSlider';
26
+ export declare type SupportedComponentTypes = 'Map' | 'MultiMap' | 'ModelRunInterval' | 'HarmonieTempAndPrecipPreset' | 'TimeSlider';
41
27
  export interface ComponentsLookUpPayload {
42
28
  componentType: SupportedComponentTypes;
43
29
  id: string;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { Bbox, Layer } from '../../store/mapStore/types';
3
- import { SpeedFactorType } from '../TimeSlider/TimeSliderUtils';
2
+ import { AnimationPayloadType, Bbox, Layer } from '../../store/mapStore/types';
4
3
  export declare const defaultBbox: {
5
4
  srs: string;
6
5
  bbox: {
@@ -10,30 +9,25 @@ export declare const defaultBbox: {
10
9
  top: number;
11
10
  };
12
11
  };
13
- export interface AnimationPayloadType {
14
- duration?: number;
15
- interval?: number;
16
- speed?: SpeedFactorType;
17
- }
18
- export interface ConfigurableConnectedMapProps {
19
- title?: string;
12
+ export interface ConfigurableMapConnectProps {
20
13
  id?: string;
21
- className?: string;
14
+ shouldAutoUpdate?: boolean;
15
+ shouldAnimate?: boolean;
16
+ title?: string;
22
17
  layers: Layer[];
23
18
  activeLayerId?: string;
24
19
  baseLayer?: Layer;
25
20
  overLayers?: Layer[];
26
21
  bbox?: Bbox;
27
22
  srs?: string;
28
- displayTimeInMap?: boolean;
29
- displayLayerManagerButtonInMap?: boolean;
30
- displayDimensionSelectButtonInMap?: boolean;
31
- shouldAutoUpdate?: boolean;
32
- shouldAnimate?: boolean;
33
23
  animationPayload?: AnimationPayloadType;
34
24
  shouldShowZoomControls?: boolean;
35
25
  displayMapPin?: boolean;
26
+ showTimeSlider?: boolean;
36
27
  toggleTimestepAuto?: boolean;
37
28
  setTimestep?: number;
29
+ displayTimeInMap?: boolean;
30
+ displayLayerManagerButtonInMap?: boolean;
31
+ displayDimensionSelectButtonInMap?: boolean;
38
32
  }
39
- export declare const ConfigurableConnectedMap: React.FC<ConfigurableConnectedMapProps>;
33
+ export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
@@ -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 ConfigurableMapDefault: () => React.ReactElement;
7
+ export declare const ConfigurableMapCustomized: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './ConfigurableMapConnect';
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Layer } from '../../store/mapStore/types';
3
- import { Service } from '../WMSLoader/services';
4
3
  import { Source } from '../../store/ui/types';
4
+ import { Service } from '../WMSLoader/services';
5
5
  interface LayerManagerProps {
6
6
  mapId: string;
7
7
  preloadedAvailableBaseLayers?: Layer[];
@@ -16,6 +16,7 @@ interface LayerManagerProps {
16
16
  source?: Source;
17
17
  layerSelect?: boolean;
18
18
  showAddLayersTooltip?: boolean;
19
+ leftComponent?: React.ReactNode;
19
20
  }
20
21
  declare const LayerManager: React.FC<LayerManagerProps>;
21
22
  export default LayerManager;
@@ -8,6 +8,7 @@ interface LayerManagerConnectProps {
8
8
  bounds?: string;
9
9
  showTitle?: boolean;
10
10
  layerSelect?: boolean;
11
+ leftComponent?: React.ReactNode;
11
12
  }
12
13
  /**
13
14
  * Layer Managerconnected to the store displaying the layers forthe active map Id
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { ReduxLayer, ServiceLayer } from '../../../../store/mapStore/types';
3
+ interface LayerListRowProps {
4
+ layer: ServiceLayer;
5
+ layerIndex: number;
6
+ serviceId: string;
7
+ addLayer: ({ serviceURL, layerName }: {
8
+ serviceURL: any;
9
+ layerName: any;
10
+ }) => void;
11
+ deleteLayer: ({ layerId, layerIndex }: {
12
+ layerId: any;
13
+ layerIndex: any;
14
+ }) => void;
15
+ mapLayers: ReduxLayer[];
16
+ }
17
+ declare const LayerListRow: React.FC<LayerListRowProps>;
18
+ export default LayerListRow;
@@ -1,2 +1,3 @@
1
- import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
1
+ import { ReduxService, ServiceLayer, Services } from '../../../../store/mapStore/service/types';
2
+ export declare const getMapStoreServiceFromLayerSelectServiceId: (services: Services, serviceId: string) => ReduxService;
2
3
  export declare const filterLayersFromService: (serviceId: string, services: Services, keywordIds: string[], allKeywordsActive: boolean, searchString: string) => ServiceLayer[];
@@ -0,0 +1,4 @@
1
+ import { UserAddedServices } from '../../../utils/types';
2
+ import { Service } from '../../WMSLoader/services';
3
+ export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => Service[];
4
+ export declare const isService: (param: unknown) => param is Service;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../../../../store/mapStore/types';
2
+ import { ReduxService } from '../../../../store/mapStore/types';
3
3
  interface ServiceChipProps {
4
4
  all?: boolean;
5
- service?: Service;
6
- isEnabled?: boolean;
5
+ service?: ReduxService;
6
+ isSelected?: boolean;
7
+ isDisabled?: boolean;
7
8
  toggleChip?: (service: string) => void;
8
9
  }
9
10
  declare const ServiceChip: React.FC<ServiceChipProps>;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../../../../store/mapStore/types';
2
+ import { ReduxService } from '../../../../store/mapStore/types';
3
3
  interface ServiceChipConnectProps {
4
4
  all?: boolean;
5
- service?: Service;
6
- isEnabled?: boolean;
5
+ service?: ReduxService;
6
+ isSelected?: boolean;
7
+ isDisabled?: boolean;
7
8
  }
8
9
  declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
9
10
  export default ServiceChipConnect;
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../../../../store/mapStore/types';
2
+ import { Services } from '../../../../store/mapStore/types';
3
3
  import { ActiveServiceObject } from '../../../../store/layerSelect/types';
4
4
  interface ServiceListProps {
5
5
  layerSelectWidth?: number;
6
- services: Service[];
6
+ services: Services;
7
7
  activeServices: ActiveServiceObject;
8
8
  }
9
9
  declare const ServiceList: React.FC<ServiceListProps>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface WarningListProps {
3
+ selectedFeatureProperties: any;
4
+ }
5
+ export declare const MapWarningProperties: React.FC<WarningListProps>;
6
+ export {};
@@ -1,2 +1 @@
1
- export * from './HarmRefTimePreset';
2
1
  export * from './HarmonieTempAndPrecipPreset';
@@ -2,8 +2,10 @@ import * as React from 'react';
2
2
  import { Layer } from '../../../store/mapStore/types';
3
3
  import { MultiMapPreset } from '../MultiMapViewConnect';
4
4
  export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
5
- export interface InitialHarmRefTimeProps {
5
+ export interface ModelRunIntervalProps {
6
6
  layers?: Layer[];
7
7
  syncGroupsIds: string[];
8
+ interval?: number;
9
+ startTimeIncrement?: number;
8
10
  }
9
- export declare const HarmRefTimePreset: React.FC<InitialHarmRefTimeProps>;
11
+ export declare const ModelRunInterval: React.FC<ModelRunIntervalProps>;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare const ModelRunIntervalDefault: () => React.ReactElement;
3
+ export declare const ModelRunIntervalHourly: () => React.ReactElement;
4
+ export declare const ModelRunIntervalCustomStart: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './ModelRunInterval';
@@ -1,9 +1,8 @@
1
1
  import { MultiMapViewStory2x2 } from './MultiMapView2x2.stories';
2
2
  import { MultiMapViewStory4x3 } from './MultiMapView4x3.stories';
3
3
  import { MultiMapViewStory10x10 } from './MultiMapView10x10.stories';
4
- export { MultiMapViewStory2x2 };
5
- export { MultiMapViewStory4x3 };
6
- export { MultiMapViewStory10x10 };
4
+ import { ModelRunIntervalCustomStart, ModelRunIntervalDefault, ModelRunIntervalHourly } from './ModelRunInterval/ModelRunInterval.stories';
5
+ export { MultiMapViewStory2x2, MultiMapViewStory4x3, MultiMapViewStory10x10, ModelRunIntervalDefault, ModelRunIntervalHourly, ModelRunIntervalCustomStart, };
7
6
  declare const _default: {
8
7
  title: string;
9
8
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Bbox, Layer } from '../../store/mapStore/types';
3
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"box" | "zoomControls">;
3
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"box">;
4
4
  export interface MultiMapPreset {
5
5
  id: string;
6
6
  title?: string;
@@ -9,7 +9,7 @@ export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
9
9
  export declare const lineString: GeoJSON.FeatureCollection;
10
10
  export declare type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPolygon;
11
11
  export declare type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
12
- declare type GeoFeatureStyle = {
12
+ export declare type GeoFeatureStyle = {
13
13
  stroke?: string;
14
14
  fill?: string;
15
15
  'stroke-width'?: number;
@@ -6,4 +6,4 @@ export declare type CheckHoverFeaturesResult = {
6
6
  feature: GeoJsonFeature;
7
7
  } | null;
8
8
  export declare const distance: (a: Coordinate, b: Coordinate) => number;
9
- export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[]) => CheckHoverFeaturesResult;
9
+ export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
- interface TimeSliderProps {
2
+ export interface TimeSliderProps {
3
3
  buttons?: React.ReactChild;
4
4
  rail?: React.ReactChild;
5
5
  scaleSlider?: React.ReactChild;
6
6
  legend?: React.ReactChild;
7
+ mapIsActive?: boolean;
7
8
  }
8
9
  declare const TimeSlider: React.FC<TimeSliderProps>;
9
10
  export default TimeSlider;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface OptionsMenuButtonProps {
3
3
  autoUpdateBtn?: React.ReactChild;
4
- loopBtn?: React.ReactChild;
5
4
  speedBtn?: React.ReactChild;
6
5
  timeStepBtn?: React.ReactChild;
7
6
  }
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface TimeSliderButtonsProps {
3
3
  autoUpdateBtn?: React.ReactChild;
4
- loopBtn?: React.ReactChild;
5
4
  optionsMenuBtn?: React.ReactChild;
6
5
  playBtn?: React.ReactChild;
7
6
  speedBtn?: React.ReactChild;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Scale } from '../../../store/mapStore/types';
3
- interface TimeSliderLegendProps {
3
+ export interface TimeSliderLegendProps {
4
4
  centerTime: number;
5
5
  secondsPerPx: number;
6
6
  dataScaleToSecondsPerPx?: number;
@@ -13,6 +13,7 @@ interface TimeSliderLegendProps {
13
13
  animationEndTime?: string;
14
14
  isTimeSliderHoverOn?: boolean;
15
15
  timeStep?: number;
16
+ mapIsActive?: boolean;
16
17
  onSetNewDate?: (newDate: string) => void;
17
18
  onSetCenterTime?: (newTime: number) => void;
18
19
  onZoom?: (newSecondsPerPx: number, newCenterTime: number) => void;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import moment from 'moment';
3
3
  import { Scale } from '../../../store/mapStore/types';
4
- interface TimeSliderRailProps {
4
+ export interface TimeSliderRailProps {
5
5
  centerTime: number;
6
6
  secondsPerPx: number;
7
7
  selectedTime?: moment.Moment;
@@ -13,6 +13,7 @@ interface TimeSliderRailProps {
13
13
  dataEndTime?: number;
14
14
  isTimeSliderHoverOn?: boolean;
15
15
  scale?: Scale;
16
+ mapIsActive: boolean;
16
17
  onSetAnimationStartTime?: (time: string) => void;
17
18
  onSetAnimationEndTime?: (time: string) => void;
18
19
  onSetNewDate?: (newDate: string) => void;
@@ -1,12 +1,11 @@
1
1
  import moment from 'moment';
2
2
  import React from 'react';
3
3
  import { DateInterval } from '@opengeoweb/webmap';
4
- import { Dimension, Layer, Scale } from '../../store/mapStore/types';
4
+ import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/types';
5
5
  import CanvasComponent from '../CanvasComponent/CanvasComponent';
6
6
  export declare const defaultAnimationDelayAtStart = 250;
7
7
  export declare const defaultDelay = 1000;
8
8
  export declare const speedFactors: SpeedFactorType[];
9
- export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
10
9
  export interface TimeBounds {
11
10
  selectedTime: number;
12
11
  startTime: number;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { Service } from '../services';
3
3
  interface WMSServerListProps {
4
4
  availableServices: Service[];
5
- handleChangeService: (index: number) => void;
5
+ handleChangeService: (service: Service) => void;
6
6
  service: Service;
7
7
  }
8
8
  declare const WMSServerList: React.FC<WMSServerListProps>;
package/lib/index.d.ts CHANGED
@@ -8,8 +8,8 @@ import * as uiSelectors from './store/ui/selectors';
8
8
  import * as uiTypes from './store/ui/types';
9
9
  import * as syncGroupActions from './store/generic/actions';
10
10
  import * as layerReducer from './store/mapStore/layers/reducer';
11
+ import * as layerActions from './store/mapStore/layers/actions';
11
12
  import synchronizationGroupConfig from './store/generic/config';
12
- import TooltipSelect from './components/TooltipSelect/TooltipSelect';
13
13
  import * as SyncGroups from './store/generic/synchronizationGroups';
14
14
  import coreModuleConfig from './store/coreModuleConfig';
15
15
  import { LayerManagerConnect, LayerManagerMapButtonConnect } from './components/LayerManager';
@@ -22,13 +22,11 @@ export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Leg
22
22
  export { ZoomControls, ZoomControlConnect } from './components/MapControls';
23
23
  export { TimeSliderConnect } from './components/TimeSlider';
24
24
  export { MapControls } from './components/MapControls';
25
- export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiSelectors, uiTypes, syncGroupActions, };
25
+ export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, syncGroupActions, };
26
26
  export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
27
27
  export * from './components/ComponentsLookUp';
28
- export * from './components/ConfigurableMapWithSlider';
29
- export { ConfigurableConnectedMap } from './components/ConfigurableConnectedMap';
28
+ export * from './components/ConfigurableMap';
30
29
  export * from './store/mapStore/utils/helpers';
31
- export { TooltipSelect };
32
30
  export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
33
31
  export { SyncGroups };
34
32
  export { store } from './store';
@@ -45,3 +43,6 @@ export * as defaultConfigurations from './utils/defaultConfigurations';
45
43
  export * from './components/Providers/Providers';
46
44
  export { default as uiModuleConfig } from './store/ui/config';
47
45
  export { default as mapModuleConfig } from './store/mapStore/config';
46
+ export { default as synchronizationGroupsConfig } from './store/generic/config';
47
+ export * from './components/MapWarning/MapWarningProperties';
48
+ export type { FeatureEvent, GeoFeatureStyle, } from './components/ReactMapView/AdagucMapDraw';
@@ -1,7 +1,8 @@
1
1
  import { SagaIterator } from 'redux-saga';
2
- import { ServiceActions, SetLayersForService } from '../mapStore/types';
2
+ import { ServiceActions, SetLayersForService, MapStoreRemoveService } from '../mapStore/types';
3
3
  export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
4
4
  export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
5
5
  export declare function addServiceToLocalStorageSaga({ payload, }: SetLayersForService): void;
6
+ export declare function removeServiceFromLocalStorageSaga({ payload, }: MapStoreRemoveService): void;
6
7
  export declare function rootSaga(): SagaIterator;
7
8
  export default rootSaga;
@@ -1,4 +1,4 @@
1
- import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload } from './types';
1
+ import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload, SetLayerGeojsonPayload } 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:
@@ -86,6 +86,13 @@ export declare const layerChangeName: (payload: SetLayerNamePayload) => LayerAct
86
86
  * @param {object} payload Object with a layerId: string, style: string, origin?: string, service?: string;
87
87
  */
88
88
  export declare const layerChangeStyle: (payload: SetLayerStylePayload) => LayerActions;
89
+ /**
90
+ * Changes the geojson of a layer
91
+ *
92
+ * Example: layerChangeGeojson({ layerId: 'layerId1', geojson: geojson })
93
+ * @param {object} payload Object with a layerId: string, geojson: FeatureCollection;
94
+ */
95
+ export declare const layerChangeGeojson: (payload: SetLayerGeojsonPayload) => LayerActions;
89
96
  /**
90
97
  * Deletes a layer
91
98
  *
@@ -2,6 +2,7 @@ export declare const WEBMAP_LAYER_CHANGE_OPACITY = "WEBMAP_LAYER_CHANGE_OPACITY"
2
2
  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
+ export declare const WEBMAP_LAYER_CHANGE_GEOJSON = "WEBMAP_LAYER_CHANGE_GEOJSON";
5
6
  export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
6
7
  export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
7
8
  export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
@@ -1,7 +1,8 @@
1
1
  import { Action } from 'redux';
2
2
  import { Style } from '@opengeoweb/webmap';
3
+ import { FeatureCollection } from 'geojson';
3
4
  import { Dimension, UpdateAllMapDimensionsPayload } 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_UPDATE_LAYER_INFO } from './constants';
5
+ 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_UPDATE_LAYER_INFO, WEBMAP_LAYER_CHANGE_GEOJSON } from './constants';
5
6
  import type { SetLayersForServicePayload } from '../types';
6
7
  export interface WMJSDimension {
7
8
  getFirstValue(): string;
@@ -45,13 +46,13 @@ export interface ReduxLayer {
45
46
  layerType?: LayerType;
46
47
  status?: LayerStatus;
47
48
  format?: string;
49
+ geojson?: FeatureCollection;
48
50
  }
49
51
  /**
50
52
  * Layer is used to define a layer with all its possible properties.
51
53
  */
52
54
  export interface Layer extends ReduxLayer {
53
55
  styles?: Style[];
54
- geojson?: GeoJSON.FeatureCollection;
55
56
  headers?: Headers[];
56
57
  }
57
58
  export interface AvailableBaseLayersType {
@@ -130,6 +131,13 @@ export interface SetLayerStyle extends Action {
130
131
  type: typeof WEBMAP_LAYER_CHANGE_STYLE;
131
132
  payload: SetLayerStylePayload;
132
133
  }
134
+ export interface SetLayerGeojson extends Action {
135
+ type: typeof WEBMAP_LAYER_CHANGE_GEOJSON;
136
+ payload: SetLayerGeojsonPayload;
137
+ }
138
+ export interface SetLayerGeojsonPayload extends LayerPayload {
139
+ geojson: FeatureCollection;
140
+ }
133
141
  export interface DeleteLayerPayload extends LayerPayload {
134
142
  mapId: string;
135
143
  layerIndex: number;
@@ -196,4 +204,4 @@ export interface UpdateLayerInfo extends Action {
196
204
  type: typeof WEBMAP_UPDATE_LAYER_INFO;
197
205
  payload: UpdateLayerInfoPayload;
198
206
  }
199
- export declare type LayerActions = SetLayerDimensions | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers | UpdateLayerInfo;
207
+ export declare type LayerActions = SetLayerDimensions | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | SetLayerGeojson | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers | UpdateLayerInfo;
@@ -1,4 +1,5 @@
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, DisableMapPinPayload } from './types';
1
+ import { SetMapPresetPayload } from '../types';
2
+ import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationDelayPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, ToggleTimestepAutoPayload, ToggleTimestepAuto, ToggleTimeSliderHoverPayload, ToggleTimeSliderHover, SetTimeSliderCenterTimePayload, SetTimeSliderSecondsPerPxPayload, SetTimeSliderDataScaleToSecondsPerPxPayload, MapPinLocationPayload, DisableMapPinPayload, SetSelectedFeaturePayload, SetActiveMapPresetPayload } from './types';
2
3
  /**
3
4
  * Registers the map in the store and creates the map state
4
5
  *
@@ -70,13 +71,6 @@ export declare const setActiveLayerId: (payload: SetActiveLayerIdPayload) => Set
70
71
  * @param {object} payload object with mapId: string, shouldAutoUpdate: boolean
71
72
  */
72
73
  export declare const toggleAutoUpdate: (payload: ToggleAutoUpdatePayload) => ToggleAutoUpdate;
73
- /**
74
- * Toggles loop state for map
75
- *
76
- * Example: toggleLoop({ mapId: 'mapId1', shouldLoop: true })
77
- * @param {object} payload object with mapId: string, shouldLoop: boolean
78
- */
79
- export declare const toggleLoop: (payload: ToggleLoopPayload) => ToggleLoop;
80
74
  /**
81
75
  *Sets the scale of a time slider with id for a map
82
76
  *
@@ -161,3 +155,18 @@ export declare const setMapPinLocation: (payload: MapPinLocationPayload) => MapA
161
155
  * @param {object} payload object with mapId: string, diableMapPin: boolean
162
156
  */
163
157
  export declare const setDisableMapPin: (payload: DisableMapPinPayload) => MapActions;
158
+ /**
159
+ * Sets the selected geojson feature index, for example the selected polygon index in the FeatureCollection
160
+ *
161
+ * Example: setSelectedFeature({ mapId: 'mapId1', selectedFeatureIndex: 1 })
162
+ * @param {object} payload object with mapId: string, selectedFeatureIndex: number
163
+ */
164
+ export declare const setSelectedFeature: (payload: SetSelectedFeaturePayload) => MapActions;
165
+ export declare const setMapPreset: (payload: SetMapPresetPayload) => MapActions;
166
+ /**
167
+ * Sets the active mappreset id
168
+ *
169
+ * Example: setActiveMapPresetId({ mapId: 'mapId1', presetId: 'preset1 })
170
+ * @param {object} payload object with mapId: string, presetId: string
171
+ */
172
+ export declare const setActiveMapPresetId: (payload: SetActiveMapPresetPayload) => MapActions;
@@ -21,3 +21,6 @@ export declare const WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX = "WEBMAP_SET_TIME_SL
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
22
  export declare const WEBMAP_SET_PIN = "WEBMAP_SET_PIN";
23
23
  export declare const WEBMAP_DISABLE_PIN = "WEBMAP_DISABLE_PIN";
24
+ export declare const WEBMAP_SET_SELECTED_FEATURE_INDEX = "WEBMAP_SET_SELECTED_FEATURE_INDEX";
25
+ export declare const WEBMAP_SET_MAPPRESET = "WEBMAP_SET_MAPPRESET";
26
+ export declare const WEBMAP_SET_ACTIVE_MAPPRESET_ID = "WEBMAP_SET_ACTIVE_MAPPRESET_ID";
@@ -1,7 +1,7 @@
1
1
  import { SagaIterator } from 'redux-saga';
2
2
  import { Moment } from 'moment';
3
- import { SetMapAnimationStop, SetMapAnimationStart, ToggleAutoUpdate } from './types';
4
- import { DeleteLayer, UpdateLayerInfo } from '../layers/types';
3
+ import { SetMapAnimationStop, SetMapAnimationStart, ToggleAutoUpdate, SetMapPreset } from './types';
4
+ import { DeleteLayer, Layer, UpdateLayerInfo } from '../layers/types';
5
5
  export declare const generateTimeList: (start: Moment, end: Moment, interval: number) => {
6
6
  name: string;
7
7
  value: string;
@@ -13,5 +13,7 @@ export declare function deleteLayerSaga({ payload }: DeleteLayer): SagaIterator;
13
13
  export declare function updateAnimation(mapId: string, maxValue: string): SagaIterator;
14
14
  export declare function setLayerDimensionsSaga({ payload, }: UpdateLayerInfo): SagaIterator;
15
15
  export declare function toggleAutoUpdateSaga({ payload, }: ToggleAutoUpdate): SagaIterator;
16
+ export declare function handleBaseLayersSaga(mapId: string, baseLayers: Layer[]): SagaIterator;
17
+ export declare function setMapPresetSaga({ payload }: SetMapPreset): SagaIterator;
16
18
  export declare function rootSaga(): SagaIterator;
17
19
  export default rootSaga;