@opengeoweb/webmap-react 14.3.0 → 14.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +7640 -6473
- package/package.json +4 -4
- package/src/index.d.ts +2 -2
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +1 -2
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +2 -3
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +1 -2
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +3 -4
- package/src/lib/components/Legend/Legend.d.ts +1 -1
- package/src/lib/components/Legend/LegendButton.d.ts +1 -1
- package/src/lib/components/Legend/LegendDialog.d.ts +3 -3
- package/src/lib/components/Legend/LegendLayout.d.ts +1 -2
- package/src/lib/components/MapControls/MapControlButton.d.ts +3 -3
- package/src/lib/components/MapControls/MapControls.d.ts +1 -1
- package/src/lib/components/MapControls/ZoomControls.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +2 -2
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +2 -2
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +2 -2
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/utils.d.ts +4 -4
- package/src/lib/components/MapMeasure/MapMeasure.d.ts +5 -0
- package/src/lib/components/MapMeasure/MapMeasure.spec.d.ts +1 -0
- package/src/lib/components/MapMeasure/index.d.ts +1 -0
- package/src/lib/components/MapMousePosition/MapMousePosition.d.ts +1 -1
- package/src/lib/components/MapTime/MapTime.d.ts +2 -2
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +0 -1
- package/src/lib/components/OpenLayers/OlStyles.d.ts +19 -6
- package/src/lib/components/OpenLayers/OpenLayers.ClickFeatureLayer.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.ClickOnMapTool.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.FeatureLayer.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.FeatureLayerOpacity.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.GeoTIFFLayer.stories.d.ts +17 -0
- package/src/lib/components/OpenLayers/OpenLayers.GetFeatureInfo.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.HoverFeatureLayer.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.Prefetch.stories.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.TimeAwareWMTSLayer.stories.d.ts +10 -0
- package/src/lib/components/OpenLayers/OpenLayersMapView.Measure.stories.d.ts +6 -0
- package/src/lib/components/OpenLayers/component/OpenLayersMapView.d.ts +1 -1
- package/src/lib/components/OpenLayers/context/MapContext.d.ts +1 -1
- package/src/lib/components/OpenLayers/context/TimeContext.d.ts +1 -1
- package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +1 -1
- package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.d.ts +1 -1
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +3 -3
- package/src/lib/components/OpenLayers/draw/geojsonShapes.d.ts +1 -0
- package/src/lib/components/OpenLayers/draw/mapDrawUtils.d.ts +4 -1
- package/src/lib/components/OpenLayers/draw/storyComponents/EditModeButton.d.ts +0 -1
- package/src/lib/components/OpenLayers/draw/storyComponents/FeatureLayers.d.ts +0 -1
- package/src/lib/components/OpenLayers/draw/storyComponents/GeoJSONTextField.d.ts +1 -1
- package/src/lib/components/OpenLayers/draw/storyComponents/SelectField.d.ts +0 -1
- package/src/lib/components/OpenLayers/draw/storyComponents/StoryLayout.d.ts +2 -3
- package/src/lib/components/OpenLayers/draw/storyComponents/StoryLayoutGrid.d.ts +0 -1
- package/src/lib/components/OpenLayers/draw/storyComponents/ToolButton.d.ts +1 -2
- package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawTool.d.ts +2 -3
- package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolIntersection.d.ts +2 -3
- package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolMultipleDrawTools.d.ts +2 -3
- package/src/lib/components/OpenLayers/draw/types.d.ts +1 -1
- package/src/lib/components/OpenLayers/draw/useMapDrawTool.d.ts +2 -2
- package/src/lib/components/OpenLayers/index.d.ts +1 -1
- package/src/lib/components/OpenLayers/layers/DefaultBaseLayers.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +3 -3
- package/src/lib/components/OpenLayers/layers/GeoTIFFLayer.d.ts +11 -0
- package/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.d.ts +3 -3
- package/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +2 -2
- package/src/lib/components/OpenLayers/layers/TiledWMSLayer.d.ts +2 -2
- package/src/lib/components/OpenLayers/layers/TimeAwareEDRLocationLayer.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/TimeAwareGeoTIFFLayer.d.ts +15 -0
- package/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.d.ts +17 -0
- package/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.spec.d.ts +1 -0
- package/src/lib/components/OpenLayers/layers/TimeawareGeoTIFFLayer.spec.d.ts +1 -0
- package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.d.ts +1 -1
- package/src/lib/components/OpenLayers/layers/WMSLayer.d.ts +1 -1
- package/src/lib/components/OpenLayers/layers/WMTSLayer.d.ts +1 -1
- package/src/lib/components/OpenLayers/layers/XYZLayer.d.ts +1 -1
- package/src/lib/components/OpenLayers/layers/index.d.ts +2 -0
- package/src/lib/components/OpenLayers/layers/utils.d.ts +2 -0
- package/src/lib/components/OpenLayers/layers/utils.spec.d.ts +1 -0
- package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +2 -2
- package/src/lib/components/OpenLayers/styles/useIconStyle.d.ts +1 -1
- package/src/lib/components/OpenLayers/tools/ClickOnMapTool.d.ts +1 -1
- package/src/lib/components/OpenLayers/useProjectionDropDown.d.ts +2 -2
- package/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.d.ts +3 -3
- package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +4 -3
- package/src/lib/components/OpenLayers/utils/TimeawareImageSource.d.ts +3 -3
- package/src/lib/components/OpenLayers/utils/WorkerQueue.d.ts +1 -1
- package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.d.ts +2 -2
- package/src/lib/components/OpenLayers/utils/projections.d.ts +1 -1
- package/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +2 -2
- package/src/lib/components/OpenLayers/utils/types.d.ts +2 -2
- package/src/lib/components/OpenLayers/utils/viewUtils.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +1 -2
- package/src/lib/components/TanStackDemo/TanStackDemo.GetCapabilitiesLiveUpdate.stories.d.ts +1 -1
- package/src/lib/components/TanStackDemo/storyUtils.d.ts +1 -1
- package/src/lib/components/WMSViewerDemo/components/WMSDimTimeYearSelector.d.ts +1 -1
- package/src/lib/components/WMSViewerDemo/components/WMSLayerSelector.d.ts +2 -2
- package/src/lib/components/WMSViewerDemo/components/WMSStyleSelector.d.ts +2 -2
- package/src/lib/components/WMSViewerDemo/components/WMSTimeSlider.d.ts +1 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/edr-layer-api/api.d.ts +2 -2
- package/src/lib/edr-layer-api/colormaps/edrOlLegendUtils.d.ts +2 -2
- package/src/lib/edr-layer-api/hooks.d.ts +2 -2
- package/src/lib/geotiff-layer-api/api.d.ts +43 -0
- package/src/lib/geotiff-layer-api/fakeApi.d.ts +1 -0
- package/src/lib/geotiff-layer-api/hooks.d.ts +5 -0
- package/src/lib/geotiff-layer-api/utils/useGetStacGeoTIFFLayerInstance .d.ts +11 -0
- package/src/lib/hooks/useAnimationForLayer.d.ts +2 -2
- package/src/lib/hooks/useHooksGetCapabilities.d.ts +12 -9
- package/src/lib/index.d.ts +1 -1
- package/src/lib/types/index.d.ts +1 -1
- package/src/lib/types/types.d.ts +1 -1
- package/src/lib/utils/i18n.d.ts +3 -2
- package/src/lib/utils/utils.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.0",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/webmap": "14.
|
|
12
|
-
"@opengeoweb/theme": "14.
|
|
13
|
-
"@opengeoweb/shared": "14.
|
|
11
|
+
"@opengeoweb/webmap": "14.5.0",
|
|
12
|
+
"@opengeoweb/theme": "14.5.0",
|
|
13
|
+
"@opengeoweb/shared": "14.5.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"ol": "^10.4.0",
|
|
16
16
|
"proj4": "^2.9.2",
|
package/src/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WEBMAP_NAMESPACE, webmapTranslations } from '@opengeoweb/webmap';
|
|
2
2
|
import webmapReactTranslations from '../locales/webmap-react.json';
|
|
3
3
|
import TimeContext from './lib/components/OpenLayers/context/TimeContext';
|
|
4
|
-
import { TimeContextType } from './lib/components/OpenLayers/types/Timespan';
|
|
5
|
-
import { TimeawareImageSource } from './lib/components/OpenLayers/utils/TimeawareImageSource';
|
|
4
|
+
import type { TimeContextType } from './lib/components/OpenLayers/types/Timespan';
|
|
6
5
|
import { makeTimeList } from './lib/components/OpenLayers/utils/makeDimValuesToPrefetch';
|
|
6
|
+
import { TimeawareImageSource } from './lib/components/OpenLayers/utils/TimeawareImageSource';
|
|
7
7
|
export * from './lib';
|
|
8
8
|
export { webmapReactTranslations };
|
|
9
9
|
export { WEBMAP_NAMESPACE, webmapTranslations };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { LayerProps } from '@opengeoweb/webmap';
|
|
1
|
+
import type { Position, Source } from '@opengeoweb/shared';
|
|
2
|
+
import type { LayerProps } from '@opengeoweb/webmap';
|
|
4
3
|
export interface LayerInfoDialogProps {
|
|
5
4
|
layer: LayerProps;
|
|
6
5
|
serviceName: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Dimension, LayerProps } from '@opengeoweb/webmap';
|
|
3
|
-
import {
|
|
4
|
-
import { ListItem } from './LayerInfoList';
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { Dimension, LayerProps } from '@opengeoweb/webmap';
|
|
3
|
+
import type { ListItem } from './LayerInfoList';
|
|
5
4
|
export declare const getLayerStyles: (layer: LayerProps) => string;
|
|
6
5
|
export declare const getDimensionValue: (name: string, dimensions: Dimension[]) => string;
|
|
7
6
|
export declare const getLayerBbox: (t: TFunction, layer: LayerProps) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Source } from '@opengeoweb/shared';
|
|
3
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Source } from '@opengeoweb/shared';
|
|
3
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
4
|
interface LegendDialogProps {
|
|
5
5
|
layers: LayerFoundation[];
|
|
6
6
|
isOpen: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { CustomIconProps } from '@opengeoweb/shared';
|
|
1
|
+
import type { TooltipProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { CustomIconProps } from '@opengeoweb/shared';
|
|
4
4
|
interface MapControlButtonProps extends CustomIconProps {
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
placement?: TooltipProps['placement'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import type { SvgIconProps } from '@mui/material';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import type { WMJSDimension } from '@opengeoweb/webmap';
|
|
5
5
|
export interface DimensionConfig {
|
|
6
6
|
name: string;
|
|
7
7
|
label: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MapMeasure';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const MapMousePosition: React.FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Dimension } from '@opengeoweb/webmap';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Dimension } from '@opengeoweb/webmap';
|
|
3
3
|
export declare const getTimeDimension: (dimensions: Dimension[]) => Dimension;
|
|
4
4
|
export declare const formatTime: (time: string, timeFormat: string) => string;
|
|
5
5
|
interface MapeTimeProps {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ColorLike } from 'ol/colorlike';
|
|
2
|
-
import {
|
|
1
|
+
import type { ColorLike } from 'ol/colorlike';
|
|
2
|
+
import type { Coordinate } from 'ol/coordinate';
|
|
3
|
+
import type { FeatureLike } from 'ol/Feature';
|
|
3
4
|
import { Polygon } from 'ol/geom';
|
|
5
|
+
import type { LineCoordType, GeometryFunction } from 'ol/interaction/Draw';
|
|
4
6
|
import { Circle, Fill, Stroke } from 'ol/style';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { DrawModeValue } from './draw/types';
|
|
7
|
+
import type { StyleFunction, StyleLike } from 'ol/style/Style';
|
|
8
|
+
import Style from 'ol/style/Style';
|
|
9
|
+
import type { DrawModeValue } from './draw/types';
|
|
9
10
|
export declare enum MapFeatureClass {
|
|
10
11
|
MyLocation = "MyLocation",
|
|
11
12
|
GenericMarker = "GenericMarker",
|
|
@@ -23,9 +24,21 @@ export declare const FEATURE_VERTICE_IMAGE: Circle;
|
|
|
23
24
|
export declare const FEATURE_VERTICE_HANDLE_IMAGE: Circle;
|
|
24
25
|
export declare const FEATURE_VERTICES_EDIT_HANDLES: Style;
|
|
25
26
|
export declare const getFeaturePointStyle: (fillColor?: string, fillOpacity?: number) => Style;
|
|
27
|
+
export declare const labelOptions: {
|
|
28
|
+
font: string;
|
|
29
|
+
padding: number[];
|
|
30
|
+
fill: Fill;
|
|
31
|
+
text: string;
|
|
32
|
+
backgroundFill: Fill;
|
|
33
|
+
backgroundStroke: Stroke;
|
|
34
|
+
offsetY: number;
|
|
35
|
+
overflow: boolean;
|
|
36
|
+
};
|
|
26
37
|
export declare const textLabelStyle: (text: string) => Style;
|
|
27
38
|
export declare const multiPolygonLabelStyle: (text: string) => Style;
|
|
28
39
|
export declare const multiLineStringLabelStyle: (text: string) => Style;
|
|
40
|
+
export declare const measureToolStyle: (lineColor: string) => Style;
|
|
41
|
+
export declare const measureResultStyle: (lineColor: string) => Style;
|
|
29
42
|
export declare const geowebColorToOpenLayersColor: (color: string, opacity?: string | number) => ColorLike;
|
|
30
43
|
export declare const inlineFeatureStyle: (feature: FeatureLike) => Style[];
|
|
31
44
|
export declare const genericOpenLayersFeatureStyle: StyleFunction;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const GeoTIFFLayerMap: {
|
|
8
|
+
(): React.ReactNode;
|
|
9
|
+
parameters: {
|
|
10
|
+
msw: {
|
|
11
|
+
handlers: {
|
|
12
|
+
all: import("msw").HttpHandler[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
storyName: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const TimeAwareWMTSLayerStory: {
|
|
8
|
+
(): React.ReactNode;
|
|
9
|
+
storyName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { OpenLayersMapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof OpenLayersMapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof OpenLayersMapView>;
|
|
6
|
+
export declare const MapViewMeasure: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimeContextType } from '../types/Timespan';
|
|
1
|
+
import type { TimeContextType } from '../types/Timespan';
|
|
2
2
|
export type ChangeRelevantTimestepsFn = (layerId: string, dimensionValues: string[]) => void;
|
|
3
3
|
export type ResetPrefetchFn = (layerId: string) => void;
|
|
4
4
|
export type TimestepPrefetchedFn = (layerId: string, dimensionValue: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { DrawModeExitCallback, DrawModeValue } from './types';
|
|
1
|
+
import type { StyleLike } from 'ol/style/Style';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { DrawModeExitCallback, DrawModeValue } from './types';
|
|
4
4
|
export interface OpenLayersMapDrawProps {
|
|
5
5
|
geojson: GeoJSON.FeatureCollection;
|
|
6
6
|
drawMode?: DrawModeValue;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const DEFAULT_GEOJSON_STYLE_FILL_OPACITY = 0.1;
|
|
1
2
|
export declare const defaultGeoJSONStyleProperties: GeoJSON.GeoJsonProperties;
|
|
2
3
|
export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
3
4
|
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Position } from 'geojson';
|
|
2
|
+
import type { InterfaceProjection, Converter } from 'proj4';
|
|
3
|
+
import proj4 from 'proj4';
|
|
2
4
|
export type ProjectorCache = Record<string, InterfaceProjection | Converter>;
|
|
3
5
|
export declare const projectorCache: ProjectorCache;
|
|
4
6
|
export declare const getProj4: (projection: string | proj4.InterfaceProjection) => InterfaceProjection;
|
|
5
7
|
export declare const NEW_LINESTRING_CREATED = "new point in LineString created";
|
|
6
8
|
export declare const NEW_FEATURE_CREATED = "new feature created";
|
|
7
9
|
export declare const NEW_POINT_CREATED = "new point created";
|
|
10
|
+
export declare const roundCoordinates: <T extends Position | Position[] | Position[][] | Position[][][]>(coords: T) => T;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { OpenLayersLayerProps } from '../../layers';
|
|
1
|
+
import type { DrawModeExitCallback } from '../..';
|
|
2
|
+
import type { OpenLayersLayerProps } from '../../layers';
|
|
4
3
|
interface StoryLayoutProps {
|
|
5
4
|
layers: OpenLayersLayerProps[];
|
|
6
5
|
children: React.ReactElement;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
-
import { SelectionType } from './types';
|
|
1
|
+
import type { SelectionType } from './types';
|
|
2
|
+
import type { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
3
|
export declare const opacityOptions: string[];
|
|
5
4
|
export declare const fillOptions: any[];
|
|
6
5
|
export declare const strokeWidthOptions: string[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
1
|
+
import type { SelectionType } from './types';
|
|
2
|
+
import type { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
3
|
export declare const getIntersectionToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
5
4
|
export declare const exampleIntersections: {
|
|
6
5
|
title: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
1
|
+
import type { DrawMode } from './types';
|
|
2
|
+
import type { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
3
|
export declare const firSelectionType = "fir";
|
|
5
4
|
export declare const exampleIntersectionsMultiDrawTool: {
|
|
6
5
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawMode, DrawModeValue, SelectionType } from './types';
|
|
3
|
-
import { OpenLayersLayerProps } from '../layers';
|
|
2
|
+
import type { DrawMode, DrawModeValue, SelectionType } from './types';
|
|
3
|
+
import type { OpenLayersLayerProps } from '../layers';
|
|
4
4
|
export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
|
|
5
5
|
export declare const emptyLineString: GeoJSON.Feature;
|
|
6
6
|
export declare const emptyPoint: GeoJSON.Feature;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as MapContext } from './context/MapContext';
|
|
2
2
|
export * from './component/OpenLayersMapView';
|
|
3
3
|
export * from './utils/TimeAwareImageWrapper';
|
|
4
|
-
export * from './utils/types';
|
|
4
|
+
export type * from './utils/types';
|
|
5
5
|
export * from './utils/projections';
|
|
6
6
|
export * from './utils/setMapCenter';
|
|
7
7
|
export * from './utils/viewUtils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feature } from 'ol';
|
|
2
|
-
import { StyleLike } from 'ol/style/Style';
|
|
3
|
-
import { ClickOnFeature, HoverSelect } from '../utils/types';
|
|
1
|
+
import type { Feature } from 'ol';
|
|
2
|
+
import type { StyleLike } from 'ol/style/Style';
|
|
3
|
+
import type { ClickOnFeature, HoverSelect } from '../utils/types';
|
|
4
4
|
export interface FeatureLayerProps {
|
|
5
5
|
features: Feature[];
|
|
6
6
|
style: StyleLike;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
11
|
+
export declare const GeoTIFFLayer: React.FC<TiledWMSLayerProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ClickOnFeature, HoverSelect } from '../utils/types';
|
|
1
|
+
import type { FeatureCollection } from 'geojson';
|
|
2
|
+
import type { StyleLike } from 'ol/style/Style';
|
|
3
|
+
import type { ClickOnFeature, HoverSelect } from '../utils/types';
|
|
4
4
|
export interface OpenLayersFeatureLayerProps {
|
|
5
5
|
featureCollection?: FeatureCollection;
|
|
6
6
|
style?: StyleLike;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LayerFoundation, TileServerSettings } from '@opengeoweb/webmap';
|
|
1
|
+
import type { LayerFoundation, TileServerSettings } from '@opengeoweb/webmap';
|
|
2
|
+
import type { DrawModeExitCallback, FeatureEvent } from '../draw/types';
|
|
2
3
|
import type { OnInitializeLayerProps } from '../utils/types';
|
|
3
|
-
import { DrawModeExitCallback, FeatureEvent } from '../draw/types';
|
|
4
4
|
export interface OpenLayersLayerProps extends LayerFoundation {
|
|
5
5
|
zIndex?: number;
|
|
6
6
|
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ImageLayer from 'ol/layer/Image';
|
|
2
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
1
|
+
import type ImageLayer from 'ol/layer/Image';
|
|
2
|
+
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
3
|
export interface TiledWMSLayerProps {
|
|
4
4
|
url: string;
|
|
5
5
|
layerName: string;
|