@opengeoweb/core 12.6.0 → 12.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.
- package/index.esm.js +2629 -3304
- package/package.json +12 -11
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -2
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +0 -1
- package/src/lib/components/FeatureInfo/utils.d.ts +2 -3
- package/src/lib/components/LocationSearch/utils.d.ts +1 -5
- package/src/lib/components/MapViewConnect/MapViewConnect.DoubleMap.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.Errors.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.InitialBBoxAndWithout.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.LayerActions.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.MapPin.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.MultiMapLayerManager.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.SelectorTest.stories.d.ts +2 -2
- package/src/lib/components/MapViewConnect/MapViewConnect.SetBaseLayers.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.ToggleControls.stories.d.ts +1 -1
- package/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +10 -1
- package/src/lib/components/MapViewConnect/index.d.ts +0 -1
- package/src/lib/components/MultiMapViewConnect/storyUtils/mapPresets.d.ts +10 -10
- package/src/lib/index.d.ts +1 -1
- package/src/lib/utils/storyUtils.d.ts +33 -0
- package/src/lib/components/FeatureInfo/utils.spec.d.ts +0 -1
- package/src/lib/components/MapControlsConnect/ZoomControlsConnect.d.ts +0 -6
- package/src/lib/components/MapControlsConnect/ZoomControlsConnect.spec.d.ts +0 -1
- package/src/lib/components/MapControlsConnect/index.d.ts +0 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.FeatureLayers.stories.d.ts +0 -8
- package/src/lib/components/MapViewConnect/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts +0 -8
- package/src/lib/components/MapViewConnect/MapViewConnect.d.ts +0 -41
- package/src/lib/components/MapViewConnect/MapViewConnect.spec.d.ts +0 -1
- package/src/lib/components/MapViewConnect/types.d.ts +0 -8
- package/src/lib/components/MapViewConnect/useKeyboardZoomAndPan.d.ts +0 -3
- package/src/lib/components/MapViewConnect/useKeyboardZoomAndPan.spec.d.ts +0 -1
- package/src/lib/components/MapViewConnect/useTouchZoomPan.d.ts +0 -1
- package/src/lib/components/MapViewConnect/useTouchZoomPan.spec.d.ts +0 -1
- /package/{index.esm.d.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.8.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/timeslider": "12.
|
|
13
|
+
"@opengeoweb/store": "12.8.0",
|
|
14
|
+
"@opengeoweb/timeslider": "12.8.0",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "12.
|
|
17
|
-
"@opengeoweb/webmap": "12.
|
|
18
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/webmap-react": "12.8.0",
|
|
17
|
+
"@opengeoweb/webmap": "12.8.0",
|
|
18
|
+
"@opengeoweb/theme": "12.8.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "12.
|
|
20
|
+
"@opengeoweb/layer-select": "12.8.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.0.1",
|
|
26
|
-
"@opengeoweb/snackbar": "12.
|
|
26
|
+
"@opengeoweb/snackbar": "12.8.0",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@sentry/react": "^8.34.0",
|
|
34
34
|
"@tanstack/react-query": "^5.69.2",
|
|
35
|
-
"@opengeoweb/api": "12.
|
|
35
|
+
"@opengeoweb/api": "12.8.0",
|
|
36
|
+
"@types/geojson": "^7946.0.14"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"react": "18",
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"module": "./index.esm.js",
|
|
43
44
|
"type": "module",
|
|
44
45
|
"main": "./index.esm.js",
|
|
45
|
-
"types": "./index.
|
|
46
|
+
"types": "./index.d.ts"
|
|
46
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mapTypes } from '@opengeoweb/store';
|
|
3
|
-
import { PlotPreset,
|
|
3
|
+
import { PlotPreset, TimeSeriesService } from '@opengeoweb/shared';
|
|
4
4
|
import { InitialHarmTempAndPrecipProps } from '../MultiMapViewConnect/HarmoniePresets';
|
|
5
5
|
import { ModelRunIntervalProps } from '../MultiMapViewConnect/ModelRunInterval';
|
|
6
6
|
interface InitialMultiMapProps {
|
|
@@ -24,7 +24,6 @@ export interface InitialMapProps {
|
|
|
24
24
|
export interface InitialTimeSeriesProps {
|
|
25
25
|
plotPreset: PlotPreset;
|
|
26
26
|
services: TimeSeriesService[];
|
|
27
|
-
predefinedLocations?: TimeSeriesPresetLocation[];
|
|
28
27
|
hideLocationMarkers?: boolean;
|
|
29
28
|
}
|
|
30
29
|
export type InitialProps = InitialMapProps | InitialMultiMapProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | mapTypes.MapPresetInitialProps | InitialSliderProps | InitialTimeSeriesProps | Record<string, unknown>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { layerTypes } from '@opengeoweb/store';
|
|
2
|
-
import { IWMJSMap } from '@opengeoweb/webmap';
|
|
3
2
|
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
4
3
|
export interface GFIResult {
|
|
5
4
|
data: string;
|
|
@@ -10,11 +9,11 @@ export interface GFILayer {
|
|
|
10
9
|
url: string;
|
|
11
10
|
title: string;
|
|
12
11
|
}
|
|
13
|
-
export declare const getFeatureInfoUrl: (layer: layerTypes.Layer,
|
|
12
|
+
export declare const getFeatureInfoUrl: (layer: layerTypes.Layer, mapPinLocation: MapLocation | null) => string | undefined;
|
|
14
13
|
/**
|
|
15
14
|
* Make a list of GFI Layers to display.
|
|
16
15
|
* @param layers
|
|
17
16
|
* @param mapId
|
|
18
17
|
* @returns
|
|
19
18
|
*/
|
|
20
|
-
export declare const getLayersToUpdate: (mapPinLocation: MapLocation | null, layers: layerTypes.Layer[]
|
|
19
|
+
export declare const getLayersToUpdate: (mapPinLocation: MapLocation | null, layers: layerTypes.Layer[]) => GFILayer[];
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { MapDrawDrawFunctionArgs } from '@opengeoweb/webmap-react';
|
|
2
1
|
import { GeoJsonProperties } from 'geojson';
|
|
3
2
|
import { LocationDetail } from './types';
|
|
4
|
-
export declare const myLocationDrawFunction: (args: MapDrawDrawFunctionArgs) => void;
|
|
5
|
-
export declare const selectedLocationDrawFunction: (args: MapDrawDrawFunctionArgs) => void;
|
|
6
3
|
export declare const geometryStyling: GeoJsonProperties;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const useDrawOnMap: (mapId: string, drawFunction: (args: MapDrawDrawFunctionArgs) => void) => [(location?: LocationDetail) => void];
|
|
4
|
+
export declare const useDrawOnMap: (mapId: string) => [(location?: LocationDetail) => void];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
package/src/lib/components/MapViewConnect/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { layerActions, layerTypes } from '@opengeoweb/store';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: React.FC<import("./
|
|
5
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
6
6
|
tags: string[];
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { OlMapViewConnectProps } from './OlMapViewConnect';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: React.FC<
|
|
5
|
+
component: React.FC<OlMapViewConnectProps>;
|
|
6
6
|
tags: string[];
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<import("./
|
|
4
|
+
component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Bbox, TileServerSettings } from '@opengeoweb/webmap';
|
|
3
3
|
import { Source } from '@opengeoweb/shared';
|
|
4
|
-
|
|
4
|
+
export interface MapControlsProps {
|
|
5
|
+
mapControlsPositionTop?: number;
|
|
6
|
+
search?: boolean;
|
|
7
|
+
zoomControls?: boolean;
|
|
8
|
+
layerManagerAndLegend?: boolean;
|
|
9
|
+
multiLegend?: boolean;
|
|
10
|
+
dimensionSelect?: boolean;
|
|
11
|
+
getFeatureInfo?: boolean;
|
|
12
|
+
additionalMapControls?: React.ReactNode;
|
|
13
|
+
}
|
|
5
14
|
export interface OlMapViewConnectProps {
|
|
6
15
|
mapId: string;
|
|
7
16
|
children?: React.ReactNode;
|
|
@@ -6,7 +6,7 @@ export declare const mapPresetRadar: {
|
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
style: string;
|
|
8
8
|
id: string;
|
|
9
|
-
layerType: import("
|
|
9
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
10
10
|
}[];
|
|
11
11
|
proj: {
|
|
12
12
|
bbox: {
|
|
@@ -23,7 +23,7 @@ export declare const mapPresetObsTA: {
|
|
|
23
23
|
service: string;
|
|
24
24
|
name: string;
|
|
25
25
|
id: string;
|
|
26
|
-
layerType: import("
|
|
26
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
27
27
|
}[];
|
|
28
28
|
proj: {
|
|
29
29
|
bbox: {
|
|
@@ -40,7 +40,7 @@ export declare const mapPresetObsWind: {
|
|
|
40
40
|
service: string;
|
|
41
41
|
name: string;
|
|
42
42
|
id: string;
|
|
43
|
-
layerType: import("
|
|
43
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
44
44
|
}[];
|
|
45
45
|
proj: {
|
|
46
46
|
bbox: {
|
|
@@ -57,7 +57,7 @@ export declare const mapPresetObsPP: {
|
|
|
57
57
|
service: string;
|
|
58
58
|
name: string;
|
|
59
59
|
id: string;
|
|
60
|
-
layerType: import("
|
|
60
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
61
61
|
}[];
|
|
62
62
|
proj: {
|
|
63
63
|
bbox: {
|
|
@@ -74,7 +74,7 @@ export declare const mapPresetObsRH: {
|
|
|
74
74
|
service: string;
|
|
75
75
|
name: string;
|
|
76
76
|
id: string;
|
|
77
|
-
layerType: import("
|
|
77
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
78
78
|
}[];
|
|
79
79
|
proj: {
|
|
80
80
|
bbox: {
|
|
@@ -91,7 +91,7 @@ export declare const mapPresetObsQG: {
|
|
|
91
91
|
service: string;
|
|
92
92
|
name: string;
|
|
93
93
|
id: string;
|
|
94
|
-
layerType: import("
|
|
94
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
95
95
|
}[];
|
|
96
96
|
proj: {
|
|
97
97
|
bbox: {
|
|
@@ -109,7 +109,7 @@ export declare const mapPresetEumetsat: {
|
|
|
109
109
|
name: string;
|
|
110
110
|
enabled: boolean;
|
|
111
111
|
id: string;
|
|
112
|
-
layerType: import("
|
|
112
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
113
113
|
}[];
|
|
114
114
|
proj: {
|
|
115
115
|
bbox: {
|
|
@@ -126,7 +126,7 @@ export declare const mapPresetHarmoniePrecipitationFlux: {
|
|
|
126
126
|
service: string;
|
|
127
127
|
name: string;
|
|
128
128
|
id: string;
|
|
129
|
-
layerType: import("
|
|
129
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
130
130
|
enabled: boolean;
|
|
131
131
|
}[];
|
|
132
132
|
proj: {
|
|
@@ -144,7 +144,7 @@ export declare const mapPresetHarmonieTemperature2m: {
|
|
|
144
144
|
service: string;
|
|
145
145
|
name: string;
|
|
146
146
|
id: string;
|
|
147
|
-
layerType: import("
|
|
147
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
148
148
|
enabled: boolean;
|
|
149
149
|
}[];
|
|
150
150
|
proj: {
|
|
@@ -162,7 +162,7 @@ export declare const mapPresetHarmoniePressureMSL: {
|
|
|
162
162
|
service: string;
|
|
163
163
|
name: string;
|
|
164
164
|
id: string;
|
|
165
|
-
layerType: import("
|
|
165
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
166
166
|
enabled: boolean;
|
|
167
167
|
}[];
|
|
168
168
|
proj: {
|
package/src/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from './components/MultiMapViewConnect/MultiMapViewConnect';
|
|
|
7
7
|
export * from './components/MultiMapViewConnect/HarmoniePresets';
|
|
8
8
|
export * from './components/MapViewConnect';
|
|
9
9
|
export { LegendConnect, LegendMapButtonConnect, } from './components/LegendConnect';
|
|
10
|
-
export { ZoomControlConnect } from './components/MapControlsConnect';
|
|
11
10
|
export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerManager, useFetchServices, };
|
|
12
11
|
export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
|
|
13
12
|
export * as testLayers from './utils/testLayers';
|
|
@@ -20,3 +19,4 @@ export * from './components/TimeSliderConnect';
|
|
|
20
19
|
export * from './components/LayerInfoConnect';
|
|
21
20
|
export * from './components/SentryRecordButton';
|
|
22
21
|
export * from './components/LanguageSelect';
|
|
22
|
+
export * as storyUtils from './utils/storyUtils';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { layerTypes, mapTypes } from '@opengeoweb/store';
|
|
3
|
+
export declare const initialBbox: {
|
|
4
|
+
srs: string;
|
|
5
|
+
bbox: {
|
|
6
|
+
left: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
right: number;
|
|
9
|
+
top: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
interface UseDefaultMapSettingsProps {
|
|
13
|
+
mapId?: string;
|
|
14
|
+
layers?: layerTypes.Layer[];
|
|
15
|
+
baseLayers?: layerTypes.Layer[];
|
|
16
|
+
bbox?: mapTypes.Bbox;
|
|
17
|
+
srs?: string;
|
|
18
|
+
shouldAutoUpdate?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const useDefaultMapSettings: (props?: UseDefaultMapSettingsProps) => void;
|
|
21
|
+
interface ExampleLayer {
|
|
22
|
+
title: string;
|
|
23
|
+
layers: layerTypes.Layer[];
|
|
24
|
+
}
|
|
25
|
+
interface ActionCardProps {
|
|
26
|
+
onClickBtn?: (action: ExampleLayer) => void;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
exampleLayers?: ExampleLayer[];
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export declare const ActionCard: React.FC<ActionCardProps>;
|
|
33
|
+
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ZoomControlConnect } from './ZoomControlsConnect';
|
package/src/lib/components/MapViewConnect/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
5
|
-
tags: string[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const MapModuleOverDefaultMap: () => React.ReactElement;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Bbox } from '@opengeoweb/webmap';
|
|
3
|
-
import { MapViewProps } from '@opengeoweb/webmap-react';
|
|
4
|
-
import { Source } from '@opengeoweb/shared';
|
|
5
|
-
export interface MapControlsProps {
|
|
6
|
-
mapControlsPositionTop?: number;
|
|
7
|
-
search?: boolean;
|
|
8
|
-
zoomControls?: boolean;
|
|
9
|
-
layerManagerAndLegend?: boolean;
|
|
10
|
-
multiLegend?: boolean;
|
|
11
|
-
dimensionSelect?: boolean;
|
|
12
|
-
getFeatureInfo?: boolean;
|
|
13
|
-
additionalMapControls?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export interface MapViewConnectProps extends MapViewProps {
|
|
16
|
-
mapId: string;
|
|
17
|
-
displayTimeInMap?: boolean;
|
|
18
|
-
controls?: MapControlsProps;
|
|
19
|
-
showScaleBar?: boolean;
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
showLayerInfo?: boolean;
|
|
22
|
-
passiveMap?: boolean;
|
|
23
|
-
initialBbox?: Bbox;
|
|
24
|
-
source?: Source;
|
|
25
|
-
}
|
|
26
|
-
export declare const ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION";
|
|
27
|
-
export declare const ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO";
|
|
28
|
-
/**
|
|
29
|
-
* Connected component used to display the map and selected layers.
|
|
30
|
-
* Includes options to disable the map controls and legend.
|
|
31
|
-
*
|
|
32
|
-
* Expects the following props:
|
|
33
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
34
|
-
* @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
|
|
35
|
-
* @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
|
|
36
|
-
* @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
|
|
37
|
-
* @example
|
|
38
|
-
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
|
|
39
|
-
*/
|
|
40
|
-
declare const MapViewConnect: React.FC<MapViewConnectProps>;
|
|
41
|
-
export default MapViewConnect;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const isDialogOpen: (mapRef: HTMLElement | null) => boolean;
|
|
2
|
-
export declare const isMapKeyboardControlsAllowed: (target: Element, mapRef: HTMLElement | null) => boolean;
|
|
3
|
-
export declare const useKeyboardZoomAndPan: (mapIsActive: boolean, mapId: string, mapRef: HTMLElement | null) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTouchZoomPan: (mapIsActive: boolean, mapId: string) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|