@opengeoweb/core 2.1.0 → 2.1.1
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/core.esm.js +712 -317
- package/core.umd.js +655 -257
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +47 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/ComponentsLookUp/componentsLookup.spec.d.ts +1 -0
- package/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/lib/components/{SyncGroups → ConfigurableConnectedMap}/ConfigurableConnectedMap.d.ts +18 -2
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts +1 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +6 -0
- package/lib/components/ConfigurableConnectedMap/index.d.ts +1 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +3 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -9
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +2 -0
- package/lib/components/MapView/MapView.Error.stories.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +25 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelect.stories.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +7 -0
- package/lib/index.d.ts +2 -1
- package/lib/store/mapStore/map/actions.d.ts +2 -2
- package/lib/store/mapStore/map/reducer.d.ts +7 -0
- package/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/lib/utils/getCapabilities.d.ts +6 -0
- package/package.json +7 -7
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
export interface MapPreset {
|
|
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
|
+
}
|
|
17
|
+
interface InitialMultiMapProps {
|
|
18
|
+
mapPreset: MapPreset[];
|
|
19
|
+
syncGroupsIds: string[];
|
|
20
|
+
shouldShowZoomControls?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface InitialMapProps {
|
|
23
|
+
mapPreset: MapPreset;
|
|
24
|
+
syncGroupsIds: string[];
|
|
25
|
+
shouldShowZoomControls?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface InitialSliderProps {
|
|
28
|
+
sliderPreset: {
|
|
29
|
+
mapId: string;
|
|
30
|
+
};
|
|
31
|
+
syncGroupsIds: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare type InitialProps = InitialMultiMapProps | InitialMapProps | InitialSliderProps | InitialHarmTempAndPrecipProps | InitialHarmRefTimeProps;
|
|
34
|
+
/**
|
|
35
|
+
* The lookup table is for registering your own components with the screenmanager.
|
|
36
|
+
* @param payload
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare type SupportedComponentTypes = 'ConfigurableMap' | 'ConfigurableMapWithSlider' | 'HarmRefTimePreset' | 'HarmonieTempAndPrecipPreset' | 'ConfigurableMultiMapWithSlider' | 'TimeSlider';
|
|
40
|
+
export interface ComponentsLookUpPayload {
|
|
41
|
+
componentType: SupportedComponentTypes;
|
|
42
|
+
id: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
initialProps: InitialProps;
|
|
45
|
+
}
|
|
46
|
+
export declare const componentsLookUp: ({ componentType, initialProps, id, }: ComponentsLookUpPayload) => React.ReactElement;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './componentsLookUp';
|
package/lib/components/{SyncGroups → ConfigurableConnectedMap}/ConfigurableConnectedMap.d.ts
RENAMED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
-
|
|
3
|
+
import { SpeedFactorType } from '../TimeSlider/TimeSliderUtils';
|
|
4
|
+
export declare const defaultBbox: {
|
|
5
|
+
srs: string;
|
|
6
|
+
bbox: {
|
|
7
|
+
left: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
right: number;
|
|
10
|
+
top: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export interface AnimationPayloadType {
|
|
14
|
+
duration?: number;
|
|
15
|
+
interval?: number;
|
|
16
|
+
speed?: SpeedFactorType;
|
|
17
|
+
}
|
|
18
|
+
export interface ConfigurableConnectedMapProps {
|
|
4
19
|
title?: string;
|
|
5
20
|
id?: string;
|
|
6
21
|
className?: string;
|
|
@@ -13,7 +28,8 @@ interface ConfigurableConnectedMapProps {
|
|
|
13
28
|
displayLayerManagerButtonInMap?: boolean;
|
|
14
29
|
displayDimensionSelectButtonInMap?: boolean;
|
|
15
30
|
shouldAutoUpdate?: boolean;
|
|
31
|
+
shouldAnimate?: boolean;
|
|
32
|
+
animationPayload?: AnimationPayloadType;
|
|
16
33
|
shouldShowZoomControls?: boolean;
|
|
17
34
|
}
|
|
18
35
|
export declare const ConfigurableConnectedMap: React.FC<ConfigurableConnectedMapProps>;
|
|
19
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigurableConnectedMap';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
+
import { AnimationPayloadType } from '../ConfigurableConnectedMap';
|
|
3
4
|
export interface ConfigurableMapWithSliderConnectProps {
|
|
4
5
|
id?: string;
|
|
5
6
|
activeLayerId?: string;
|
|
6
7
|
shouldAutoUpdate?: boolean;
|
|
8
|
+
shouldAnimate?: boolean;
|
|
7
9
|
title?: string;
|
|
8
10
|
layers: Layer[];
|
|
9
11
|
baseLayer?: Layer;
|
|
10
12
|
bbox?: Bbox;
|
|
11
13
|
srs?: string;
|
|
12
14
|
shouldShowZoomControls?: boolean;
|
|
15
|
+
animationPayload?: AnimationPayloadType;
|
|
13
16
|
}
|
|
14
17
|
export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
export declare const LayerManagerLightTheme: {
|
|
3
|
+
(): React.ReactElement;
|
|
4
|
+
storyName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const LayerManagerDarkTheme: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
4
9
|
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const LayerManagerDemoLightTheme: React.FC;
|
|
7
|
-
export declare const LayerManagerDemoDarkTheme: React.FC;
|
|
8
|
-
export declare const LayerManagerUnconnectedDemoLightTheme: React.FC;
|
|
9
|
-
export declare const LayerManagerUnconnectedDemoDarkTheme: React.FC;
|
|
10
|
-
export declare const LayerManagerStoryWithMultiMaps: () => React.ReactElement;
|
|
11
|
-
export declare const MultiMapLayerManager: () => React.ReactElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const LayerManagerConnectLightTheme: React.FC;
|
|
3
|
+
export declare const LayerManagerConnectDarkTheme: React.FC;
|
|
4
|
+
export declare const LayerManagerConnectWithMultiMaps: () => React.ReactElement;
|
|
5
|
+
export declare const LayerManagerConnectWithTiledMap: () => React.ReactElement;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Service } from '../../WMSLoader/services';
|
|
2
3
|
interface LayerSelectConnectProps {
|
|
3
4
|
bounds?: string;
|
|
4
5
|
showTitle?: boolean;
|
|
6
|
+
preloadedServices?: Service[];
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* LayerSelectConnect is a component that is opened from LayerManager
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const DimensionSelectElevationLight: {
|
|
3
|
+
(): React.ReactElement;
|
|
4
|
+
storyName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DimensionSelectElevationDark: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DimensionSelectEnsembleMemberLight: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const DimensionSelectEnsembleMemberDark: {
|
|
15
|
+
(): React.ReactElement;
|
|
16
|
+
storyName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const DimensionSelectInvalidSyncLight: {
|
|
19
|
+
(): React.ReactElement;
|
|
20
|
+
storyName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const DimensionSelectInvalidSyncDark: {
|
|
23
|
+
(): React.ReactElement;
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './MultiMapMultiDimensionSelect.stories';
|
|
2
2
|
export * from './EnsembleDimensionExample.stories';
|
|
3
3
|
export * from './MultiDimensionSelectConnect.stories';
|
|
4
|
+
export * from './DimensionSelectDialogConnect.stories';
|
|
4
5
|
declare const _default: {
|
|
5
6
|
title: string;
|
|
6
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
3
|
import * as mapActions from '../../../../store/mapStore/actions';
|
|
4
|
+
export declare const animationIntervalDefault = 5;
|
|
4
5
|
export interface PlayButtonConnectProps {
|
|
5
6
|
mapId: string;
|
|
6
7
|
isAnimating?: boolean;
|
|
@@ -4,11 +4,18 @@ import { DateInterval } from '@opengeoweb/webmap';
|
|
|
4
4
|
import { Dimension, Layer, Scale } from '../../store/mapStore/types';
|
|
5
5
|
import CanvasComponent from '../CanvasComponent/CanvasComponent';
|
|
6
6
|
export declare const defaultAnimationDelayAtStart = 250;
|
|
7
|
+
export declare const defaultDelay = 1000;
|
|
8
|
+
export declare const speedFactors: SpeedFactorType[];
|
|
9
|
+
export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
7
10
|
export interface TimeBounds {
|
|
8
11
|
selectedTime: number;
|
|
9
12
|
startTime: number;
|
|
10
13
|
endTime: number;
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
17
|
+
*/
|
|
18
|
+
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
12
19
|
/**
|
|
13
20
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
14
21
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -23,8 +23,9 @@ export { TimeSliderConnect } from './components/TimeSlider';
|
|
|
23
23
|
export { MapControls } from './components/Mapcontrols';
|
|
24
24
|
export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiTypes, syncGroupActions, };
|
|
25
25
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
26
|
+
export * from './components/ComponentsLookUp';
|
|
26
27
|
export * from './components/ConfigurableMapWithSlider';
|
|
27
|
-
export { ConfigurableConnectedMap } from './components/
|
|
28
|
+
export { ConfigurableConnectedMap } from './components/ConfigurableConnectedMap';
|
|
28
29
|
export * from './store/mapStore/utils/helpers';
|
|
29
30
|
export { TooltipSelect };
|
|
30
31
|
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
@@ -38,8 +38,8 @@ export declare const mapUpdateAllMapDimensions: (payload: UpdateAllMapDimensions
|
|
|
38
38
|
/**
|
|
39
39
|
* Starts the animation for a map.
|
|
40
40
|
*
|
|
41
|
-
* Example: mapStartAnimation({mapId:'mapId1', start: 'someISOTime', end: 'someISOTime', interval:
|
|
42
|
-
* @param {object} payload Object with mapId: string, start: Moment, end: Moment and interval: number (in
|
|
41
|
+
* Example: mapStartAnimation({mapId:'mapId1', start: 'someISOTime', end: 'someISOTime', interval: 15})
|
|
42
|
+
* @param {object} payload Object with mapId: string, start: Moment, end: Moment and interval: number (in minutes), timeList?: TimeListType[]
|
|
43
43
|
*/
|
|
44
44
|
export declare const mapStartAnimation: (payload: SetMapAnimationStartPayload) => MapActions;
|
|
45
45
|
/**
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { WebMapState, MapActions } from './types';
|
|
2
2
|
import { LayerActions } from '../layers/types';
|
|
3
3
|
import { GenericSyncActions } from '../../generic/synchronizationActions/types';
|
|
4
|
+
/**
|
|
5
|
+
* Checks if the layer id is already taken in one of the maps.
|
|
6
|
+
* @param state The WebMapState
|
|
7
|
+
* @param layerIdToCheck The layerId to check
|
|
8
|
+
* @returns true if the layerId is already taken somewhere else.
|
|
9
|
+
*/
|
|
10
|
+
export declare const checkIfMapLayerIdIsAlreadyTaken: (state: WebMapState, layerId: string) => boolean;
|
|
4
11
|
export declare const initialState: WebMapState;
|
|
5
12
|
export declare const reducer: (state: WebMapState, action: MapActions | LayerActions | GenericSyncActions) => WebMapState;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE WMT_MS_Capabilities SYSTEM \"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd\" [\n <!ELEMENT VendorSpecificCapabilities EMPTY>\n]>\n<!-- end of DOCTYPE declaration -->\n<WMT_MS_Capabilities version=\"1.1.1\">\n <Service>\n <Name>OGC:WMS</Name>\n <Title>RADAR</Title>\n <Abstract>This service demonstrates how the ADAGUC server can be used to create OGC services.</Abstract>\n <ServerInfo>ADAGUCServer version 2.5.8, of Apr 13 2021 07:55:43</ServerInfo>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n <ContactInformation />\n </Service>\n <Capability>\n <Request>\n <GetCapabilities>\n <Format>application/vnd.ogc.wms_xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetCapabilities>\n <GetMap>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetMap>\n <GetFeatureInfo>\n <Format>text/plain</Format>\n <Format>text/html</Format>\n <Format>text/xml</Format>\n <Format>application/vnd.ogc.gml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetFeatureInfo>\n <DescribeLayer>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </DescribeLayer>\n <GetLegendGraphic>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetLegendGraphic>\n <GetStyles>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetStyles>\n </Request>\n <Exception>\n <Format>application/vnd.ogc.se_xml</Format>\n <Format>application/vnd.ogc.se_inimage</Format>\n <Format>application/vnd.ogc.se_blank</Format>\n </Exception>\n <VendorSpecificCapabilities />\n <UserDefinedSymbolization SupportSLD=\"1\" UserLayer=\"0\" UserStyle=\"1\" RemoteWFS=\"0\" />\n <Layer>\n <Title>WMS of RADAR</Title>\n <SRS>EPSG:3411</SRS>\n <SRS>EPSG:3412</SRS>\n <SRS>EPSG:3575</SRS>\n <SRS>EPSG:3857</SRS>\n <SRS>EPSG:4258</SRS>\n <SRS>EPSG:4326</SRS>\n <SRS>CRS:84</SRS>\n <SRS>EPSG:25831</SRS>\n <SRS>EPSG:25832</SRS>\n <SRS>EPSG:28992</SRS>\n <SRS>EPSG:7399</SRS>\n <SRS>EPSG:50001</SRS>\n <SRS>EPSG:54030</SRS>\n <SRS>EPSG:32661</SRS>\n <SRS>EPSG:40000</SRS>\n <SRS>EPSG:900913</SRS>\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <Layer queryable=\"1\" opaque=\"1\" cascaded=\"0\">\n <Name>RAD_NL25_PCP_CM</Name>\n <Title>Precipitation Radar NL</Title>\n <Abstract>Radar NL</Abstract>\n <KeywordList>\n <Keyword>Radar</Keyword>\n </KeywordList>\n <SRS>EPSG:3411</SRS>\n <BoundingBox SRS=\"EPSG:3411\" minx=\"2682754.743620\" miny=\"-3245034.014141\" maxx=\"3759536.917562\" maxy=\"-2168251.989038\" />\n <SRS>EPSG:3412</SRS>\n <BoundingBox SRS=\"EPSG:3412\" minx=\"0.000000\" miny=\"32318824.826266\" maxx=\"7413041.166015\" maxy=\"40075258.815074\" />\n <SRS>EPSG:3575</SRS>\n <BoundingBox SRS=\"EPSG:3575\" minx=\"-770622.801471\" miny=\"-4485814.811314\" maxx=\"56845.766135\" maxy=\"-3684039.443620\" />\n <SRS>EPSG:3857</SRS>\n <BoundingBox SRS=\"EPSG:3857\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>EPSG:4258</SRS>\n <BoundingBox SRS=\"EPSG:4258\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:4326</SRS>\n <BoundingBox SRS=\"EPSG:4326\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>CRS:84</SRS>\n <BoundingBox SRS=\"CRS:84\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:25831</SRS>\n <BoundingBox SRS=\"EPSG:25831\" minx=\"282182.345905\" miny=\"5433247.394267\" maxx=\"997135.658653\" maxy=\"6207204.592736\" />\n <SRS>EPSG:25832</SRS>\n <BoundingBox SRS=\"EPSG:25832\" minx=\"-153083.019482\" miny=\"5415817.312927\" maxx=\"617595.626092\" maxy=\"6239769.309937\" />\n <SRS>EPSG:28992</SRS>\n <BoundingBox SRS=\"EPSG:28992\" minx=\"-236275.338083\" miny=\"106727.731651\" maxx=\"501527.918656\" maxy=\"900797.079725\" />\n <SRS>EPSG:7399</SRS>\n <BoundingBox SRS=\"EPSG:7399\" minx=\"0.000000\" miny=\"5757301.056717\" maxx=\"763611.971696\" maxy=\"6483919.801602\" />\n <SRS>EPSG:50001</SRS>\n <BoundingBox SRS=\"EPSG:50001\" minx=\"-2000000.000000\" miny=\"-2000000.000000\" maxx=\"10000000.000000\" maxy=\"8500000.000000\" />\n <SRS>EPSG:54030</SRS>\n <BoundingBox SRS=\"EPSG:54030\" minx=\"0.000000\" miny=\"5211855.054125\" maxx=\"853649.695106\" maxy=\"5936394.291427\" />\n <SRS>EPSG:32661</SRS>\n <BoundingBox SRS=\"EPSG:32661\" minx=\"2000000.000000\" miny=\"-2703305.597319\" maxx=\"2745713.040381\" maxy=\"-1888346.216710\" />\n <SRS>EPSG:40000</SRS>\n <BoundingBox SRS=\"EPSG:40000\" minx=\"0.000000\" miny=\"-4731695.771951\" maxx=\"750214.326339\" maxy=\"-3911817.119426\" />\n <SRS>EPSG:900913</SRS>\n <BoundingBox SRS=\"EPSG:900913\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <BoundingBox SRS=\"PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0\" minx=\"0.000000\" miny=\"-3649.999338\" maxx=\"700.002420\" maxy=\"-4415.002986\" />\n <LatLonBoundingBox minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <Dimension name=\"time\" units=\"ISO8601\" />\n <Extent name=\"time\" default=\"2021-05-17T00:00:00Z\" multipleValues=\"1\" nearestValue=\"0\">2021-03-31T09:25:00Z/2021-05-18T07:45:00Z/PT5M</Extent>\n <Style>\n <Name>radar/nearest</Name>\n <Title>radar/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=radar/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-rainbow/nearest</Name>\n <Title>precip-rainbow/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-rainbow/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-gray/nearest</Name>\n <Title>precip-gray/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-gray/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue/nearest</Name>\n <Title>precip-blue/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-blue/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue-transparent/nearest</Name>\n <Title>precip-blue-transparent/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-blue-transparent/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-with-range/nearest</Name>\n <Title>precip-with-range/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-with-range/nearest\" />\n </LegendURL>\n </Style>\n <ScaleHint min=\"0\" max=\"10000\" />\n </Layer>\n </Layer>\n </Capability>\n</WMT_MS_Capabilities>";
|
|
2
|
+
export default _default;
|
|
@@ -22,3 +22,9 @@ export declare const recurseNodes: (nodesToRecur: LayerTree) => LayerTree;
|
|
|
22
22
|
* @param {boolean} forceReload **optional** forceReload: boolean, true will force the layers to be reloaded from the service, defaults to false
|
|
23
23
|
*/
|
|
24
24
|
export declare const getLayersFromService: (serviceUrl: string, forceReload?: boolean) => Promise<LayerTree>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a promise with a webmapjs node structure layers from the WMS GetCapabilities document.
|
|
27
|
+
* @param serviceUrl The URL of the WMS service
|
|
28
|
+
* @param {boolean} forceReload **optional** forceReload: boolean, true will force the layers to be reloaded from the service, defaults to false
|
|
29
|
+
*/
|
|
30
|
+
export declare const getLayerNodesFromService: (serviceUrl: string, forceReload?: boolean) => Promise<[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "16.14.0",
|
|
16
|
+
"@opengeoweb/theme": "2.1.1",
|
|
16
17
|
"@material-ui/core": "^4.11.0",
|
|
18
|
+
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
17
19
|
"@material-ui/icons": "^4.9.1",
|
|
18
|
-
"react-intl": "^5.17.5",
|
|
19
20
|
"react-redux": "7.2.2",
|
|
20
|
-
"@opengeoweb/webmap": "2.1.0",
|
|
21
21
|
"moment": "^2.29.0",
|
|
22
|
+
"react-intl": "^5.17.5",
|
|
23
|
+
"@opengeoweb/webmap": "2.1.1",
|
|
22
24
|
"throttle-debounce": "^3.0.1",
|
|
23
25
|
"proj4": "^2.6.2",
|
|
24
26
|
"react-sortablejs": "^6.0.0",
|
|
25
|
-
"@opengeoweb/shared": "2.1.
|
|
26
|
-
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
27
|
-
"@opengeoweb/theme": "2.1.0",
|
|
27
|
+
"@opengeoweb/shared": "2.1.1",
|
|
28
28
|
"react-draggable": "^4.4.3",
|
|
29
29
|
"re-resizable": "^6.9.0",
|
|
30
30
|
"lodash": "^4.17.20",
|
|
31
|
-
"@opengeoweb/form-fields": "2.1.
|
|
31
|
+
"@opengeoweb/form-fields": "2.1.1",
|
|
32
32
|
"react-hook-form": "^6.12.1",
|
|
33
33
|
"@material-ui/pickers": "^3.2.10",
|
|
34
34
|
"@date-io/moment": "^1.3.13",
|