@opengeoweb/webmap-react 19.0.0 → 19.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/dist/README.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +12712 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/lib/components/Clock/Clock.d.ts +23 -0
- package/dist/src/lib/components/Clock/ClockContainer.d.ts +9 -0
- package/dist/src/lib/components/Clock/clockContainerUtils.d.ts +1 -0
- package/dist/src/lib/components/Clock/index.d.ts +1 -0
- package/dist/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.d.ts +2 -0
- package/dist/src/lib/components/LayerInfo/LayerInfoButton.d.ts +8 -0
- package/dist/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +18 -0
- package/dist/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +7 -0
- package/dist/src/lib/components/LayerInfo/LayerInfoList.d.ts +10 -0
- package/dist/src/lib/components/LayerInfo/LayerInfoText.d.ts +16 -0
- package/dist/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -0
- package/dist/src/lib/components/LayerInfo/index.d.ts +6 -0
- package/dist/src/lib/components/Legend/Legend.d.ts +8 -0
- package/dist/src/lib/components/Legend/LegendButton.d.ts +5 -0
- package/dist/src/lib/components/Legend/LegendDialog.d.ts +16 -0
- package/dist/src/lib/components/Legend/LegendLayout.d.ts +10 -0
- package/dist/src/lib/components/Legend/index.d.ts +4 -0
- package/dist/src/lib/components/MapControls/MapControlButton.d.ts +10 -0
- package/dist/src/lib/components/MapControls/MapControls.d.ts +7 -0
- package/dist/src/lib/components/MapControls/ZoomControls.d.ts +8 -0
- package/dist/src/lib/components/MapControls/index.d.ts +3 -0
- package/dist/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +8 -0
- package/dist/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +14 -0
- package/dist/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +14 -0
- package/dist/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +12 -0
- package/dist/src/lib/components/MapDimensionSelect/index.d.ts +6 -0
- package/dist/src/lib/components/MapDimensionSelect/utils.d.ts +18 -0
- package/dist/src/lib/components/MapMeasure/MapMeasure.d.ts +5 -0
- package/dist/src/lib/components/MapMeasure/index.d.ts +1 -0
- package/dist/src/lib/components/MapMousePosition/MapMousePosition.d.ts +2 -0
- package/dist/src/lib/components/MapMousePosition/index.d.ts +1 -0
- package/dist/src/lib/components/MapTime/MapTime.d.ts +11 -0
- package/dist/src/lib/components/MapTime/index.d.ts +1 -0
- package/dist/src/lib/components/MapWarning/MapWarningProperties.d.ts +22 -0
- package/dist/src/lib/components/MapWarning/index.d.ts +1 -0
- package/dist/src/lib/components/OpenLayers/OlColors.d.ts +5 -0
- package/dist/src/lib/components/OpenLayers/OlStyles.d.ts +52 -0
- package/dist/src/lib/components/OpenLayers/OpenLayersConstants.d.ts +2 -0
- package/dist/src/lib/components/OpenLayers/component/OpenLayersMapView.d.ts +13 -0
- package/dist/src/lib/components/OpenLayers/context/MapContext.d.ts +6 -0
- package/dist/src/lib/components/OpenLayers/context/TimeContext.d.ts +6 -0
- package/dist/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +8 -0
- package/dist/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.d.ts +6 -0
- package/dist/src/lib/components/OpenLayers/controls/index.d.ts +2 -0
- package/dist/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +29 -0
- package/dist/src/lib/components/OpenLayers/draw/geojsonShapes.d.ts +19 -0
- package/dist/src/lib/components/OpenLayers/draw/index.d.ts +12 -0
- package/dist/src/lib/components/OpenLayers/draw/mapDrawUtils.d.ts +12 -0
- package/dist/src/lib/components/OpenLayers/draw/polygonCleanDangling.d.ts +35 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/EditModeButton.d.ts +7 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/FeatureLayers.d.ts +8 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/GeoJSONTextField.d.ts +11 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/IntersectionSelect.d.ts +12 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/SelectField.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/StoryLayout.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/StoryLayoutGrid.d.ts +4 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/ToolButton.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/geojsonExamples.d.ts +12 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/index.d.ts +8 -0
- package/dist/src/lib/components/OpenLayers/draw/storyComponents/storyUtils.d.ts +48 -0
- package/dist/src/lib/components/OpenLayers/draw/storyExamplesMapDrawTool.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolIntersection.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolMultipleDrawTools.d.ts +12 -0
- package/dist/src/lib/components/OpenLayers/draw/types.d.ts +43 -0
- package/dist/src/lib/components/OpenLayers/draw/useMapDrawTool.d.ts +61 -0
- package/dist/src/lib/components/OpenLayers/draw/utils.d.ts +84 -0
- package/dist/src/lib/components/OpenLayers/index.d.ts +14 -0
- package/dist/src/lib/components/OpenLayers/layers/DefaultBaseLayers.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +16 -0
- package/dist/src/lib/components/OpenLayers/layers/GeoTIFFLayer.d.ts +13 -0
- package/dist/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.d.ts +16 -0
- package/dist/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +20 -0
- package/dist/src/lib/components/OpenLayers/layers/TiledWMSLayer.d.ts +10 -0
- package/dist/src/lib/components/OpenLayers/layers/TimeAwareEDRLocationLayer.d.ts +14 -0
- package/dist/src/lib/components/OpenLayers/layers/TimeAwareGeoTIFFLayer.d.ts +17 -0
- package/dist/src/lib/components/OpenLayers/layers/TimeAwareGeoTIFFLayerUtils.d.ts +20 -0
- package/dist/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.d.ts +17 -0
- package/dist/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.d.ts +18 -0
- package/dist/src/lib/components/OpenLayers/layers/WMSLayer.d.ts +10 -0
- package/dist/src/lib/components/OpenLayers/layers/WMTSLayer.d.ts +10 -0
- package/dist/src/lib/components/OpenLayers/layers/XYZLayer.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/layers/fakeApiWmtsQueries.d.ts +1 -0
- package/dist/src/lib/components/OpenLayers/layers/index.d.ts +11 -0
- package/dist/src/lib/components/OpenLayers/layers/utils.d.ts +2 -0
- package/dist/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +10 -0
- package/dist/src/lib/components/OpenLayers/storyComponents/index.d.ts +1 -0
- package/dist/src/lib/components/OpenLayers/styles/useIconStyle.d.ts +25 -0
- package/dist/src/lib/components/OpenLayers/tools/ClickOnMapTool.d.ts +9 -0
- package/dist/src/lib/components/OpenLayers/tools/index.d.ts +1 -0
- package/dist/src/lib/components/OpenLayers/types/Timespan.d.ts +11 -0
- package/dist/src/lib/components/OpenLayers/types/WorkerQueue.d.ts +6 -0
- package/dist/src/lib/components/OpenLayers/useProjectionDropDown.d.ts +17 -0
- package/dist/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.d.ts +10 -0
- package/dist/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +44 -0
- package/dist/src/lib/components/OpenLayers/utils/TimeawareImageSource.d.ts +68 -0
- package/dist/src/lib/components/OpenLayers/utils/WorkerQueue.d.ts +14 -0
- package/dist/src/lib/components/OpenLayers/utils/constants.d.ts +8 -0
- package/dist/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.d.ts +26 -0
- package/dist/src/lib/components/OpenLayers/utils/projections.d.ts +16 -0
- package/dist/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +2 -0
- package/dist/src/lib/components/OpenLayers/utils/types.d.ts +19 -0
- package/dist/src/lib/components/OpenLayers/utils/viewUtils.d.ts +11 -0
- package/dist/src/lib/components/Providers/Providers.d.ts +2 -0
- package/dist/src/lib/components/Providers/index.d.ts +1 -0
- package/dist/src/lib/components/TanStackDemo/storyUtils.d.ts +6 -0
- package/dist/src/lib/components/WMSViewerDemo/components/WMSDimTimeYearSelector.d.ts +18 -0
- package/dist/src/lib/components/WMSViewerDemo/components/WMSLayerSelector.d.ts +9 -0
- package/dist/src/lib/components/WMSViewerDemo/components/WMSStyleSelector.d.ts +8 -0
- package/dist/src/lib/components/WMSViewerDemo/components/WMSTimeSlider.d.ts +8 -0
- package/dist/src/lib/components/index.d.ts +9 -0
- package/dist/src/lib/edr-layer-api/api.d.ts +7 -0
- package/dist/src/lib/edr-layer-api/colormaps/colormaps.d.ts +9 -0
- package/dist/src/lib/edr-layer-api/colormaps/edrOlLegendUtils.d.ts +32 -0
- package/dist/src/lib/edr-layer-api/colormaps/index.d.ts +2 -0
- package/dist/src/lib/edr-layer-api/fakeApi.d.ts +1 -0
- package/dist/src/lib/edr-layer-api/hooks.d.ts +14 -0
- package/dist/src/lib/edr-layer-api/index.d.ts +3 -0
- package/dist/src/lib/edr-layer-api/utils/coverageCollectionToFeatureCollection.d.ts +2 -0
- package/dist/src/lib/edr-layer-api/utils/useEDRWMLayer.d.ts +11 -0
- package/dist/src/lib/geotiff-layer-api/api.d.ts +92 -0
- package/dist/src/lib/geotiff-layer-api/fakeApi.d.ts +1 -0
- package/dist/src/lib/geotiff-layer-api/hooks.d.ts +5 -0
- package/dist/src/lib/geotiff-layer-api/index.d.ts +3 -0
- package/dist/src/lib/geotiff-layer-api/utils/stacColormapToOlStyle.d.ts +25 -0
- package/dist/src/lib/geotiff-layer-api/utils/stacTimeStepUtils.d.ts +18 -0
- package/dist/src/lib/geotiff-layer-api/utils/useGetStacGeoTIFFLayerInstance.d.ts +11 -0
- package/dist/src/lib/hooks/index.d.ts +4 -0
- package/dist/src/lib/hooks/useAnimationForLayer.d.ts +9 -0
- package/dist/src/lib/hooks/useHooksGetCapabilities.d.ts +63 -0
- package/dist/src/lib/hooks/useSetInterValWhenVisible.d.ts +1 -0
- package/dist/src/lib/hooks/useViewFromLayer.d.ts +7 -0
- package/dist/src/lib/index.d.ts +8 -0
- package/dist/src/lib/layers/defaultLayers.d.ts +15 -0
- package/dist/src/lib/layers/defaultStorybookSettings.d.ts +9 -0
- package/dist/src/lib/layers/index.d.ts +3 -0
- package/dist/src/lib/layers/profileLayers.d.ts +19 -0
- package/dist/src/lib/layers/publicLayers.d.ts +310 -0
- package/dist/src/lib/layers/publicServices.d.ts +90 -0
- package/dist/src/lib/types/index.d.ts +1 -0
- package/dist/src/lib/types/types.d.ts +64 -0
- package/dist/src/lib/utils/i18n.d.ts +8 -0
- package/dist/src/lib/utils/index.d.ts +1 -0
- package/dist/src/lib/utils/utils.d.ts +4 -0
- package/package.json +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WMLayer } from '@opengeoweb/webmap';
|
|
2
|
+
import type { OnInitializeLayerProps } from '../../components/OpenLayers/utils/types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns WMLayer instance in STAC GeoTIFF mode. The layer will contains parsed dimensions and styles and keeps a state for these properties.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} serviceUrl
|
|
7
|
+
* @param {string} name
|
|
8
|
+
* @returns {(WMLayer | null)}
|
|
9
|
+
*/
|
|
10
|
+
export declare const useGetStacGeoTIFFWMLayerInstance: (serviceUrl: string, name: string, id?: string, onLayerError?: (layerId: string, message: string) => void) => WMLayer | null;
|
|
11
|
+
export declare const useGetStacGeoTIFFLayerInstance: (stacCollectionURL: string, parameter: string, layerId?: string, onInitializeLayer?: (payload: OnInitializeLayerProps) => void) => WMLayer | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Dimension, RefTimeDimensionModes } from '@opengeoweb/webmap';
|
|
2
|
+
import type { OpenLayersLayerProps } from '../components/OpenLayers/layers';
|
|
3
|
+
import type { TimeContextType } from '../components/OpenLayers/types/Timespan';
|
|
4
|
+
interface UseAnimationForLayerProps {
|
|
5
|
+
dimensions: Dimension[];
|
|
6
|
+
timeContext: TimeContextType;
|
|
7
|
+
}
|
|
8
|
+
export declare const useAnimationForLayer: (layerProps: OpenLayersLayerProps, intervalInMs: number, numStepsTillLatest?: number, checkForUpdatesMs?: number, refTimeDimensionModes?: RefTimeDimensionModes) => UseAnimationForLayerProps;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { WMSServiceInfo, LayerTree, LayerProps, Style, OGCWMSWMTSGetCapabilities, LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
import { WMLayer } from '@opengeoweb/webmap';
|
|
4
|
+
/**
|
|
5
|
+
* Queries the WMS GetCapabilities. This is the base TanStack hook for the other hooks in this file.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} serviceUrl
|
|
8
|
+
* @returns {UseQueryResult<WMSGetCapabilities>}
|
|
9
|
+
*/
|
|
10
|
+
export declare const useQueryGetWMSGetCapabilities: (serviceUrl: string) => UseQueryResult<OGCWMSWMTSGetCapabilities>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns details about the WMS service
|
|
13
|
+
*
|
|
14
|
+
* @param {string} serviceUrl
|
|
15
|
+
* @returns {(WMSServiceInfo | null)}
|
|
16
|
+
*/
|
|
17
|
+
export declare const useQueryGetWMSServiceInfo: (serviceUrl: string) => WMSServiceInfo | null;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the layer tree in hierarchical order for a WMS service. Cached by TanStack. Uses the same store as in queryWMSGetCapabilities.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} serviceUrl
|
|
22
|
+
* @returns {(LayerTree | null)}
|
|
23
|
+
*/
|
|
24
|
+
export declare const useQueryGetWMSLayersTree: (serviceUrl: string) => LayerTree | null;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the flat layer list (without hierarchy) for a WMS service. Cached by TanStack. Uses the same store as in queryWMSGetCapabilities.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} serviceUrl
|
|
29
|
+
* @returns {LayerProps[]}
|
|
30
|
+
*/
|
|
31
|
+
export declare const useQueryGetWMSLayers: (serviceUrl: string) => LayerProps[];
|
|
32
|
+
/**
|
|
33
|
+
* Returns specific layer from the WMS service
|
|
34
|
+
*
|
|
35
|
+
* @param {string} serviceUrl
|
|
36
|
+
* @param {string} name
|
|
37
|
+
* @returns {(LayerProps | null)}
|
|
38
|
+
*/
|
|
39
|
+
export declare const useQueryGetWMSLayer: (serviceUrl: string, name: string) => LayerProps | null;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a stylelist for given layer in a service
|
|
42
|
+
*
|
|
43
|
+
* @param {string} serviceUrl
|
|
44
|
+
* @param {string} name
|
|
45
|
+
* @returns {(Style[] | null)}
|
|
46
|
+
*/
|
|
47
|
+
export declare const useGetWMSLayerStyleList: (serviceUrl: string, name: string) => Style[] | null;
|
|
48
|
+
/**
|
|
49
|
+
* Returns a WMLayer instance. If the layerType is LayerType.mapLayer or LayerType.wmtsMapLayer, the layer will detect the right type and will contain the parsed dimensions and styles.
|
|
50
|
+
*
|
|
51
|
+
* @param layerFoundation
|
|
52
|
+
* @returns object with wmLayer and if set an errorMessage
|
|
53
|
+
*/
|
|
54
|
+
export declare const useGetWMLayerInstance: (layerFoundation?: LayerFoundation) => {
|
|
55
|
+
wmLayer: WMLayer | null;
|
|
56
|
+
errorMessage: string | null;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Used for querying WMTS GetCapabilities documents
|
|
60
|
+
* @param serviceUrl
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
export declare const useQueryWMTSGetCapabilities: (serviceUrl: string) => UseQueryResult<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSetIntervalWhenVisible: (autoUpdate: () => void, refetchInterval: number, shouldAutoFetch?: boolean) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './layers';
|
|
3
|
+
export * from './hooks';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export type * from './types';
|
|
6
|
+
export * from './edr-layer-api';
|
|
7
|
+
export * from './geotiff-layer-api';
|
|
8
|
+
export { WEBMAP_REACT_NAMESPACE } from './utils/i18n';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
+
export declare const baseLayerGrey: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
layerType: LayerType;
|
|
7
|
+
};
|
|
8
|
+
export declare const overLayer: {
|
|
9
|
+
service: string;
|
|
10
|
+
name: string;
|
|
11
|
+
format: string;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
layerType: LayerType;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
+
/**
|
|
3
|
+
* Base URL of the adaguc-service where all profiles are configured
|
|
4
|
+
*/
|
|
5
|
+
export declare const profileAdagucServiceBaseUrl = "https://geoservices.knmi.nl";
|
|
6
|
+
/** The station layer with overview of profile datasets */
|
|
7
|
+
export declare const profileStationLayer: {
|
|
8
|
+
service: string;
|
|
9
|
+
name: string;
|
|
10
|
+
style: string;
|
|
11
|
+
layerType: LayerType;
|
|
12
|
+
};
|
|
13
|
+
export declare const profileDataLayer: {
|
|
14
|
+
service: string;
|
|
15
|
+
name: string;
|
|
16
|
+
format: string;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
layerType: LayerType;
|
|
19
|
+
};
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
+
import * as defaultLayers from './defaultLayers';
|
|
3
|
+
export { defaultLayers };
|
|
4
|
+
export declare const baseLayer: {
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
type: string;
|
|
8
|
+
layerType: LayerType;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const baseLayerOpenStreetMapNL: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
layerType: LayerType;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const baseLayerArcGisCanvas: {
|
|
20
|
+
service: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
layerType: LayerType;
|
|
26
|
+
};
|
|
27
|
+
export declare const baseLayerWorldMap: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
layerType: LayerType;
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare const baseLayerHeiGit: {
|
|
35
|
+
service: string;
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
layerType: LayerType;
|
|
39
|
+
};
|
|
40
|
+
export declare const msgCppLayer: {
|
|
41
|
+
service: string;
|
|
42
|
+
name: string;
|
|
43
|
+
format: string;
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
style: string;
|
|
46
|
+
id: string;
|
|
47
|
+
layerType: LayerType;
|
|
48
|
+
};
|
|
49
|
+
export declare const veiligheidsRegiosGebiedsIndelingenLabels: {
|
|
50
|
+
service: string;
|
|
51
|
+
name: string;
|
|
52
|
+
style: string;
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
layerType: LayerType;
|
|
55
|
+
};
|
|
56
|
+
export declare const veiligheidsRegiosGebiedsIndelingen: {
|
|
57
|
+
service: string;
|
|
58
|
+
name: string;
|
|
59
|
+
style: string;
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
layerType: LayerType;
|
|
62
|
+
};
|
|
63
|
+
export declare const radarLayer: {
|
|
64
|
+
service: string;
|
|
65
|
+
name: string;
|
|
66
|
+
format: string;
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
style: string;
|
|
69
|
+
id: string;
|
|
70
|
+
layerType: LayerType;
|
|
71
|
+
};
|
|
72
|
+
export declare const radarLayerWithError: {
|
|
73
|
+
service: string;
|
|
74
|
+
name: string;
|
|
75
|
+
format: string;
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
style: string;
|
|
78
|
+
id: string;
|
|
79
|
+
layerType: LayerType;
|
|
80
|
+
};
|
|
81
|
+
export declare const obsAirTemperature: {
|
|
82
|
+
service: string;
|
|
83
|
+
name: string;
|
|
84
|
+
id: string;
|
|
85
|
+
layerType: LayerType;
|
|
86
|
+
};
|
|
87
|
+
export declare const obsWind: {
|
|
88
|
+
service: string;
|
|
89
|
+
name: string;
|
|
90
|
+
id: string;
|
|
91
|
+
layerType: LayerType;
|
|
92
|
+
};
|
|
93
|
+
export declare const obsAirPressureAtSeaLevel: {
|
|
94
|
+
service: string;
|
|
95
|
+
name: string;
|
|
96
|
+
id: string;
|
|
97
|
+
layerType: LayerType;
|
|
98
|
+
};
|
|
99
|
+
export declare const obsRelativeHumidity: {
|
|
100
|
+
service: string;
|
|
101
|
+
name: string;
|
|
102
|
+
id: string;
|
|
103
|
+
layerType: LayerType;
|
|
104
|
+
};
|
|
105
|
+
export declare const obsGlobalSolarRadiation: {
|
|
106
|
+
service: string;
|
|
107
|
+
name: string;
|
|
108
|
+
id: string;
|
|
109
|
+
layerType: LayerType;
|
|
110
|
+
};
|
|
111
|
+
export declare const obsPrecipitationIntensityPWS: {
|
|
112
|
+
service: string;
|
|
113
|
+
name: string;
|
|
114
|
+
id: string;
|
|
115
|
+
layerType: LayerType;
|
|
116
|
+
};
|
|
117
|
+
export declare const harmonieRelativeHumidityPl: {
|
|
118
|
+
service: string;
|
|
119
|
+
name: string;
|
|
120
|
+
id: string;
|
|
121
|
+
layerType: LayerType;
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
};
|
|
124
|
+
export declare const harmonieWindPl: {
|
|
125
|
+
service: string;
|
|
126
|
+
name: string;
|
|
127
|
+
id: string;
|
|
128
|
+
layerType: LayerType;
|
|
129
|
+
enabled: boolean;
|
|
130
|
+
};
|
|
131
|
+
export declare const harmonieAirTemperature: {
|
|
132
|
+
service: string;
|
|
133
|
+
name: string;
|
|
134
|
+
id: string;
|
|
135
|
+
layerType: LayerType;
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
};
|
|
138
|
+
export declare const harmoniePrecipitation: {
|
|
139
|
+
service: string;
|
|
140
|
+
name: string;
|
|
141
|
+
id: string;
|
|
142
|
+
layerType: LayerType;
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
};
|
|
145
|
+
export declare const harmoniePressure: {
|
|
146
|
+
service: string;
|
|
147
|
+
name: string;
|
|
148
|
+
id: string;
|
|
149
|
+
layerType: LayerType;
|
|
150
|
+
enabled: boolean;
|
|
151
|
+
};
|
|
152
|
+
export declare const harmonieWindFlags: {
|
|
153
|
+
service: string;
|
|
154
|
+
name: string;
|
|
155
|
+
enabled: boolean;
|
|
156
|
+
id: string;
|
|
157
|
+
layerType: LayerType;
|
|
158
|
+
};
|
|
159
|
+
export declare const klimaatAtlasTG3: {
|
|
160
|
+
service: string;
|
|
161
|
+
name: string;
|
|
162
|
+
enabled: boolean;
|
|
163
|
+
id: string;
|
|
164
|
+
layerType: LayerType;
|
|
165
|
+
};
|
|
166
|
+
export declare const dwdWarningLayer: {
|
|
167
|
+
service: string;
|
|
168
|
+
name: string;
|
|
169
|
+
format: string;
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
id: string;
|
|
172
|
+
layerType: LayerType;
|
|
173
|
+
};
|
|
174
|
+
export declare const dwdRadarLayer: {
|
|
175
|
+
service: string;
|
|
176
|
+
name: string;
|
|
177
|
+
format: string;
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
id: string;
|
|
180
|
+
layerType: LayerType;
|
|
181
|
+
};
|
|
182
|
+
export declare const dwdObservationsWetterLayer: {
|
|
183
|
+
service: string;
|
|
184
|
+
name: string;
|
|
185
|
+
style: string;
|
|
186
|
+
format: string;
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
id: string;
|
|
189
|
+
layerType: LayerType;
|
|
190
|
+
};
|
|
191
|
+
export declare const dwdObservationsWetterLayerWithHeader: {
|
|
192
|
+
service: string;
|
|
193
|
+
name: string;
|
|
194
|
+
style: string;
|
|
195
|
+
format: string;
|
|
196
|
+
enabled: boolean;
|
|
197
|
+
id: string;
|
|
198
|
+
layerType: LayerType;
|
|
199
|
+
headers: {
|
|
200
|
+
name: string;
|
|
201
|
+
value: string;
|
|
202
|
+
}[];
|
|
203
|
+
};
|
|
204
|
+
export declare const dwdObservationsWindLayer: {
|
|
205
|
+
service: string;
|
|
206
|
+
name: string;
|
|
207
|
+
style: string;
|
|
208
|
+
format: string;
|
|
209
|
+
enabled: boolean;
|
|
210
|
+
id: string;
|
|
211
|
+
layerType: LayerType;
|
|
212
|
+
};
|
|
213
|
+
export declare const FMITemp: {
|
|
214
|
+
service: string;
|
|
215
|
+
name: string;
|
|
216
|
+
format: string;
|
|
217
|
+
enabled: boolean;
|
|
218
|
+
id: string;
|
|
219
|
+
layerType: LayerType;
|
|
220
|
+
};
|
|
221
|
+
export declare const MetNoTemp: {
|
|
222
|
+
service: string;
|
|
223
|
+
name: string;
|
|
224
|
+
format: string;
|
|
225
|
+
enabled: boolean;
|
|
226
|
+
id: string;
|
|
227
|
+
layerType: LayerType;
|
|
228
|
+
};
|
|
229
|
+
export declare const metNorwayWind1: {
|
|
230
|
+
service: string;
|
|
231
|
+
name: string;
|
|
232
|
+
format: string;
|
|
233
|
+
enabled: boolean;
|
|
234
|
+
id: string;
|
|
235
|
+
layerType: LayerType;
|
|
236
|
+
};
|
|
237
|
+
export declare const metNorwayWind2: {
|
|
238
|
+
service: string;
|
|
239
|
+
name: string;
|
|
240
|
+
format: string;
|
|
241
|
+
enabled: boolean;
|
|
242
|
+
id: string;
|
|
243
|
+
layerType: LayerType;
|
|
244
|
+
};
|
|
245
|
+
export declare const metNorwayWind3: {
|
|
246
|
+
service: string;
|
|
247
|
+
name: string;
|
|
248
|
+
format: string;
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
id: string;
|
|
251
|
+
layerType: LayerType;
|
|
252
|
+
};
|
|
253
|
+
export declare const metNorwayLatestT: {
|
|
254
|
+
service: string;
|
|
255
|
+
name: string;
|
|
256
|
+
format: string;
|
|
257
|
+
enabled: boolean;
|
|
258
|
+
id: string;
|
|
259
|
+
layerType: LayerType;
|
|
260
|
+
};
|
|
261
|
+
export declare const metNorwaySalinaty: {
|
|
262
|
+
service: string;
|
|
263
|
+
name: string;
|
|
264
|
+
format: string;
|
|
265
|
+
enabled: boolean;
|
|
266
|
+
id: string;
|
|
267
|
+
layerType: LayerType;
|
|
268
|
+
};
|
|
269
|
+
export declare const msgFesEUMETSAT: {
|
|
270
|
+
service: string;
|
|
271
|
+
name: string;
|
|
272
|
+
enabled: boolean;
|
|
273
|
+
id: string;
|
|
274
|
+
layerType: LayerType;
|
|
275
|
+
};
|
|
276
|
+
export declare const msgNaturalenhncdEUMETSAT: {
|
|
277
|
+
service: string;
|
|
278
|
+
name: string;
|
|
279
|
+
enabled: boolean;
|
|
280
|
+
id: string;
|
|
281
|
+
layerType: LayerType;
|
|
282
|
+
};
|
|
283
|
+
export declare const msgAshEUMETSAT: {
|
|
284
|
+
service: string;
|
|
285
|
+
name: string;
|
|
286
|
+
enabled: boolean;
|
|
287
|
+
id: string;
|
|
288
|
+
layerType: LayerType;
|
|
289
|
+
};
|
|
290
|
+
export declare const msgCthEUMETSAT: {
|
|
291
|
+
service: string;
|
|
292
|
+
name: string;
|
|
293
|
+
enabled: boolean;
|
|
294
|
+
id: string;
|
|
295
|
+
layerType: LayerType;
|
|
296
|
+
};
|
|
297
|
+
export declare const msgFogEUMETSAT: {
|
|
298
|
+
service: string;
|
|
299
|
+
name: string;
|
|
300
|
+
enabled: boolean;
|
|
301
|
+
id: string;
|
|
302
|
+
layerType: LayerType;
|
|
303
|
+
};
|
|
304
|
+
export declare const msgNaturalEUMETSAT: {
|
|
305
|
+
service: string;
|
|
306
|
+
name: string;
|
|
307
|
+
enabled: boolean;
|
|
308
|
+
id: string;
|
|
309
|
+
layerType: LayerType;
|
|
310
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const DWD: {
|
|
2
|
+
name: string;
|
|
3
|
+
url: string;
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const nationaalgeoregister: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const KNMImsgcpp: {
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const HeiGit: {
|
|
17
|
+
name: string;
|
|
18
|
+
url: string;
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const ArcGisCanvas: {
|
|
22
|
+
name: string;
|
|
23
|
+
url: string;
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const KNMIgeoservicesRadar: {
|
|
27
|
+
name: string;
|
|
28
|
+
url: string;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const KNMIgeoservicesObs: {
|
|
32
|
+
name: string;
|
|
33
|
+
url: string;
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const KNMIgeoservicesKlimaatAtlas: {
|
|
37
|
+
name: string;
|
|
38
|
+
url: string;
|
|
39
|
+
id: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const KNMIgeoservicesHarmonie: {
|
|
42
|
+
name: string;
|
|
43
|
+
url: string;
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const MetNorwayService: {
|
|
47
|
+
name: string;
|
|
48
|
+
url: string;
|
|
49
|
+
id: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const FMIopenwms: {
|
|
52
|
+
name: string;
|
|
53
|
+
url: string;
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const DWDObservations: {
|
|
57
|
+
name: string;
|
|
58
|
+
url: string;
|
|
59
|
+
id: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const DWDWarnings: {
|
|
62
|
+
name: string;
|
|
63
|
+
url: string;
|
|
64
|
+
id: string;
|
|
65
|
+
};
|
|
66
|
+
export declare const DWDWXProdukt: {
|
|
67
|
+
name: string;
|
|
68
|
+
url: string;
|
|
69
|
+
id: string;
|
|
70
|
+
};
|
|
71
|
+
export declare const EUMETSAT: {
|
|
72
|
+
name: string;
|
|
73
|
+
url: string;
|
|
74
|
+
id: string;
|
|
75
|
+
};
|
|
76
|
+
export declare const eumetviewEUMETSAT: {
|
|
77
|
+
name: string;
|
|
78
|
+
url: string;
|
|
79
|
+
id: string;
|
|
80
|
+
};
|
|
81
|
+
export declare const ECMWFPublicService: {
|
|
82
|
+
name: string;
|
|
83
|
+
url: string;
|
|
84
|
+
id: string;
|
|
85
|
+
};
|
|
86
|
+
export declare const MeteoCanada: {
|
|
87
|
+
name: string;
|
|
88
|
+
url: string;
|
|
89
|
+
id: string;
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from './types';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Bbox, Dimension } from '@opengeoweb/webmap';
|
|
2
|
+
export interface MapLocation {
|
|
3
|
+
lat: number;
|
|
4
|
+
lon: number;
|
|
5
|
+
screenOffsetX?: number;
|
|
6
|
+
screenOffsetY?: number;
|
|
7
|
+
projectionX?: number;
|
|
8
|
+
projectionY?: number;
|
|
9
|
+
resolution?: number;
|
|
10
|
+
srs?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
serviceId?: string;
|
|
13
|
+
collectionId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MapPinLocationPayload {
|
|
16
|
+
mapId: string;
|
|
17
|
+
mapPinLocation: MapLocation;
|
|
18
|
+
}
|
|
19
|
+
export interface SetMapDimensionPayload {
|
|
20
|
+
origin: string;
|
|
21
|
+
mapId: string;
|
|
22
|
+
dimension: Dimension;
|
|
23
|
+
}
|
|
24
|
+
export interface SetBboxPayload {
|
|
25
|
+
mapId: string;
|
|
26
|
+
bbox: Bbox;
|
|
27
|
+
srs?: string;
|
|
28
|
+
origin?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface SetStepBackWardOrForward {
|
|
31
|
+
mapId: string;
|
|
32
|
+
isForwardStep: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface SetLayerDimensionsPayload {
|
|
35
|
+
layerId: string;
|
|
36
|
+
origin: string;
|
|
37
|
+
dimensions: Dimension[];
|
|
38
|
+
}
|
|
39
|
+
export interface UpdateAllMapDimensionsPayload {
|
|
40
|
+
origin: string;
|
|
41
|
+
mapId: string;
|
|
42
|
+
dimensions: Dimension[];
|
|
43
|
+
}
|
|
44
|
+
export interface SetLayerStylePayload {
|
|
45
|
+
layerId: string;
|
|
46
|
+
style: string;
|
|
47
|
+
mapId?: string;
|
|
48
|
+
origin?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface SetLayerAcceptanceTimePayload {
|
|
51
|
+
layerId: string;
|
|
52
|
+
acceptanceTime: number | null;
|
|
53
|
+
mapId?: string;
|
|
54
|
+
origin?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface UpdateLayerInfoPayload {
|
|
57
|
+
origin: string;
|
|
58
|
+
mapDimensions?: UpdateAllMapDimensionsPayload;
|
|
59
|
+
layerStyle?: SetLayerStylePayload;
|
|
60
|
+
layerDimensions?: SetLayerDimensionsPayload;
|
|
61
|
+
error?: {
|
|
62
|
+
layerId: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Namespace } from 'i18next';
|
|
2
|
+
import i18n from 'i18next';
|
|
3
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
4
|
+
export declare const WEBMAP_REACT_NAMESPACE = "webmapreact";
|
|
5
|
+
export declare const initWebmapReactTestI18n: () => void;
|
|
6
|
+
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined, ns?: string) => string;
|
|
7
|
+
export declare const useWebmapReactTranslation: (ns?: Namespace) => UseTranslationResponse<typeof ns, typeof i18n>;
|
|
8
|
+
export { i18n };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Dimension, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
+
import type { UpdateLayerInfoPayload } from '../types/types';
|
|
3
|
+
export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: number | null | undefined, mapDimensions: Dimension[] | undefined, layerDimensions: Dimension[] | undefined): boolean;
|
|
4
|
+
export declare const getLayerUpdateInfo: (wmLayer: WMLayer, mapId: string) => UpdateLayerInfoPayload;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist",
|
|
47
|
+
"!dist/package.json",
|
|
47
48
|
"README.md",
|
|
48
49
|
"package.json"
|
|
49
50
|
]
|