@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 type { SxProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface GeoJSONTextFieldProps {
|
|
4
|
+
geoJSON: GeoJSON.FeatureCollection;
|
|
5
|
+
onChangeGeoJSON?: (geoJSON: GeoJSON.FeatureCollection) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
sx?: SxProps;
|
|
8
|
+
maxRows?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const GeoJSONTextField: React.FC<GeoJSONTextFieldProps>;
|
|
11
|
+
export default GeoJSONTextField;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IntersectionElement {
|
|
3
|
+
geojson: GeoJSON.FeatureCollection;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
interface IntersectionSelectProps {
|
|
7
|
+
intersections: IntersectionElement[];
|
|
8
|
+
onChangeIntersection: (geojson: GeoJSON.FeatureCollection, title: string) => void;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const IntersectionSelect: React.FC<IntersectionSelectProps>;
|
|
12
|
+
export default IntersectionSelect;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DrawModeExitCallback } from '../..';
|
|
2
|
+
import type { OpenLayersLayerProps } from '../../layers';
|
|
3
|
+
interface StoryLayoutProps {
|
|
4
|
+
layers: OpenLayersLayerProps[];
|
|
5
|
+
children: React.ReactElement;
|
|
6
|
+
onExitDrawMode: (reason: DrawModeExitCallback) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const StoryLayout: React.FC<StoryLayoutProps>;
|
|
9
|
+
export default StoryLayout;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const simplePolygonGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
2
|
+
export declare const simplePointsGeojson: GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
3
|
+
export declare const simpleSmallLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
4
|
+
export declare const simpleFlightRoutePointsGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
5
|
+
export declare const simpleLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
6
|
+
export declare const simpleBoxGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
7
|
+
export declare const simpleBoxGeoJSONWrongOrder: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
8
|
+
export declare const simpleFlightRouteLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
9
|
+
export declare const simpleMultiPolygon: GeoJSON.FeatureCollection<GeoJSON.MultiPolygon>;
|
|
10
|
+
export declare const intersectionFeatureNL: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
11
|
+
export declare const intersectionFeatureBE: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
12
|
+
export declare const simpleGeometryCollectionGeoJSON: GeoJSON.FeatureCollection<GeoJSON.GeometryCollection<GeoJSON.MultiPolygon>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as GeoJSONTextField } from './GeoJSONTextField';
|
|
2
|
+
export { default as FeatureLayers } from './FeatureLayers';
|
|
3
|
+
export { default as EditModeButtonField } from './EditModeButton';
|
|
4
|
+
export * from './geojsonExamples';
|
|
5
|
+
export * from './storyUtils';
|
|
6
|
+
export * from './StoryLayoutGrid';
|
|
7
|
+
export * from './SelectField';
|
|
8
|
+
export * from './IntersectionSelect';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const drawPolyStoryStyles: {
|
|
2
|
+
MapDrawGeoJSONContainer: {
|
|
3
|
+
display: string;
|
|
4
|
+
gridTemplateColumns: string;
|
|
5
|
+
gridTemplateRows: string;
|
|
6
|
+
gridTemplateAreas: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
};
|
|
10
|
+
MapDrawGeoJSONMapContainer: {
|
|
11
|
+
gridArea: string;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
};
|
|
15
|
+
MapDrawGeoJSONControlsContainer: {
|
|
16
|
+
gridArea: string;
|
|
17
|
+
width: string;
|
|
18
|
+
height: string;
|
|
19
|
+
};
|
|
20
|
+
MapDrawGeoJSONTextAreaContainer: {
|
|
21
|
+
gridArea: string;
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
};
|
|
25
|
+
MapDrawGeoJSONTextArea: {
|
|
26
|
+
padding: number;
|
|
27
|
+
border: string;
|
|
28
|
+
width: string;
|
|
29
|
+
height: string;
|
|
30
|
+
fontSize: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const useGeoJSON: () => {
|
|
34
|
+
editModes: {
|
|
35
|
+
key: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
isInEditMode: boolean;
|
|
39
|
+
geojson: GeoJSON.FeatureCollection;
|
|
40
|
+
setGeojson: (geojson: GeoJSON.FeatureCollection) => void;
|
|
41
|
+
geojsonText: string;
|
|
42
|
+
setGeojsonText: (text: string) => void;
|
|
43
|
+
drawMode: string;
|
|
44
|
+
currentFeatureNrToEdit: number;
|
|
45
|
+
setCurrentFeatureNrToEdit: (featureNumber: number) => void;
|
|
46
|
+
changeDrawMode: (mode: string) => void;
|
|
47
|
+
setEditMode: (on: boolean) => void;
|
|
48
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SelectionType } from './types';
|
|
2
|
+
import type { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
+
export declare const opacityOptions: string[];
|
|
4
|
+
export declare const fillOptions: any[];
|
|
5
|
+
export declare const strokeWidthOptions: string[];
|
|
6
|
+
export declare const getToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
7
|
+
export declare const basicExampleDrawOptions: MapDrawToolOptions;
|
|
8
|
+
export declare const basicExampleMultipleShapeDrawOptions: MapDrawToolOptions;
|
|
9
|
+
export declare const basicExampleMultipleShapeWithValuesDrawOptions: MapDrawToolOptions;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SelectionType } from './types';
|
|
2
|
+
import type { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
+
export declare const getIntersectionToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
4
|
+
export declare const exampleIntersections: {
|
|
5
|
+
title: string;
|
|
6
|
+
geojson: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const exampleIntersectionOptions: MapDrawToolOptions;
|
|
9
|
+
export declare const exampleIntersectionWithShapeOptions: MapDrawToolOptions;
|
package/dist/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolMultipleDrawTools.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DrawMode } from './types';
|
|
2
|
+
import type { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
+
export declare const firSelectionType = "fir";
|
|
4
|
+
export declare const exampleIntersectionsMultiDrawTool: {
|
|
5
|
+
title: string;
|
|
6
|
+
geojson: GeoJSON.FeatureCollection;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const getDoubleControlToolIcon: (drawMode: DrawMode) => React.ReactElement;
|
|
9
|
+
export declare const getFirTitle: (isNL: boolean) => string;
|
|
10
|
+
export declare const updateEditModeButtonsWithFir: (drawModes: DrawMode[], newFirGeoJSON: GeoJSON.FeatureCollection) => DrawMode[];
|
|
11
|
+
export declare const startToolExampleConfig: MapDrawToolOptions;
|
|
12
|
+
export declare const endToolExampleConfig: MapDrawToolOptions;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Feature, Polygon, MultiPolygon } from 'geojson';
|
|
2
|
+
export declare enum DRAWMODE {
|
|
3
|
+
POLYGON = "POLYGON",
|
|
4
|
+
BOX = "BOX",
|
|
5
|
+
MULTIPOINT = "MULTIPOINT",
|
|
6
|
+
POINT = "POINT",
|
|
7
|
+
LINESTRING = "LINESTRING",
|
|
8
|
+
SMOOTHLINE = "SMOOTHLINE",
|
|
9
|
+
CIRCLE = "CIRCLE",
|
|
10
|
+
SQUARE = "SQUARE",
|
|
11
|
+
OVAL = "OVAL",
|
|
12
|
+
LOCATION = "LOCATION",
|
|
13
|
+
FREEHANDLINE = "FREEHANDLINE",
|
|
14
|
+
SPLIT = "SPLIT",
|
|
15
|
+
ROTATABLEBOX = "ROTATABLEBOX"
|
|
16
|
+
}
|
|
17
|
+
export interface FeatureEvent {
|
|
18
|
+
coordinateIndexInFeature: number;
|
|
19
|
+
featureIndex: number;
|
|
20
|
+
screenCoords: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
mouseX: number;
|
|
25
|
+
mouseY: number;
|
|
26
|
+
isInEditMode: boolean;
|
|
27
|
+
feature: GeoJSON.Feature;
|
|
28
|
+
}
|
|
29
|
+
export type DrawModeExitCallback = 'escaped' | 'completed' | 'doubleClicked' | 'clickedNearStartingPoint';
|
|
30
|
+
export type DrawModeValue = DRAWMODE | 'DELETE' | '';
|
|
31
|
+
type DefaultSelectionTypes = 'poly' | 'point' | 'box' | 'linestring';
|
|
32
|
+
export type SelectionType = DefaultSelectionTypes | string;
|
|
33
|
+
export interface DrawMode {
|
|
34
|
+
drawModeId: string;
|
|
35
|
+
value: DrawModeValue;
|
|
36
|
+
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
37
|
+
title: string;
|
|
38
|
+
isSelectable: boolean;
|
|
39
|
+
selectionType: SelectionType;
|
|
40
|
+
}
|
|
41
|
+
export type ProjectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
42
|
+
export type UnprojectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawMode, DrawModeValue, SelectionType } from './types';
|
|
3
|
+
import type { OpenLayersLayerProps } from '../layers';
|
|
4
|
+
export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
|
|
5
|
+
export declare const emptyLineString: GeoJSON.Feature;
|
|
6
|
+
export declare const emptyPoint: GeoJSON.Feature;
|
|
7
|
+
export declare const emptyPolygon: GeoJSON.Feature;
|
|
8
|
+
export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
|
|
9
|
+
type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
|
|
10
|
+
export interface MapDrawToolProps {
|
|
11
|
+
geoJSON: GeoJSON.FeatureCollection;
|
|
12
|
+
geoJSONIntersection?: GeoJSON.FeatureCollection;
|
|
13
|
+
geoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
|
|
14
|
+
setGeoJSON: (geojson: GeoJSON.Feature | GeoJSON.FeatureCollection, reason?: string) => GeoJSON.FeatureCollection[];
|
|
15
|
+
setGeoJSONIntersectionBounds: (geojson: GeoJSON.FeatureCollection) => void;
|
|
16
|
+
drawModes: DrawMode[];
|
|
17
|
+
changeDrawMode: (mode: DrawModeValue) => void;
|
|
18
|
+
setDrawModes: (drawModes: DrawMode[]) => void;
|
|
19
|
+
isInEditMode: boolean;
|
|
20
|
+
setEditMode: (shouldEnable: boolean) => void;
|
|
21
|
+
featureLayerIndex: number;
|
|
22
|
+
setFeatureLayerIndex: (newIndex: number) => void;
|
|
23
|
+
activeTool: string;
|
|
24
|
+
changeActiveTool: (newMode: DrawMode) => void;
|
|
25
|
+
setActiveTool: (newToolId: string) => void;
|
|
26
|
+
layers: OpenLayersLayerProps[];
|
|
27
|
+
getLayer: (layerType: DrawLayerType, layerId: string) => OpenLayersLayerProps;
|
|
28
|
+
deactivateTool: () => void;
|
|
29
|
+
changeProperties: (geoJSONProperties: GeoJSON.GeoJsonProperties) => void;
|
|
30
|
+
getProperties: () => GeoJSON.GeoJsonProperties;
|
|
31
|
+
}
|
|
32
|
+
export interface MapDrawToolOptions {
|
|
33
|
+
shouldAllowMultipleShapes?: boolean;
|
|
34
|
+
defaultDrawModes?: DrawMode[];
|
|
35
|
+
defaultGeoJSON?: GeoJSON.FeatureCollection;
|
|
36
|
+
defaultGeoJSONIntersection?: GeoJSON.FeatureCollection;
|
|
37
|
+
defaultGeoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
|
|
38
|
+
defaultGeoJSONIntersectionProperties?: GeoJSON.GeoJsonProperties;
|
|
39
|
+
geoJSONLayerId?: string;
|
|
40
|
+
geoJSONIntersectionLayerId?: string;
|
|
41
|
+
geoJSONIntersectionBoundsLayerId?: string;
|
|
42
|
+
projection?: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare const getIcon: (selectionType: SelectionType) => React.ReactElement | null;
|
|
45
|
+
export declare const defaultPoint: DrawMode;
|
|
46
|
+
export declare const defaultPolygon: DrawMode;
|
|
47
|
+
export declare const defaultBox: DrawMode;
|
|
48
|
+
export declare const defaultLineString: DrawMode;
|
|
49
|
+
export declare const defaultDelete: DrawMode;
|
|
50
|
+
export declare const defaultCircle: DrawMode;
|
|
51
|
+
export declare const defaultSquare: DrawMode;
|
|
52
|
+
export declare const defaultFreehandLine: DrawMode;
|
|
53
|
+
export declare const defaultOval: DrawMode;
|
|
54
|
+
export declare const defaultLocation: DrawMode;
|
|
55
|
+
export declare const defaultSmoothLine: DrawMode;
|
|
56
|
+
export declare const defaultSplit: DrawMode;
|
|
57
|
+
export declare const defaultRotatableBox: DrawMode;
|
|
58
|
+
export declare const defaultModes: DrawMode[];
|
|
59
|
+
export declare const currentlySupportedDrawModes: DrawMode[];
|
|
60
|
+
export declare const useMapDrawTool: ({ defaultDrawModes, shouldAllowMultipleShapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, geoJSONLayerId, geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId, projection, }: MapDrawToolOptions) => MapDrawToolProps;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { FeatureCollection, GeoJsonProperties, Point, Geometry } from 'geojson';
|
|
2
|
+
import type { Bbox } from '@opengeoweb/webmap';
|
|
3
|
+
import type { DrawMode, SelectionType } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Adds properties to the first geojson feature based on the given property object.
|
|
6
|
+
* It only extends or changes the properties which are defined in styleConfig,
|
|
7
|
+
* all other properties in the geojson are left unchanged.
|
|
8
|
+
* @param geojson
|
|
9
|
+
* @param featureProperties
|
|
10
|
+
*/
|
|
11
|
+
export declare const addFeatureProperties: (geojson: GeoJSON.FeatureCollection | undefined, featureProperties: GeoJSON.GeoJsonProperties, featureIndex?: number) => GeoJSON.FeatureCollection;
|
|
12
|
+
/**
|
|
13
|
+
* Matches OpenLayers' default `Draw.clickTolerance`. A pointer that moves
|
|
14
|
+
* further than this between mousedown and mouseup is treated as a drag.
|
|
15
|
+
*/
|
|
16
|
+
export declare const POINTER_CLICK_TOLERANCE_PX = 6;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if a `click` event actually came from a drag — i.e. the pointer
|
|
19
|
+
* moved further than the click tolerance between mousedown and mouseup (e.g.
|
|
20
|
+
* the user pressed, panned the map, then released).
|
|
21
|
+
*
|
|
22
|
+
* Used to prevent panning the map mid-draw from accidentally closing the
|
|
23
|
+
* polygon: the browser still fires a `click` after a drag, and without this
|
|
24
|
+
* check it could trigger the close-on-near-start handler.
|
|
25
|
+
*/
|
|
26
|
+
export declare const isClickFromDrag: (event: MouseEvent, pointerDownPx: [number, number] | null) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Checks if the geometry of the feature is empty as defined per GeoJSON spec.
|
|
29
|
+
* According to the specification, an empty geometry is type 'Polygon' and coordinates
|
|
30
|
+
* equal [[]]. Also GeoWeb uses empty linestring and poit geometries (coordinates [])
|
|
31
|
+
* which are supported as well.
|
|
32
|
+
*
|
|
33
|
+
* @param feature Feature to test
|
|
34
|
+
* @returns Whether `feature` is empty or not
|
|
35
|
+
*/
|
|
36
|
+
export declare const isGeoJSONGeometryEmpty: (feature: GeoJSON.Feature) => boolean;
|
|
37
|
+
export declare const getGeoJSONPropertyValue: (property: string, properties: GeoJSON.GeoJsonProperties, polygonDrawMode: DrawMode | undefined, defaultProperties?: GeoJSON.GeoJsonProperties) => number | string;
|
|
38
|
+
/**
|
|
39
|
+
* moves geoJSON feature as new feature. Mutates newGeoJSON
|
|
40
|
+
* @constructor
|
|
41
|
+
* @param {GeoJSON.FeatureCollection} currentGeoJSON - current geoJSON
|
|
42
|
+
* @param {GeoJSON.FeatureCollection} newGeoJSON - new geoJSON
|
|
43
|
+
* @param {number} featureLayerIndex - feature layer index
|
|
44
|
+
* @param {string} text - reason of change
|
|
45
|
+
*/
|
|
46
|
+
export declare const moveFeature: (currentGeoJSON: GeoJSON.FeatureCollection | undefined, newGeoJSON: GeoJSON.FeatureCollection, featureLayerIndex: number, reason: string, selectionType?: string) => number | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the intersection of two point features. In case of a polygon, only the first feature is used.
|
|
49
|
+
* @param intersectA Feature A
|
|
50
|
+
* @param intersectB Feature B
|
|
51
|
+
* @returns The intersection of the two features.
|
|
52
|
+
*/
|
|
53
|
+
export declare const intersectPointGeoJSONS: (intersectA: GeoJSON.FeatureCollection<GeoJSON.Point>, intersectB: GeoJSON.FeatureCollection, geoJSONProperties?: {
|
|
54
|
+
stroke: string;
|
|
55
|
+
'stroke-width': number;
|
|
56
|
+
'stroke-opacity': number;
|
|
57
|
+
fill: string;
|
|
58
|
+
'fill-opacity': number;
|
|
59
|
+
}) => GeoJSON.FeatureCollection;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the intersection of two (multi) polygon features. In case of a polygon, only the first feature is used.
|
|
62
|
+
* @param intersectA Feature A
|
|
63
|
+
* @param intersectB Feature B
|
|
64
|
+
* @returns The intersection of the two features.
|
|
65
|
+
*/
|
|
66
|
+
export declare function intersectPolygonGeoJSONS(intersectA: FeatureCollection<Geometry, GeoJsonProperties>, // drawn polygon (WGS84)
|
|
67
|
+
intersectB: FeatureCollection<Geometry, GeoJsonProperties>, // FIR polygon (WGS84)
|
|
68
|
+
geoJSONProperties?: GeoJsonProperties, projectionCode?: string): FeatureCollection<Geometry, GeoJsonProperties>;
|
|
69
|
+
export declare const isPointFeatureCollection: (geojson: GeoJSON.FeatureCollection) => geojson is GeoJSON.FeatureCollection<Point>;
|
|
70
|
+
/**
|
|
71
|
+
* Adds the intersectionStart and intersectionEnd properties to the GeoJSONS structure
|
|
72
|
+
* @param geoJSONs
|
|
73
|
+
* @returns GeoJSONS extend with intersections
|
|
74
|
+
*/
|
|
75
|
+
export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties, proj?: string) => GeoJSON.FeatureCollection;
|
|
76
|
+
export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleShapes: boolean) => GeoJSON.FeatureCollection;
|
|
77
|
+
export declare const getLastEmptyFeatureIndex: (geoJSONFeatureCollection: GeoJSON.FeatureCollection) => number | undefined;
|
|
78
|
+
export declare const getFeatureCollection: (geoJSONFeature: GeoJSON.Feature | GeoJSON.FeatureCollection, shouldAllowMultipleShapes: boolean, geoJSONFeatureCollection?: GeoJSON.FeatureCollection) => GeoJSON.FeatureCollection;
|
|
79
|
+
export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.FeatureCollection, selectionType: SelectionType, featureLayerIndex?: number) => boolean;
|
|
80
|
+
export declare const rewindGeometry: (geoJSON: FeatureCollection) => FeatureCollection;
|
|
81
|
+
export declare const addGeoJSONProperties: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, newProperties: GeoJsonProperties) => GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
82
|
+
export declare const addSelectionTypeToGeoJSON: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, selectionType: SelectionType) => GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
83
|
+
export declare const getFeatureExtent: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => Bbox;
|
|
84
|
+
export declare const getDrawModeIdFromSelectionType: (selectionType: string, drawModes: DrawMode[]) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as MapContext } from './context/MapContext';
|
|
2
|
+
export * from './component/OpenLayersMapView';
|
|
3
|
+
export * from './utils/TimeAwareImageWrapper';
|
|
4
|
+
export type * from './utils/types';
|
|
5
|
+
export * from './utils/projections';
|
|
6
|
+
export * from './utils/setMapCenter';
|
|
7
|
+
export * from './utils/viewUtils';
|
|
8
|
+
export * from './controls';
|
|
9
|
+
export * from './draw';
|
|
10
|
+
export * from './styles/useIconStyle';
|
|
11
|
+
export * from './OlStyles';
|
|
12
|
+
export * from './OlColors';
|
|
13
|
+
export * from './tools';
|
|
14
|
+
export * from './layers';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Feature } from 'ol';
|
|
2
|
+
import type { StyleLike } from 'ol/style/Style';
|
|
3
|
+
import type { BoxSelect, ClickOnFeature, HoverSelect } from '../utils/types';
|
|
4
|
+
export interface FeatureLayerProps {
|
|
5
|
+
features: Feature[];
|
|
6
|
+
style: StyleLike;
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
hoverSelect?: HoverSelect;
|
|
9
|
+
clickOnFeature?: ClickOnFeature;
|
|
10
|
+
boxSelect?: BoxSelect;
|
|
11
|
+
testId?: string;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
declutter?: boolean;
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const FeatureLayer: React.FC<FeatureLayerProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type ImageLayer from 'ol/layer/Image';
|
|
2
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
export interface TiledWMSLayerProps {
|
|
4
|
+
url: string;
|
|
5
|
+
layerName: string;
|
|
6
|
+
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
7
|
+
layerProps?: LayerFoundation;
|
|
8
|
+
projection?: string;
|
|
9
|
+
shouldRender?: boolean;
|
|
10
|
+
geotiffStyle?: object;
|
|
11
|
+
normalize?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const GeoTIFFLayer: React.FC<TiledWMSLayerProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FeatureCollection } from 'geojson';
|
|
2
|
+
import type { StyleLike } from 'ol/style/Style';
|
|
3
|
+
import type { BoxSelect, ClickOnFeature, HoverSelect } from '../utils/types';
|
|
4
|
+
export interface OpenLayersFeatureLayerProps {
|
|
5
|
+
featureCollection?: FeatureCollection;
|
|
6
|
+
style?: StyleLike;
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
hoverSelect?: HoverSelect;
|
|
9
|
+
clickOnFeature?: ClickOnFeature;
|
|
10
|
+
boxSelect?: BoxSelect;
|
|
11
|
+
testId?: string;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
declutter?: boolean;
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const OpenLayersFeatureLayer: React.FC<OpenLayersFeatureLayerProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { LayerFoundation, TileServerSettings } from '@opengeoweb/webmap';
|
|
2
|
+
import type { DrawModeExitCallback, FeatureEvent } from '../draw/types';
|
|
3
|
+
import type { OnInitializeLayerProps } from '../utils/types';
|
|
4
|
+
export interface OpenLayersLayerProps extends LayerFoundation {
|
|
5
|
+
zIndex?: number;
|
|
6
|
+
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
7
|
+
onLayerReady?: (layerId: string) => void;
|
|
8
|
+
onLayerError?: (layerId: string, message: string) => void;
|
|
9
|
+
debugMode?: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
isInEditMode?: boolean;
|
|
12
|
+
drawMode?: string;
|
|
13
|
+
updateGeojson?: (geoJson: GeoJSON.FeatureCollection, reason: string) => void;
|
|
14
|
+
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
15
|
+
selectedFeatureIndex?: number;
|
|
16
|
+
onClickFeature?: (event?: FeatureEvent) => void;
|
|
17
|
+
onHoverFeature?: (event: FeatureEvent) => void;
|
|
18
|
+
tileServerSettings?: TileServerSettings;
|
|
19
|
+
}
|
|
20
|
+
export declare const OpenLayersLayer: (layerProps: OpenLayersLayerProps) => React.ReactElement | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type ImageLayer from 'ol/layer/Image';
|
|
2
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
export interface TiledWMSLayerProps {
|
|
4
|
+
url: string;
|
|
5
|
+
layerName: string;
|
|
6
|
+
styleName: string;
|
|
7
|
+
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
8
|
+
layerProps?: LayerFoundation;
|
|
9
|
+
}
|
|
10
|
+
export declare const TiledWMSLayer: React.FC<TiledWMSLayerProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Dimension } from '@opengeoweb/webmap';
|
|
2
|
+
import type { OpenLayersFeatureLayerProps } from './OpenLayersFeatureLayer';
|
|
3
|
+
import type { OnInitializeLayerProps } from '../utils/types';
|
|
4
|
+
interface TimeAwareEDRLocationLayerProps extends OpenLayersFeatureLayerProps {
|
|
5
|
+
layerId?: string;
|
|
6
|
+
edrBaseUrl: string;
|
|
7
|
+
parameter: string;
|
|
8
|
+
dimensions?: Dimension[];
|
|
9
|
+
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
10
|
+
opacity?: number;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const TimeAwareEDRLocationLayer: React.FC<TimeAwareEDRLocationLayerProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
import type { OpenLayersFeatureLayerProps } from './OpenLayersFeatureLayer';
|
|
4
|
+
import { getStacFrameItemsToRender, getStacItemLookupWindowForTimes } from './TimeAwareGeoTIFFLayerUtils';
|
|
5
|
+
import type { OnInitializeLayerProps } from '../utils/types';
|
|
6
|
+
export { getStacFrameItemsToRender, getStacItemLookupWindowForTimes };
|
|
7
|
+
interface TimeAwareGeoTIFFLayerProps extends OpenLayersFeatureLayerProps {
|
|
8
|
+
layerId?: string;
|
|
9
|
+
stacCollectionUrl: string;
|
|
10
|
+
layerName: string;
|
|
11
|
+
styleName?: string;
|
|
12
|
+
dimensions?: Dimension[];
|
|
13
|
+
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
14
|
+
opacity?: number;
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const TimeAwareGeoTIFFLayer: React.FC<TimeAwareGeoTIFFLayerProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
+
import type { STACItem } from '../../../geotiff-layer-api/api';
|
|
3
|
+
export declare const STAC_ITEM_LOOKUP_WINDOW_MS: number;
|
|
4
|
+
export declare const STAC_ITEM_LOOKUP_WINDOW_INTERVAL_MULTIPLIER = 20;
|
|
5
|
+
export declare const STAC_GEOTIFF_FRAME_PRELOAD_RADIUS = 4;
|
|
6
|
+
export interface STACFrameItem {
|
|
7
|
+
item: STACItem;
|
|
8
|
+
isSelected: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type STACItemLookupWindow = [string | undefined, string | undefined];
|
|
11
|
+
export declare const resolvePreferredStyleName: (styleNames: string[], currentStyle?: string) => string;
|
|
12
|
+
export declare const getTimeIntervalInMilliseconds: (interval?: TimeInterval) => number | undefined;
|
|
13
|
+
export declare const getStacItemLookupWindowForTimes: (timeValues: string[], windowMs?: number) => STACItemLookupWindow;
|
|
14
|
+
export declare const isStacItemLookupWindowValidForTime: ([startDate, endDate]: STACItemLookupWindow, timeValue: string | undefined, requiredMarginMs: number) => boolean;
|
|
15
|
+
export declare const getFrameStepInMilliseconds: (timeValue: string | undefined, prefetchList: number[], fallbackStepMs: number | undefined) => number | undefined;
|
|
16
|
+
export declare const getLookupStepInMilliseconds: (frameStepMs: number | undefined, timeIntervalMs: number | undefined) => number | undefined;
|
|
17
|
+
export declare const shouldPreloadStacFrames: (frameStepMs: number | undefined, timeIntervalMs: number | undefined) => boolean;
|
|
18
|
+
export declare const getStacFrameTargetTimes: (timeValue: string | undefined, prefetchList: number[], fallbackStepMs: number | undefined, preloadRadius?: number) => number[];
|
|
19
|
+
export declare const getRequiredLookupMarginInMilliseconds: (timeValue: string | undefined, frameTargetTimes: number[], fallbackMarginMs: number) => number;
|
|
20
|
+
export declare const getStacFrameItemsToRender: (items: STACItem[] | undefined, timeValue?: string, frameTargetTimes?: number[]) => STACFrameItem[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import TileLayer from 'ol/layer/Tile';
|
|
2
|
+
import type { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
import type { OnInitializeLayerProps } from '../utils/types';
|
|
4
|
+
export interface TimeAwareWMTSLayerProps {
|
|
5
|
+
layerId?: string;
|
|
6
|
+
getCapsURL: string;
|
|
7
|
+
layerName: string;
|
|
8
|
+
styleName?: string;
|
|
9
|
+
layerOptions: ConstructorParameters<typeof TileLayer>[0];
|
|
10
|
+
dimensions?: Dimension[];
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
13
|
+
onLayerReady?: (layerId: string) => void;
|
|
14
|
+
onLayerError?: (layerId: string, message: string) => void;
|
|
15
|
+
debugMode?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const TimeAwareWMTSLayer: React.FC<TimeAwareWMTSLayerProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import ImageLayer from 'ol/layer/Image';
|
|
2
|
+
import type { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
import type { OnInitializeLayerProps } from '../utils/types';
|
|
4
|
+
interface TimeawareImageSourceWMSLayerProps {
|
|
5
|
+
layerId?: string;
|
|
6
|
+
getCapsURL: string;
|
|
7
|
+
layerName: string;
|
|
8
|
+
styleName?: string;
|
|
9
|
+
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
10
|
+
dimensions?: Dimension[];
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
13
|
+
onLayerReady?: (layerId: string) => void;
|
|
14
|
+
onLayerError?: (layerId: string, message: string) => void;
|
|
15
|
+
debugMode?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const TimeawareImageSourceWMSLayer: React.FC<TimeawareImageSourceWMSLayerProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ImageLayer from 'ol/layer/Image';
|
|
2
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
export interface WMSLayerProps {
|
|
4
|
+
url: string;
|
|
5
|
+
layerName: string;
|
|
6
|
+
styleName: string;
|
|
7
|
+
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
8
|
+
layerProps?: LayerFoundation;
|
|
9
|
+
}
|
|
10
|
+
export declare const WMSLayer: React.FC<WMSLayerProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import TileLayer from 'ol/layer/Tile';
|
|
2
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
export interface WMTSLayerProps {
|
|
4
|
+
getCapsURL: string;
|
|
5
|
+
layerName: string;
|
|
6
|
+
tileMatrixSet: string;
|
|
7
|
+
layerOptions: ConstructorParameters<typeof TileLayer>[0];
|
|
8
|
+
layerProps?: LayerFoundation;
|
|
9
|
+
}
|
|
10
|
+
export declare const WMTSLayer: React.FC<WMTSLayerProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import TileLayer from 'ol/layer/Tile';
|
|
2
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
export interface XYZLayerProps {
|
|
4
|
+
urlTemplate: string;
|
|
5
|
+
layerOptions: ConstructorParameters<typeof TileLayer>[0];
|
|
6
|
+
layerProps?: LayerFoundation;
|
|
7
|
+
tileProjectionCode?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const XYZLayer: React.FC<XYZLayerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fakeWMTSLayerApiHandlers: import("msw").HttpHandler[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './TimeawareImageSourceWMSLayer';
|
|
2
|
+
export * from './WMSLayer';
|
|
3
|
+
export * from './WMTSLayer';
|
|
4
|
+
export * from './XYZLayer';
|
|
5
|
+
export * from './DefaultBaseLayers';
|
|
6
|
+
export * from './OpenLayersLayer';
|
|
7
|
+
export * from './FeatureLayer';
|
|
8
|
+
export * from './OpenLayersFeatureLayer';
|
|
9
|
+
export * from './TimeAwareEDRLocationLayer';
|
|
10
|
+
export * from './TimeAwareWMTSLayer';
|
|
11
|
+
export * from './TimeAwareGeoTIFFLayer';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawModeExitCallback } from '../draw';
|
|
3
|
+
import type { OpenLayersLayerProps } from '../layers';
|
|
4
|
+
interface OlStoryLayoutProps {
|
|
5
|
+
layers: OpenLayersLayerProps[];
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
onExitDrawMode: (reason: DrawModeExitCallback) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const OlStoryLayout: React.FC<OlStoryLayoutProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OlStoryLayout';
|