@opengeoweb/core 11.1.0 → 12.1.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/index.esm.js +761 -60
- package/package.json +12 -11
- package/src/lib/GeoWebDemo.stories.d.ts +4 -1
- package/src/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +8 -7
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +2 -1
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.stories.d.ts +6 -4
- package/src/lib/components/FeatureInfo/utils.d.ts +4 -1
- package/src/lib/components/LanguageSelect/Languages.stories.d.ts +9 -33
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerManager.custom.stories.d.ts +4 -1
- package/src/lib/components/LayerManager/LayerManager.stories.d.ts +19 -90
- package/src/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +7 -22
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +7 -7
- package/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelect.stories.d.ts +1 -0
- package/src/lib/components/LegendConnect/LegendConnect.stories.d.ts +1 -0
- package/src/lib/components/MapDrawToolRedux/MapDrawToolRedux.stories.d.ts +1 -0
- package/src/lib/components/MapDrawToolRedux/MapDrawToolReduxIntersection.stories.d.ts +1 -0
- package/src/lib/components/MapDrawToolRedux/MapDrawToolReduxMultipleDrawTools.stories.d.ts +1 -0
- package/src/lib/components/MapDrawToolRedux/OpenLayersFeatureLayerConnect.d.ts +13 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.DoubleMap.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.Errors.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.FeatureLayers.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.InitialBBoxAndWithout.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.LayerActions.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.MapPin.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.MultiMapLayerManager.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.SelectorTest.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.SetBaseLayers.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.ToggleControls.stories.d.ts +1 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.d.ts +4 -2
- package/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +16 -0
- package/src/lib/components/MapViewConnect/OlMapViewConnect.spec.d.ts +1 -0
- package/src/lib/components/MapViewConnect/OlMapViewLayerConnect.d.ts +8 -0
- package/src/lib/components/MapViewConnect/index.d.ts +2 -0
- package/src/lib/components/MapViewConnect/olMapUtils.d.ts +7 -0
- package/src/lib/components/MapViewConnect/olMapUtils.spec.d.ts +1 -0
- package/src/lib/components/MapViewConnect/useGetOpenLayersView.d.ts +9 -0
- package/src/lib/components/MultiMapDimensionSelectConnect/EnsembleDimensionExample.stories.d.ts +1 -0
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiDimensionSelectConnect.stories.d.ts +1 -0
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiMapMultiDimensionSelect.stories.d.ts +1 -0
- package/src/lib/components/MultiMapViewConnect/ModelRunInterval/ModelRunInterval.stories.d.ts +1 -0
- package/src/lib/components/MultiMapViewConnect/MultiMapView10x10.stories.d.ts +1 -0
- package/src/lib/components/MultiMapViewConnect/MultiMapView2x2.stories.d.ts +1 -0
- package/src/lib/components/MultiMapViewConnect/MultiMapView4x3.stories.d.ts +1 -0
- package/src/lib/components/Providers/Providers.d.ts +9 -0
- package/src/lib/components/Search/SearchDialog.stories.d.ts +7 -13
- package/src/lib/components/Search/SearchDialogConnect.stories.d.ts +5 -1
- package/src/lib/components/SyncGroups/SyncGroups.FourMapsSynced.stories.d.ts +5 -1
- package/src/lib/components/SyncGroups/SyncGroups.SyncMany.stories.d.ts +1 -0
- package/src/lib/components/SyncGroups/SyncGroups.SyncMaps.stories.d.ts +5 -1
- package/src/lib/components/SyncGroups/SyncGroups.TwoMapsSynced.stories.d.ts +5 -1
- package/src/lib/components/TimeSliderConnect/AutoUpdate.stories.d.ts +1 -0
- package/src/lib/components/TimeSliderConnect/TimeSliderConnect.stories.d.ts +6 -15
- package/src/lib/components/WMSLoader/WMSLoader.stories.d.ts +1 -0
- package/src/lib/components/MultiMapViewConnect/MultiMapView.stories.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,21 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "12.1.0",
|
|
12
12
|
"react-redux": "^8.1.3",
|
|
13
|
-
"@opengeoweb/store": "
|
|
14
|
-
"@opengeoweb/timeslider": "
|
|
13
|
+
"@opengeoweb/store": "12.1.0",
|
|
14
|
+
"@opengeoweb/timeslider": "12.1.0",
|
|
15
15
|
"@reduxjs/toolkit": "^1.9.7",
|
|
16
|
-
"@opengeoweb/webmap-react": "
|
|
17
|
-
"@opengeoweb/webmap": "
|
|
18
|
-
"@opengeoweb/theme": "
|
|
16
|
+
"@opengeoweb/webmap-react": "12.1.0",
|
|
17
|
+
"@opengeoweb/webmap": "12.1.0",
|
|
18
|
+
"@opengeoweb/theme": "12.1.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "
|
|
20
|
+
"@opengeoweb/layer-select": "12.1.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
+
"ol": "^10.4.0",
|
|
22
23
|
"react-sortablejs": "^6.1.4",
|
|
23
24
|
"sortablejs": "^1.15.1",
|
|
24
25
|
"@mui/system": "^6.1.1",
|
|
25
|
-
"@opengeoweb/snackbar": "
|
|
26
|
+
"@opengeoweb/snackbar": "12.1.0",
|
|
26
27
|
"react-router-dom": "^6.21.0",
|
|
27
28
|
"react-draggable": "^4.4.6",
|
|
28
29
|
"i18next": "^23.11.5",
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
"dompurify": "^3.0.6",
|
|
31
32
|
"@mui/material": "^6.1.1",
|
|
32
33
|
"@sentry/react": "^8.34.0",
|
|
33
|
-
"@opengeoweb/authentication": "
|
|
34
|
+
"@opengeoweb/authentication": "12.1.0",
|
|
34
35
|
"@tanstack/react-query": "^5.62.7",
|
|
35
|
-
"@opengeoweb/api": "
|
|
36
|
+
"@opengeoweb/api": "12.1.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"react": "18",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { componentsLookUp } from './componentsLookUp';
|
|
3
|
+
declare const meta: Meta<typeof componentsLookUp>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof componentsLookUp>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const ComponentsLookUpLightTheme: Story;
|
|
8
|
+
export declare const ComponentsLookUpDarkTheme: Story;
|
|
@@ -21,7 +21,7 @@ export interface ConfigurableMapConnectProps {
|
|
|
21
21
|
tileServerSettings?: TileServerSettings;
|
|
22
22
|
autoUpdateLayerId?: string;
|
|
23
23
|
autoTimeStepLayerId?: string;
|
|
24
|
-
|
|
24
|
+
initialBbox?: mapTypes.Bbox;
|
|
25
25
|
srs?: string;
|
|
26
26
|
dimensions?: mapTypes.Dimension[];
|
|
27
27
|
animationPayload?: mapTypes.AnimationPayloadType;
|
|
@@ -43,5 +43,6 @@ export interface ConfigurableMapConnectProps {
|
|
|
43
43
|
children?: React.ReactNode;
|
|
44
44
|
mapControls?: React.ReactNode;
|
|
45
45
|
shouldDisablePrefetching?: boolean;
|
|
46
|
+
useOl?: boolean;
|
|
46
47
|
}
|
|
47
48
|
export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { ConfigurableMapConnect } from './ConfigurableMapConnect';
|
|
4
|
+
declare const meta: Meta<typeof ConfigurableMapConnect>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof ConfigurableMapConnect>;
|
|
7
|
+
export declare const Component: Story;
|
|
6
8
|
export declare const ConfigurableMapDefault: () => React.ReactElement;
|
|
7
9
|
export declare const ConfigurableMapCustomized: () => React.ReactElement;
|
|
8
10
|
export declare const ConfigurableMapDrawControls: () => React.ReactElement;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { layerTypes } from '@opengeoweb/store';
|
|
2
|
+
import { IWMJSMap } from '@opengeoweb/webmap';
|
|
3
|
+
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
2
4
|
export interface GFIResult {
|
|
3
5
|
data: string;
|
|
4
6
|
isLoading: boolean;
|
|
@@ -8,10 +10,11 @@ export interface GFILayer {
|
|
|
8
10
|
url: string;
|
|
9
11
|
title: string;
|
|
10
12
|
}
|
|
13
|
+
export declare const getFeatureInfoUrl: (layer: layerTypes.Layer, wmjsMap: IWMJSMap | undefined, mapPinLocation: MapLocation | null) => string | undefined;
|
|
11
14
|
/**
|
|
12
15
|
* Make a list of GFI Layers to display.
|
|
13
16
|
* @param layers
|
|
14
17
|
* @param mapId
|
|
15
18
|
* @returns
|
|
16
19
|
*/
|
|
17
|
-
export declare const getLayersToUpdate: (layers: layerTypes.Layer[], mapId: string) => GFILayer[];
|
|
20
|
+
export declare const getLayersToUpdate: (mapPinLocation: MapLocation | null, layers: layerTypes.Layer[], mapId: string) => GFILayer[];
|
|
@@ -1,33 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Languages:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const LanguagesDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
parameters: {
|
|
19
|
-
layout: string;
|
|
20
|
-
zeplinLink: {
|
|
21
|
-
name: string;
|
|
22
|
-
link: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare const LanguagesSnaphot: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
tags: string[];
|
|
29
|
-
};
|
|
30
|
-
export declare const LanguagesSnapshotDark: {
|
|
31
|
-
(): React.ReactElement;
|
|
32
|
-
tags: string[];
|
|
33
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import LanguageSelect from './LanguageSelect';
|
|
3
|
+
declare const meta: Meta<typeof LanguageSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LanguageSelect>;
|
|
6
|
+
export declare const Languages: Story;
|
|
7
|
+
export declare const LanguagesDark: Story;
|
|
8
|
+
export declare const LanguagesSnaphot: Story;
|
|
9
|
+
export declare const LanguagesSnapshotDark: Story;
|
|
@@ -22,6 +22,7 @@ export interface DimensionSelectProps {
|
|
|
22
22
|
SingleValueComponent?: React.FC<SingleValueComponentProps>;
|
|
23
23
|
hideLatestDuplicate?: boolean;
|
|
24
24
|
skipLocalStyling?: boolean;
|
|
25
|
+
layerId: string;
|
|
25
26
|
}
|
|
26
27
|
declare const DimensionSelect: FC<DimensionSelectProps>;
|
|
27
28
|
export default DimensionSelect;
|
|
@@ -3,6 +3,7 @@ import { layerTypes, mapTypes } from '@opengeoweb/store';
|
|
|
3
3
|
import { DimensionValueMappings } from '../../../LayerManagerUtils';
|
|
4
4
|
declare const DimensionSelectValue: FC<{
|
|
5
5
|
selectedDimension?: mapTypes.Dimension;
|
|
6
|
+
generatedValues: string[];
|
|
6
7
|
icon?: ElementType;
|
|
7
8
|
tooltip: string;
|
|
8
9
|
isEnabled: boolean;
|
|
@@ -1,90 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare const LayerManagerLightThemeSmall: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
tags: string[];
|
|
29
|
-
};
|
|
30
|
-
export declare const LayerManagerLightThemeMedium: {
|
|
31
|
-
(): React.ReactElement;
|
|
32
|
-
parameters: {
|
|
33
|
-
zeplinLink: {
|
|
34
|
-
name: string;
|
|
35
|
-
link: string;
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
tags: string[];
|
|
39
|
-
};
|
|
40
|
-
export declare const LayerManagerDarkTheme: {
|
|
41
|
-
(): React.ReactElement;
|
|
42
|
-
parameters: {
|
|
43
|
-
zeplinLink: {
|
|
44
|
-
name: string;
|
|
45
|
-
link: string;
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
tags: string[];
|
|
49
|
-
};
|
|
50
|
-
export declare const DockedLayerManagerDarkTheme: {
|
|
51
|
-
(): React.ReactElement;
|
|
52
|
-
parameters: {
|
|
53
|
-
zeplinLink: {
|
|
54
|
-
name: string;
|
|
55
|
-
link: string;
|
|
56
|
-
}[];
|
|
57
|
-
};
|
|
58
|
-
tags: string[];
|
|
59
|
-
};
|
|
60
|
-
export declare const LayerManagerDarkThemeSmall: {
|
|
61
|
-
(): React.ReactElement;
|
|
62
|
-
tags: string[];
|
|
63
|
-
};
|
|
64
|
-
export declare const LayerManagerDarkThemeMedium: {
|
|
65
|
-
(): React.ReactElement;
|
|
66
|
-
parameters: {
|
|
67
|
-
zeplinLink: {
|
|
68
|
-
name: string;
|
|
69
|
-
link: string;
|
|
70
|
-
}[];
|
|
71
|
-
};
|
|
72
|
-
tags: string[];
|
|
73
|
-
};
|
|
74
|
-
export declare const LayerManagerLoadingState: () => React.ReactElement;
|
|
75
|
-
export declare const LayerManagerWithErrorLight: {
|
|
76
|
-
(): React.ReactElement;
|
|
77
|
-
tags: string[];
|
|
78
|
-
};
|
|
79
|
-
export declare const LayerManagerWithErrorDark: {
|
|
80
|
-
(): React.ReactElement;
|
|
81
|
-
tags: string[];
|
|
82
|
-
};
|
|
83
|
-
export declare const LayerManagerCollapsedLight: {
|
|
84
|
-
(): React.ReactElement;
|
|
85
|
-
tags: string[];
|
|
86
|
-
};
|
|
87
|
-
export declare const LayerManagerCollapsedDark: {
|
|
88
|
-
(): React.ReactElement;
|
|
89
|
-
tags: string[];
|
|
90
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import LayerManager from './LayerManager';
|
|
3
|
+
declare const meta: Meta<typeof LayerManager>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LayerManager>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const LayerManagerLightTheme: Story;
|
|
8
|
+
export declare const DockedLayerManagerLightTheme: Story;
|
|
9
|
+
export declare const LayerManagerLightThemeSmall: Story;
|
|
10
|
+
export declare const LayerManagerLightThemeMedium: Story;
|
|
11
|
+
export declare const LayerManagerDarkTheme: Story;
|
|
12
|
+
export declare const DockedLayerManagerDarkTheme: Story;
|
|
13
|
+
export declare const LayerManagerDarkThemeSmall: Story;
|
|
14
|
+
export declare const LayerManagerDarkThemeMedium: Story;
|
|
15
|
+
export declare const LayerManagerLoadingState: Story;
|
|
16
|
+
export declare const LayerManagerWithErrorLight: Story;
|
|
17
|
+
export declare const LayerManagerWithErrorDark: Story;
|
|
18
|
+
export declare const LayerManagerCollapsedLight: Story;
|
|
19
|
+
export declare const LayerManagerCollapsedDark: Story;
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const LayerManagerConnectDarkTheme: {
|
|
16
|
-
(): React.ReactElement;
|
|
17
|
-
parameters: {
|
|
18
|
-
zeplinLink: {
|
|
19
|
-
name: string;
|
|
20
|
-
link: string;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { LayerManagerConnect } from '.';
|
|
4
|
+
declare const meta: Meta<typeof LayerManagerConnect>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof LayerManagerConnect>;
|
|
7
|
+
export declare const LayerManagerConnectLightTheme: Story;
|
|
8
|
+
export declare const LayerManagerConnectDarkTheme: Story;
|
|
24
9
|
export declare const LayerManagerConnectWithMultiMaps: () => React.ReactElement;
|
|
25
10
|
export declare const LayerManagerConnectWithTiledMap: () => React.ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const MapWithLayerSelectDemoLightTheme:
|
|
7
|
-
export declare const MapWithLayerSelectDemoDarkTheme:
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import LayerManagerMapButtonConnect from '../LayerManagerMapButtonConnect';
|
|
3
|
+
declare const meta: Meta<typeof LayerManagerMapButtonConnect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LayerManagerMapButtonConnect>;
|
|
6
|
+
export declare const MapWithLayerSelectDemoLightTheme: Story;
|
|
7
|
+
export declare const MapWithLayerSelectDemoDarkTheme: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
+
import { StyleLike } from 'ol/style/Style';
|
|
4
|
+
import { HoverSelect } from '@opengeoweb/webmap-react';
|
|
5
|
+
interface OpenLayersFeatureLayerConnectProps {
|
|
6
|
+
layer: layerTypes.FeatureLayer;
|
|
7
|
+
layerId?: string;
|
|
8
|
+
zIndex: number;
|
|
9
|
+
style: StyleLike;
|
|
10
|
+
hoverSelect?: HoverSelect;
|
|
11
|
+
}
|
|
12
|
+
export declare const OpenLayersFeatureLayerConnect: React.FC<OpenLayersFeatureLayerConnectProps>;
|
|
13
|
+
export {};
|
package/src/lib/components/MapViewConnect/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { layerActions, layerTypes } from '@opengeoweb/store';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
6
|
+
tags: string[];
|
|
6
7
|
};
|
|
7
8
|
export default _default;
|
|
8
9
|
export interface LayerChangeOpacityInputProps {
|
package/src/lib/components/MapViewConnect/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
5
|
+
tags: string[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const MapModuleOverDefaultMap: () => React.ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Bbox } from '@opengeoweb/webmap';
|
|
2
3
|
import { MapViewProps } from '@opengeoweb/webmap-react';
|
|
3
|
-
export interface
|
|
4
|
+
export interface MapControlsProps {
|
|
4
5
|
mapControlsPositionTop?: number;
|
|
5
6
|
search?: boolean;
|
|
6
7
|
zoomControls?: boolean;
|
|
@@ -13,11 +14,12 @@ export interface MapControls {
|
|
|
13
14
|
export interface MapViewConnectProps extends MapViewProps {
|
|
14
15
|
mapId: string;
|
|
15
16
|
displayTimeInMap?: boolean;
|
|
16
|
-
controls?:
|
|
17
|
+
controls?: MapControlsProps;
|
|
17
18
|
showScaleBar?: boolean;
|
|
18
19
|
children?: React.ReactNode;
|
|
19
20
|
showLayerInfo?: boolean;
|
|
20
21
|
passiveMap?: boolean;
|
|
22
|
+
initialBbox?: Bbox;
|
|
21
23
|
}
|
|
22
24
|
export declare const ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION";
|
|
23
25
|
export declare const ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MapViewConnectProps } from './MapViewConnect';
|
|
3
|
+
/**
|
|
4
|
+
* Connected component used to display the map and selected layers.
|
|
5
|
+
* Includes options to disable the map controls and legend.
|
|
6
|
+
*
|
|
7
|
+
* Expects the following props:
|
|
8
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
9
|
+
* @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
|
|
10
|
+
* @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
|
|
11
|
+
* @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
|
|
12
|
+
* @example
|
|
13
|
+
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
|
|
14
|
+
*/
|
|
15
|
+
declare const OlMapViewConnect: React.FC<MapViewConnectProps>;
|
|
16
|
+
export default OlMapViewConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface OlMapViewLayerConnectProps {
|
|
3
|
+
layerId: string | undefined;
|
|
4
|
+
mapId: string;
|
|
5
|
+
zIndex: number;
|
|
6
|
+
debugMode: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const OlMapViewLayerConnect: (layerProps: OlMapViewLayerConnectProps) => React.ReactElement | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TimeSliderStartCenterEndTime } from '@opengeoweb/store';
|
|
2
|
+
import { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
import { MapLocation, OnInitializeLayerProps, TimeContextType, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
4
|
+
import { Feature } from 'ol';
|
|
5
|
+
export declare const makePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartCenterEndTime, animationStartTime: string | undefined, animationEndTime: string | undefined, isAnimating: boolean) => TimeContextType;
|
|
6
|
+
export declare const makeLayerInfoPayload: (payload: OnInitializeLayerProps, mapDimensions: Dimension[], mapId: string) => UpdateLayerInfoPayload;
|
|
7
|
+
export declare const getCenterOfLinkedFeature: (feature: Feature | undefined, srs: string) => MapLocation | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CoreAppStore } from '@opengeoweb/store';
|
|
2
|
+
import { Store } from '@reduxjs/toolkit';
|
|
3
|
+
import { View } from 'ol';
|
|
4
|
+
interface UseGetOpenLayersViewValue {
|
|
5
|
+
view?: View;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useGetOpenLayersView: (mapId: string, store: Store<CoreAppStore>) => UseGetOpenLayersViewValue;
|
|
9
|
+
export {};
|