@opengeoweb/webmap-react 15.3.0 → 17.0.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 +1140 -352
- package/package.json +5 -5
- package/src/index.d.ts +0 -11
- package/src/lib/components/Clock/Clock.d.ts +0 -20
- package/src/lib/components/Clock/Clock.spec.d.ts +0 -1
- package/src/lib/components/Clock/Clock.stories.d.ts +0 -9
- package/src/lib/components/Clock/ClockContainer.d.ts +0 -13
- package/src/lib/components/Clock/clockContainerUtils.d.ts +0 -1
- package/src/lib/components/Clock/clockContainerUtils.spec.d.ts +0 -1
- package/src/lib/components/Clock/index.d.ts +0 -1
- package/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.d.ts +0 -2
- package/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +0 -8
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +0 -16
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +0 -10
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +0 -8
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +0 -10
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +0 -16
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +0 -9
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/index.d.ts +0 -6
- package/src/lib/components/Legend/Legend.d.ts +0 -7
- package/src/lib/components/Legend/Legend.spec.d.ts +0 -1
- package/src/lib/components/Legend/Legend.stories.d.ts +0 -10
- package/src/lib/components/Legend/LegendButton.d.ts +0 -5
- package/src/lib/components/Legend/LegendButton.spec.d.ts +0 -1
- package/src/lib/components/Legend/LegendDialog.d.ts +0 -15
- package/src/lib/components/Legend/LegendDialog.spec.d.ts +0 -1
- package/src/lib/components/Legend/LegendLayout.d.ts +0 -12
- package/src/lib/components/Legend/LegendLayout.spec.d.ts +0 -1
- package/src/lib/components/Legend/index.d.ts +0 -4
- package/src/lib/components/MapControls/MapControlButton.d.ts +0 -10
- package/src/lib/components/MapControls/MapControlButton.spec.d.ts +0 -1
- package/src/lib/components/MapControls/MapControls.d.ts +0 -7
- package/src/lib/components/MapControls/MapControls.spec.d.ts +0 -1
- package/src/lib/components/MapControls/ZoomControls.d.ts +0 -8
- package/src/lib/components/MapControls/ZoomControls.spec.d.ts +0 -1
- package/src/lib/components/MapControls/index.d.ts +0 -3
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +0 -8
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.spec.d.ts +0 -1
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +0 -14
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +0 -13
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +0 -14
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.spec.d.ts +0 -1
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +0 -12
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.spec.d.ts +0 -1
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +0 -10
- package/src/lib/components/MapDimensionSelect/index.d.ts +0 -6
- package/src/lib/components/MapDimensionSelect/utils.d.ts +0 -18
- package/src/lib/components/MapDimensionSelect/utils.spec.d.ts +0 -1
- package/src/lib/components/MapMeasure/MapMeasure.d.ts +0 -5
- package/src/lib/components/MapMeasure/MapMeasure.spec.d.ts +0 -1
- package/src/lib/components/MapMeasure/index.d.ts +0 -1
- package/src/lib/components/MapMousePosition/MapMousePosition.d.ts +0 -2
- package/src/lib/components/MapMousePosition/MapMousePosition.spec.d.ts +0 -1
- package/src/lib/components/MapMousePosition/index.d.ts +0 -1
- package/src/lib/components/MapTime/MapTime.d.ts +0 -11
- package/src/lib/components/MapTime/MapTime.spec.d.ts +0 -1
- package/src/lib/components/MapTime/index.d.ts +0 -1
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +0 -22
- package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +0 -1
- package/src/lib/components/MapWarning/index.d.ts +0 -1
- package/src/lib/components/OpenLayers/OlColors.d.ts +0 -5
- package/src/lib/components/OpenLayers/OlStyles.d.ts +0 -50
- package/src/lib/components/OpenLayers/OlStyles.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/OpenLayers.BaseLayer.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayers.ClickFeatureLayer.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.ClickOnMapTool.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.FeatureLayer.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.FeatureLayerOpacity.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.GeoTIFFLayer.stories.d.ts +0 -17
- package/src/lib/components/OpenLayers/OpenLayers.GetFeatureInfo.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.HoverFeatureLayer.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.Prefetch.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.TimeAwareWMTSLayer.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayersConstants.d.ts +0 -2
- package/src/lib/components/OpenLayers/OpenLayersMapView.Error.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.MapPin.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.Measure.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.NoTimeDim.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.Passive.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.RadarAnimation.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.RadarData.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.ReferenceTimeModes.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBox.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBoxLocalState.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.ShiftToZoom.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.ShowLayerInfo.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.TiledBaseLayers.stories.d.ts +0 -17
- package/src/lib/components/OpenLayers/OpenLayersMapView.VFXData.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/component/OpenLayersMapView.d.ts +0 -13
- package/src/lib/components/OpenLayers/component/OpenLayersMapView.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/context/MapContext.d.ts +0 -6
- package/src/lib/components/OpenLayers/context/TimeContext.d.ts +0 -6
- package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +0 -8
- package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.d.ts +0 -6
- package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/controls/index.d.ts +0 -2
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +0 -29
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.stories.d.ts +0 -8
- package/src/lib/components/OpenLayers/draw/geojsonShapes.d.ts +0 -19
- package/src/lib/components/OpenLayers/draw/index.d.ts +0 -11
- package/src/lib/components/OpenLayers/draw/mapDrawUtils.d.ts +0 -10
- package/src/lib/components/OpenLayers/draw/storyComponents/EditModeButton.d.ts +0 -7
- package/src/lib/components/OpenLayers/draw/storyComponents/FeatureLayers.d.ts +0 -8
- package/src/lib/components/OpenLayers/draw/storyComponents/GeoJSONTextField.d.ts +0 -11
- package/src/lib/components/OpenLayers/draw/storyComponents/IntersectionSelect.d.ts +0 -12
- package/src/lib/components/OpenLayers/draw/storyComponents/SelectField.d.ts +0 -9
- package/src/lib/components/OpenLayers/draw/storyComponents/StoryLayout.d.ts +0 -9
- package/src/lib/components/OpenLayers/draw/storyComponents/StoryLayoutGrid.d.ts +0 -4
- package/src/lib/components/OpenLayers/draw/storyComponents/ToolButton.d.ts +0 -9
- package/src/lib/components/OpenLayers/draw/storyComponents/geojsonExamples.d.ts +0 -12
- package/src/lib/components/OpenLayers/draw/storyComponents/index.d.ts +0 -8
- package/src/lib/components/OpenLayers/draw/storyComponents/storyUtils.d.ts +0 -48
- package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawTool.d.ts +0 -9
- package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolIntersection.d.ts +0 -9
- package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolMultipleDrawTools.d.ts +0 -12
- package/src/lib/components/OpenLayers/draw/types.d.ts +0 -42
- package/src/lib/components/OpenLayers/draw/useMapDrawTool.d.ts +0 -60
- package/src/lib/components/OpenLayers/draw/utils.d.ts +0 -69
- package/src/lib/components/OpenLayers/draw/utils.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/index.d.ts +0 -14
- package/src/lib/components/OpenLayers/layers/DefaultBaseLayers.d.ts +0 -9
- package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +0 -15
- package/src/lib/components/OpenLayers/layers/GeoTIFFLayer.d.ts +0 -11
- package/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.d.ts +0 -15
- package/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +0 -20
- package/src/lib/components/OpenLayers/layers/OpenLayersLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/TiledWMSLayer.d.ts +0 -10
- package/src/lib/components/OpenLayers/layers/TimeAwareEDRLocationLayer.d.ts +0 -14
- package/src/lib/components/OpenLayers/layers/TimeAwareEDRLocationLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/TimeAwareGeoTIFFLayer.d.ts +0 -15
- package/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.d.ts +0 -17
- package/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/TimeawareGeoTIFFLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.d.ts +0 -18
- package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/WMSLayer.d.ts +0 -10
- package/src/lib/components/OpenLayers/layers/WMTSLayer.d.ts +0 -10
- package/src/lib/components/OpenLayers/layers/XYZLayer.d.ts +0 -9
- package/src/lib/components/OpenLayers/layers/index.d.ts +0 -11
- package/src/lib/components/OpenLayers/layers/utils.d.ts +0 -2
- package/src/lib/components/OpenLayers/layers/utils.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +0 -10
- package/src/lib/components/OpenLayers/storyComponents/index.d.ts +0 -1
- package/src/lib/components/OpenLayers/styles/useIconStyle.d.ts +0 -25
- package/src/lib/components/OpenLayers/tools/ClickOnMapTool.d.ts +0 -9
- package/src/lib/components/OpenLayers/tools/index.d.ts +0 -1
- package/src/lib/components/OpenLayers/types/Timespan.d.ts +0 -11
- package/src/lib/components/OpenLayers/types/WorkerQueue.d.ts +0 -6
- package/src/lib/components/OpenLayers/useProjectionDropDown.d.ts +0 -17
- package/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.d.ts +0 -10
- package/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +0 -44
- package/src/lib/components/OpenLayers/utils/TimeawareImageSource.d.ts +0 -69
- package/src/lib/components/OpenLayers/utils/TimeawareImageSource.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/utils/WorkerQueue.d.ts +0 -14
- package/src/lib/components/OpenLayers/utils/constants.d.ts +0 -8
- package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.d.ts +0 -26
- package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/utils/projections.d.ts +0 -16
- package/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +0 -2
- package/src/lib/components/OpenLayers/utils/types.d.ts +0 -15
- package/src/lib/components/OpenLayers/utils/viewUtils.d.ts +0 -11
- package/src/lib/components/Providers/Providers.d.ts +0 -2
- package/src/lib/components/Providers/index.d.ts +0 -1
- package/src/lib/components/TanStackDemo/TanStackDemo.GetCapabilitiesLiveUpdate.stories.d.ts +0 -9
- package/src/lib/components/TanStackDemo/storyUtils.d.ts +0 -6
- package/src/lib/components/WMSViewerDemo/components/WMSDimTimeYearSelector.d.ts +0 -18
- package/src/lib/components/WMSViewerDemo/components/WMSLayerSelector.d.ts +0 -9
- package/src/lib/components/WMSViewerDemo/components/WMSStyleSelector.d.ts +0 -8
- package/src/lib/components/WMSViewerDemo/components/WMSTimeSlider.d.ts +0 -8
- package/src/lib/components/index.d.ts +0 -9
- package/src/lib/edr-layer-api/api.d.ts +0 -7
- package/src/lib/edr-layer-api/colormaps/colormaps.d.ts +0 -9
- package/src/lib/edr-layer-api/colormaps/edrOlLegendUtils.d.ts +0 -32
- package/src/lib/edr-layer-api/colormaps/edrOlLegendUtils.spec.d.ts +0 -1
- package/src/lib/edr-layer-api/colormaps/index.d.ts +0 -2
- package/src/lib/edr-layer-api/fakeApi.d.ts +0 -1
- package/src/lib/edr-layer-api/hooks.d.ts +0 -14
- package/src/lib/edr-layer-api/hooks.spec.d.ts +0 -1
- package/src/lib/edr-layer-api/index.d.ts +0 -4
- package/src/lib/edr-layer-api/utils/coverageCollectionToFeatureCollection.d.ts +0 -2
- package/src/lib/edr-layer-api/utils/coverageCollectionToFeatureCollection.spec.d.ts +0 -1
- package/src/lib/edr-layer-api/utils/useEDRWMLayer.d.ts +0 -11
- package/src/lib/edr-layer-api/utils/useEDRWMLayer.spec.d.ts +0 -1
- package/src/lib/geotiff-layer-api/api.d.ts +0 -43
- package/src/lib/geotiff-layer-api/fakeApi.d.ts +0 -1
- package/src/lib/geotiff-layer-api/hooks.d.ts +0 -5
- package/src/lib/geotiff-layer-api/index.d.ts +0 -2
- package/src/lib/geotiff-layer-api/utils/useGetStacGeoTIFFLayerInstance .d.ts +0 -11
- package/src/lib/hooks/index.d.ts +0 -4
- package/src/lib/hooks/useAnimationForLayer.d.ts +0 -9
- package/src/lib/hooks/useAnimationForLayer.spec.d.ts +0 -1
- package/src/lib/hooks/useHooksGetCapabilities.d.ts +0 -63
- package/src/lib/hooks/useHooksGetCapabilities.spec.d.ts +0 -1
- package/src/lib/hooks/useSetInterValWhenVisible.d.ts +0 -1
- package/src/lib/hooks/useViewFromLayer.d.ts +0 -7
- package/src/lib/hooks/useViewFromLayer.spec.d.ts +0 -1
- package/src/lib/index.d.ts +0 -8
- package/src/lib/layers/defaultLayers.d.ts +0 -15
- package/src/lib/layers/defaultStorybookSettings.d.ts +0 -9
- package/src/lib/layers/index.d.ts +0 -3
- package/src/lib/layers/profileLayers.d.ts +0 -19
- package/src/lib/layers/publicLayers.d.ts +0 -310
- package/src/lib/layers/publicServices.d.ts +0 -90
- package/src/lib/types/index.d.ts +0 -1
- package/src/lib/types/types.d.ts +0 -64
- package/src/lib/utils/i18n.d.ts +0 -8
- package/src/lib/utils/index.d.ts +0 -1
- package/src/lib/utils/utils.d.ts +0 -4
- package/src/lib/utils/utils.spec.d.ts +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
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 ClickOnMapToolExample: {
|
|
8
|
-
(): React.ReactNode;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 FeatureLayerMap: {
|
|
8
|
-
(): React.ReactNode;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 FeatureLayerOpacity: {
|
|
8
|
-
(): React.ReactNode;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 GetFeatureInfoExample: {
|
|
8
|
-
(): React.ReactNode;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 HoverFeatureLayerMap: {
|
|
8
|
-
(): React.ReactNode;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 PrefetchMap: {
|
|
8
|
-
(): React.ReactNode;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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 MapError: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 SetMapPin: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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,6 +0,0 @@
|
|
|
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 MapViewNoTimeDim: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 PassiveMap: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 RadarAnimation: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 MapViewRadar: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 ReferenceTimeModes: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 SetProjectionBBox: Story;
|
package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBoxLocalState.stories.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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 SetProjectionBBoxLocalState: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 HoldShiftToZoom: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 MapWithShowLayerInfoEnabled: Story;
|
|
@@ -1,17 +0,0 @@
|
|
|
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 interface MapDropDownItem {
|
|
7
|
-
name: string;
|
|
8
|
-
title: string;
|
|
9
|
-
}
|
|
10
|
-
export interface MapDropDownProps {
|
|
11
|
-
value: string;
|
|
12
|
-
change: (updatedValue: string) => void;
|
|
13
|
-
options: MapDropDownItem[];
|
|
14
|
-
top?: number;
|
|
15
|
-
left?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const MapViewTiledBaseLayers: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { OpenLayersMapView } from './component/OpenLayersMapView';
|
|
3
|
-
declare const meta: Meta<typeof OpenLayersMapView>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof OpenLayersMapView>;
|
|
6
|
-
export declare const MapViewVFX: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { View } from 'ol';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import 'ol/ol.css';
|
|
4
|
-
export interface OpenLayersMapViewProps {
|
|
5
|
-
view?: View;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
isFocused?: boolean;
|
|
8
|
-
isMouseWheelZoomEnabled?: boolean;
|
|
9
|
-
passiveMap?: boolean;
|
|
10
|
-
holdShiftToScroll?: boolean;
|
|
11
|
-
mapId?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const OpenLayersMapView: React.FC<OpenLayersMapViewProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TimeContextType } from '../types/Timespan';
|
|
2
|
-
export type ChangeRelevantTimestepsFn = (layerId: string, dimensionValues: string[]) => void;
|
|
3
|
-
export type ResetPrefetchFn = (layerId: string) => void;
|
|
4
|
-
export type TimestepPrefetchedFn = (layerId: string, dimensionValue: string) => void;
|
|
5
|
-
declare const TimeContext: import("react").Context<TimeContextType>;
|
|
6
|
-
export default TimeContext;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { MapLocation } from '../../../types/types';
|
|
2
|
-
export interface OpenLayersGetFeatureInfoProps {
|
|
3
|
-
displayMapPin?: boolean;
|
|
4
|
-
disableMapPin?: boolean;
|
|
5
|
-
mapPinLocation?: MapLocation;
|
|
6
|
-
selectLocation: (location: MapLocation) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const OpenLayersGetFeatureInfo: React.FC<OpenLayersGetFeatureInfoProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Feature } from 'ol';
|
|
2
|
-
import type { Geometry } from 'ol/geom';
|
|
3
|
-
import type { StyleLike } from 'ol/style/Style';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { DrawModeExitCallback, DrawModeValue } from './types';
|
|
6
|
-
export interface OpenLayersMapDrawProps {
|
|
7
|
-
geojson: GeoJSON.FeatureCollection;
|
|
8
|
-
drawMode?: DrawModeValue;
|
|
9
|
-
viewOnlyStyle: StyleLike;
|
|
10
|
-
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
11
|
-
isInEditMode: boolean;
|
|
12
|
-
selectedFeatureIndex: number;
|
|
13
|
-
updateGeojson?: (geoJson: GeoJSON.FeatureCollection, text: string) => void;
|
|
14
|
-
onViewOnlyFeatureClick?: (feature: Feature<Geometry>[]) => void;
|
|
15
|
-
onNoFeatureClick?: () => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Integrates with OpenLayers Draw and Modify (+Snap) interactions, to implement feature drawing
|
|
19
|
-
* and modification behaviour.
|
|
20
|
-
*
|
|
21
|
-
* There is a corner case where this fails: the user will only be able to edit the existing
|
|
22
|
-
* feature (not add) when there are 1) multiple features in the geojson, and 2) the
|
|
23
|
-
* selectedFeatureIndex points to a feature with of the same type as drawMode is going to draw. To
|
|
24
|
-
* fix this properly, it would be better that the surrounding code would add a placeholder feature
|
|
25
|
-
* in the geojson and then activate drawing at that feature index. This means the openlayers version
|
|
26
|
-
* works slightly differently from the WebMapJS version, but since the multi-feature edit feature
|
|
27
|
-
* is not really a requirement for any production workflows, this functionality was left as is.
|
|
28
|
-
*/
|
|
29
|
-
export declare const OpenLayersMapDraw: React.FC<OpenLayersMapDrawProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { useMapDrawTool } from '.';
|
|
3
|
-
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
-
export declare const OlMapDrawTool: Story;
|
|
7
|
-
export declare const OlMapDrawToolCustomShapes: Story;
|
|
8
|
-
export declare const OlMapDrawToolDrawMultipleShapes: Story;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_GEOJSON_STYLE_FILL_OPACITY = 0.1;
|
|
2
|
-
export declare const defaultGeoJSONStyleProperties: GeoJSON.GeoJsonProperties;
|
|
3
|
-
export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
4
|
-
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
5
|
-
export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
6
|
-
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
7
|
-
export declare const lineString: GeoJSON.Feature<GeoJSON.LineString>;
|
|
8
|
-
export declare const lineStringCollection: GeoJSON.FeatureCollection;
|
|
9
|
-
export interface GeoFeatureStyle {
|
|
10
|
-
stroke?: string;
|
|
11
|
-
fill?: string;
|
|
12
|
-
'stroke-width'?: number;
|
|
13
|
-
'stroke-opacity'?: number;
|
|
14
|
-
'fill-opacity'?: number;
|
|
15
|
-
}
|
|
16
|
-
export interface Coordinate {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './OpenLayersMapDraw';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export { useMapDrawTool, defaultPoint, defaultDelete, defaultPolygon, defaultBox, defaultLocation, defaultIntersectionStyleProperties, defaultSmoothLine, defaultCircle, defaultFreehandLine, defaultLineString, defaultOval, defaultSquare, defaultRotatableBox, getIcon, currentlySupportedDrawModes, defaultModes, } from './useMapDrawTool';
|
|
4
|
-
export type { MapDrawToolOptions } from './useMapDrawTool';
|
|
5
|
-
export * from './utils';
|
|
6
|
-
export * from './storyExamplesMapDrawTool';
|
|
7
|
-
export * from './storyExamplesMapDrawToolIntersection';
|
|
8
|
-
export * from './storyExamplesMapDrawToolMultipleDrawTools';
|
|
9
|
-
export * from './geojsonShapes';
|
|
10
|
-
export * from './mapDrawUtils';
|
|
11
|
-
export * from './storyComponents';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Position } from 'geojson';
|
|
2
|
-
import type { InterfaceProjection, Converter } from 'proj4';
|
|
3
|
-
import proj4 from 'proj4';
|
|
4
|
-
export type ProjectorCache = Record<string, InterfaceProjection | Converter>;
|
|
5
|
-
export declare const projectorCache: ProjectorCache;
|
|
6
|
-
export declare const getProj4: (projection: string | proj4.InterfaceProjection) => InterfaceProjection;
|
|
7
|
-
export declare const NEW_LINESTRING_CREATED = "new point in LineString created";
|
|
8
|
-
export declare const NEW_FEATURE_CREATED = "new feature created";
|
|
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,8 +0,0 @@
|
|
|
1
|
-
interface FeatureLayersProps {
|
|
2
|
-
geojson: GeoJSON.FeatureCollection;
|
|
3
|
-
onChangeLayerIndex: (newIndex: number, feature: GeoJSON.Feature) => void;
|
|
4
|
-
activeFeatureLayerIndex: number;
|
|
5
|
-
getToolIcon: (selectionType: string) => React.ReactElement;
|
|
6
|
-
}
|
|
7
|
-
declare const FeatureLayers: React.FC<FeatureLayersProps>;
|
|
8
|
-
export default FeatureLayers;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
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';
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
ROTATABLEBOX = "ROTATABLEBOX"
|
|
15
|
-
}
|
|
16
|
-
export interface FeatureEvent {
|
|
17
|
-
coordinateIndexInFeature: number;
|
|
18
|
-
featureIndex: number;
|
|
19
|
-
screenCoords: {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
};
|
|
23
|
-
mouseX: number;
|
|
24
|
-
mouseY: number;
|
|
25
|
-
isInEditMode: boolean;
|
|
26
|
-
feature: GeoJSON.Feature;
|
|
27
|
-
}
|
|
28
|
-
export type DrawModeExitCallback = 'escaped' | 'doubleClicked' | 'clickedNearStartingPoint';
|
|
29
|
-
export type DrawModeValue = DRAWMODE | 'DELETE' | '';
|
|
30
|
-
type DefaultSelectionTypes = 'poly' | 'point' | 'box' | 'linestring';
|
|
31
|
-
export type SelectionType = DefaultSelectionTypes | string;
|
|
32
|
-
export interface DrawMode {
|
|
33
|
-
drawModeId: string;
|
|
34
|
-
value: DrawModeValue;
|
|
35
|
-
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
36
|
-
title: string;
|
|
37
|
-
isSelectable: boolean;
|
|
38
|
-
selectionType: SelectionType;
|
|
39
|
-
}
|
|
40
|
-
export type ProjectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
41
|
-
export type UnprojectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
42
|
-
export {};
|