@opengeoweb/store 9.13.0 → 9.14.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "9.13.0",
3
+ "version": "9.14.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -83,6 +83,8 @@ export declare const mapStoreActions: {
83
83
  updateFeatureProperties: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePropertiesPayload, "layerReducer/updateFeatureProperties">;
84
84
  toggleFeatureMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleFeatureModePayload, "layerReducer/toggleFeatureMode">;
85
85
  exitFeatureDrawMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ExitFeatureDrawModePayload, "layerReducer/exitFeatureDrawMode">;
86
+ showLayerInfo: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ShowLayerInfoPayload, "layerReducer/showLayerInfo">;
87
+ hideLayerInfo: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"layerReducer/hideLayerInfo">;
86
88
  };
87
89
  export * from './service';
88
90
  export * from './map';
@@ -0,0 +1,2 @@
1
+ import { CoreAppStore } from '../../types';
2
+ export declare const layersListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<CoreAppStore, unknown, import("redux").AnyAction>, unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { Draft, PayloadAction } from '@reduxjs/toolkit';
2
2
  import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
3
- import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload } from './types';
3
+ import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload, ShowLayerInfoPayload } from './types';
4
4
  export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, useLatestReferenceTime, ...props }: Layer) => Layer;
5
5
  export declare const initialState: LayerState;
6
6
  export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
@@ -39,6 +39,8 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
39
39
  updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
40
40
  toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
41
41
  exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
42
+ showLayerInfo: (draft: Draft<LayerState>, action: PayloadAction<ShowLayerInfoPayload>) => void;
43
+ hideLayerInfo: (draft: Draft<LayerState>) => void;
42
44
  }, "layerReducer">;
43
45
  export declare const reducer: import("redux").Reducer<LayerState, import("redux").AnyAction>;
44
46
  export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -77,5 +79,7 @@ export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions
77
79
  updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
78
80
  toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
79
81
  exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
82
+ showLayerInfo: (draft: Draft<LayerState>, action: PayloadAction<ShowLayerInfoPayload>) => void;
83
+ hideLayerInfo: (draft: Draft<LayerState>) => void;
80
84
  }, "layerReducer">;
81
85
  export type LayerActions = ReturnType<typeof layerActions.layerSetDimensions> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.addAvailableBaseLayer> | ReturnType<typeof layerActions.addAvailableBaseLayers> | ReturnType<typeof layerActions.addBaseLayer> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.baseLayerDelete> | ReturnType<typeof layerActions.onUpdateLayerInformation> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeGeojson> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.layerError> | ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.setLayers>;
@@ -367,3 +367,14 @@ export declare const getTimeStepForLayerId: ((state: any, layerId: any) => numbe
367
367
  }> & {
368
368
  clearCache: () => void;
369
369
  };
370
+ export declare const getActiveLayerInfo: ((state: CoreAppStore) => {
371
+ layerName: string;
372
+ serviceUrl: string;
373
+ } | undefined) & import("reselect").OutputSelectorFields<(args_0: LayerState | undefined) => {
374
+ layerName: string;
375
+ serviceUrl: string;
376
+ } | undefined, {
377
+ clearCache: () => void;
378
+ }> & {
379
+ clearCache: () => void;
380
+ };
@@ -4,6 +4,7 @@ import { LayerFoundation } from '@opengeoweb/webmap';
4
4
  import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
5
5
  import type { Dimension } from '../map/types';
6
6
  import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
7
+ import { uiTypes } from '../../ui';
7
8
  export declare enum LayerStatus {
8
9
  default = "default",
9
10
  error = "error"
@@ -47,6 +48,10 @@ export interface LayerState {
47
48
  byId: Record<string, ReduxLayer>;
48
49
  allIds: string[];
49
50
  availableBaseLayers: AvailableBaseLayersType;
51
+ activeLayerInfo?: {
52
+ layerName: string;
53
+ serviceUrl: string;
54
+ };
50
55
  }
51
56
  export interface LayerPayload {
52
57
  layerId: string;
@@ -150,3 +155,9 @@ export interface ExitFeatureDrawModePayload extends LayerPayload {
150
155
  reason: string;
151
156
  shouldAllowMultipleShapes?: boolean;
152
157
  }
158
+ export interface ShowLayerInfoPayload {
159
+ serviceUrl: string;
160
+ layerName: string;
161
+ mapId: string;
162
+ source?: uiTypes.Source;
163
+ }