@opengeoweb/webmap-react 14.4.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.
Files changed (109) hide show
  1. package/index.esm.js +7074 -6072
  2. package/package.json +4 -4
  3. package/src/index.d.ts +2 -2
  4. package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +1 -2
  5. package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +2 -3
  6. package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +1 -2
  7. package/src/lib/components/LayerInfo/LayerInfoList.d.ts +0 -1
  8. package/src/lib/components/LayerInfo/LayerInfoText.d.ts +0 -1
  9. package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +3 -4
  10. package/src/lib/components/Legend/Legend.d.ts +1 -1
  11. package/src/lib/components/Legend/LegendButton.d.ts +1 -1
  12. package/src/lib/components/Legend/LegendDialog.d.ts +3 -3
  13. package/src/lib/components/Legend/LegendLayout.d.ts +1 -2
  14. package/src/lib/components/MapControls/MapControlButton.d.ts +3 -3
  15. package/src/lib/components/MapControls/MapControls.d.ts +1 -1
  16. package/src/lib/components/MapControls/ZoomControls.d.ts +1 -1
  17. package/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +1 -1
  18. package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +2 -2
  19. package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +2 -2
  20. package/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +2 -2
  21. package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +1 -1
  22. package/src/lib/components/MapDimensionSelect/utils.d.ts +4 -4
  23. package/src/lib/components/MapMeasure/MapMeasure.d.ts +1 -0
  24. package/src/lib/components/MapMousePosition/MapMousePosition.d.ts +1 -1
  25. package/src/lib/components/MapTime/MapTime.d.ts +2 -2
  26. package/src/lib/components/MapWarning/MapWarningProperties.d.ts +0 -1
  27. package/src/lib/components/OpenLayers/OlStyles.d.ts +19 -6
  28. package/src/lib/components/OpenLayers/OpenLayers.ClickFeatureLayer.stories.d.ts +1 -1
  29. package/src/lib/components/OpenLayers/OpenLayers.ClickOnMapTool.stories.d.ts +1 -1
  30. package/src/lib/components/OpenLayers/OpenLayers.FeatureLayer.stories.d.ts +1 -1
  31. package/src/lib/components/OpenLayers/OpenLayers.FeatureLayerOpacity.stories.d.ts +1 -1
  32. package/src/lib/components/OpenLayers/OpenLayers.GeoTIFFLayer.stories.d.ts +17 -0
  33. package/src/lib/components/OpenLayers/OpenLayers.GetFeatureInfo.stories.d.ts +1 -1
  34. package/src/lib/components/OpenLayers/OpenLayers.HoverFeatureLayer.stories.d.ts +1 -1
  35. package/src/lib/components/OpenLayers/OpenLayers.Prefetch.stories.d.ts +1 -1
  36. package/src/lib/components/OpenLayers/OpenLayers.TimeAwareWMTSLayer.stories.d.ts +10 -0
  37. package/src/lib/components/OpenLayers/component/OpenLayersMapView.d.ts +1 -1
  38. package/src/lib/components/OpenLayers/context/MapContext.d.ts +1 -1
  39. package/src/lib/components/OpenLayers/context/TimeContext.d.ts +1 -1
  40. package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +1 -1
  41. package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.d.ts +1 -1
  42. package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +3 -3
  43. package/src/lib/components/OpenLayers/draw/geojsonShapes.d.ts +1 -0
  44. package/src/lib/components/OpenLayers/draw/mapDrawUtils.d.ts +4 -1
  45. package/src/lib/components/OpenLayers/draw/storyComponents/EditModeButton.d.ts +0 -1
  46. package/src/lib/components/OpenLayers/draw/storyComponents/FeatureLayers.d.ts +0 -1
  47. package/src/lib/components/OpenLayers/draw/storyComponents/GeoJSONTextField.d.ts +1 -1
  48. package/src/lib/components/OpenLayers/draw/storyComponents/SelectField.d.ts +0 -1
  49. package/src/lib/components/OpenLayers/draw/storyComponents/StoryLayout.d.ts +2 -3
  50. package/src/lib/components/OpenLayers/draw/storyComponents/StoryLayoutGrid.d.ts +0 -1
  51. package/src/lib/components/OpenLayers/draw/storyComponents/ToolButton.d.ts +1 -2
  52. package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawTool.d.ts +2 -3
  53. package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolIntersection.d.ts +2 -3
  54. package/src/lib/components/OpenLayers/draw/storyExamplesMapDrawToolMultipleDrawTools.d.ts +2 -3
  55. package/src/lib/components/OpenLayers/draw/types.d.ts +1 -1
  56. package/src/lib/components/OpenLayers/draw/useMapDrawTool.d.ts +2 -2
  57. package/src/lib/components/OpenLayers/index.d.ts +1 -1
  58. package/src/lib/components/OpenLayers/layers/DefaultBaseLayers.d.ts +0 -1
  59. package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +3 -3
  60. package/src/lib/components/OpenLayers/layers/GeoTIFFLayer.d.ts +11 -0
  61. package/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.d.ts +3 -3
  62. package/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +2 -2
  63. package/src/lib/components/OpenLayers/layers/TiledWMSLayer.d.ts +2 -2
  64. package/src/lib/components/OpenLayers/layers/TimeAwareEDRLocationLayer.d.ts +0 -1
  65. package/src/lib/components/OpenLayers/layers/TimeAwareGeoTIFFLayer.d.ts +15 -0
  66. package/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.d.ts +17 -0
  67. package/src/lib/components/OpenLayers/layers/TimeAwareWMTSLayer.spec.d.ts +1 -0
  68. package/src/lib/components/OpenLayers/layers/TimeawareGeoTIFFLayer.spec.d.ts +1 -0
  69. package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.d.ts +1 -1
  70. package/src/lib/components/OpenLayers/layers/WMSLayer.d.ts +1 -1
  71. package/src/lib/components/OpenLayers/layers/WMTSLayer.d.ts +1 -1
  72. package/src/lib/components/OpenLayers/layers/XYZLayer.d.ts +1 -1
  73. package/src/lib/components/OpenLayers/layers/index.d.ts +2 -0
  74. package/src/lib/components/OpenLayers/layers/utils.d.ts +2 -0
  75. package/src/lib/components/OpenLayers/layers/utils.spec.d.ts +1 -0
  76. package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +2 -2
  77. package/src/lib/components/OpenLayers/styles/useIconStyle.d.ts +1 -1
  78. package/src/lib/components/OpenLayers/tools/ClickOnMapTool.d.ts +1 -1
  79. package/src/lib/components/OpenLayers/useProjectionDropDown.d.ts +2 -2
  80. package/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.d.ts +3 -3
  81. package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +4 -3
  82. package/src/lib/components/OpenLayers/utils/TimeawareImageSource.d.ts +3 -3
  83. package/src/lib/components/OpenLayers/utils/WorkerQueue.d.ts +1 -1
  84. package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.d.ts +2 -2
  85. package/src/lib/components/OpenLayers/utils/projections.d.ts +1 -1
  86. package/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +1 -1
  87. package/src/lib/components/OpenLayers/utils/types.d.ts +2 -2
  88. package/src/lib/components/OpenLayers/utils/viewUtils.d.ts +2 -2
  89. package/src/lib/components/Providers/Providers.d.ts +1 -2
  90. package/src/lib/components/TanStackDemo/TanStackDemo.GetCapabilitiesLiveUpdate.stories.d.ts +1 -1
  91. package/src/lib/components/TanStackDemo/storyUtils.d.ts +1 -1
  92. package/src/lib/components/WMSViewerDemo/components/WMSDimTimeYearSelector.d.ts +1 -1
  93. package/src/lib/components/WMSViewerDemo/components/WMSLayerSelector.d.ts +2 -2
  94. package/src/lib/components/WMSViewerDemo/components/WMSStyleSelector.d.ts +2 -2
  95. package/src/lib/components/WMSViewerDemo/components/WMSTimeSlider.d.ts +1 -1
  96. package/src/lib/edr-layer-api/api.d.ts +2 -2
  97. package/src/lib/edr-layer-api/colormaps/edrOlLegendUtils.d.ts +2 -2
  98. package/src/lib/edr-layer-api/hooks.d.ts +2 -2
  99. package/src/lib/geotiff-layer-api/api.d.ts +43 -0
  100. package/src/lib/geotiff-layer-api/fakeApi.d.ts +1 -0
  101. package/src/lib/geotiff-layer-api/hooks.d.ts +5 -0
  102. package/src/lib/geotiff-layer-api/utils/useGetStacGeoTIFFLayerInstance .d.ts +11 -0
  103. package/src/lib/hooks/useAnimationForLayer.d.ts +2 -2
  104. package/src/lib/hooks/useHooksGetCapabilities.d.ts +12 -9
  105. package/src/lib/index.d.ts +1 -1
  106. package/src/lib/types/index.d.ts +1 -1
  107. package/src/lib/types/types.d.ts +1 -1
  108. package/src/lib/utils/i18n.d.ts +3 -2
  109. 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.4.0",
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.4.0",
12
- "@opengeoweb/theme": "14.4.0",
13
- "@opengeoweb/shared": "14.4.0",
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,5 +1,4 @@
1
- import React from 'react';
2
- import { CustomIconProps } from '@opengeoweb/shared';
1
+ import type { CustomIconProps } from '@opengeoweb/shared';
3
2
  interface LayerInfoButtonProps extends CustomIconProps {
4
3
  disabled?: boolean;
5
4
  isActive?: boolean;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import { Position, Source } from '@opengeoweb/shared';
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,5 +1,4 @@
1
- import React from 'react';
2
- import { Dimension } from '@opengeoweb/webmap';
1
+ import type { Dimension } from '@opengeoweb/webmap';
3
2
  export interface LayerInfoLegendProps {
4
3
  title: string;
5
4
  name: string;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export interface ListItem {
3
2
  label: string;
4
3
  value: string;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export interface LayerInfoTextProps {
3
2
  label: string;
4
3
  value: string;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
- import { Dimension, LayerProps } from '@opengeoweb/webmap';
3
- import { TFunction } from 'i18next';
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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { LayerFoundation } from '@opengeoweb/webmap';
2
+ import type { LayerFoundation } from '@opengeoweb/webmap';
3
3
  interface LegendProps {
4
4
  layer: LayerFoundation;
5
5
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const LegendButton: React.FC<{
3
3
  openLegendDialog: () => void;
4
4
  isOpen: boolean;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
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,5 +1,4 @@
1
- import React from 'react';
2
- import { Dimension } from '@opengeoweb/webmap';
1
+ import type { Dimension } from '@opengeoweb/webmap';
3
2
  interface LegendLayoutProps {
4
3
  title: string;
5
4
  name: string;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- import { TooltipProps } from '@mui/material';
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,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  interface MapControlsProps {
3
3
  children: React.ReactNode;
4
4
  style?: React.CSSProperties;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  interface ZoomControlsProps {
3
3
  onZoomIn: () => void;
4
4
  onZoomOut: () => void;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  interface DimensionSelectButtonProps {
3
3
  dimension: string;
4
4
  onClickDimensionButton: () => void;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { Source } from '@opengeoweb/shared';
1
+ import React from 'react';
2
+ import type { Source } from '@opengeoweb/shared';
3
3
  export interface DimensionSelectProps {
4
4
  isOpen: boolean;
5
5
  order?: number;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { Mark } from './utils';
1
+ import React from 'react';
2
+ import type { Mark } from './utils';
3
3
  interface DimensionSelectSliderProps {
4
4
  marks: Mark[];
5
5
  layerTitle: string;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { Dimension } from '@opengeoweb/webmap';
1
+ import React from 'react';
2
+ import type { Dimension } from '@opengeoweb/webmap';
3
3
  export interface MapDimensionSelectProps {
4
4
  layerId: string;
5
5
  dimensionName: string;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
+ import React from 'react';
3
3
  import MapDimensionSelect from './MapDimensionSelect';
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { SvgIconProps } from '@mui/material';
3
- import { WMJSDimension } from '@opengeoweb/webmap';
4
- import { TFunction } from 'i18next';
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;
@@ -1,3 +1,4 @@
1
+ export declare const CLASSNAME_MAP_MEASURE_TOOLTIP = "text-tooltip-map-measure";
1
2
  export interface MapMeasureInterface {
2
3
  lineColor?: string;
3
4
  }
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const MapMousePosition: React.FC;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
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,4 +1,3 @@
1
- import React from 'react';
2
1
  interface WarningListProps {
3
2
  selectedFeatureProperties: {
4
3
  identifier?: string;
@@ -1,11 +1,12 @@
1
- import { ColorLike } from 'ol/colorlike';
2
- import { FeatureLike } from 'ol/Feature';
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 Style, { StyleFunction, StyleLike } from 'ol/style/Style';
6
- import { Coordinate } from 'ol/coordinate';
7
- import { LineCoordType, GeometryFunction } from 'ol/interaction/Draw';
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;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -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
+ };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: React.FC<import("./component/OpenLayersMapView").OpenLayersMapViewProps>;
@@ -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
+ };
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { View } from 'ol';
2
+ import React from 'react';
3
3
  import 'ol/ol.css';
4
4
  export interface OpenLayersMapViewProps {
5
5
  view?: View;
@@ -1,4 +1,4 @@
1
- import { Map } from 'ol';
1
+ import type { Map } from 'ol';
2
2
  export interface MapContextType {
3
3
  map: Map | null;
4
4
  }
@@ -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,4 +1,4 @@
1
- import { MapLocation } from '../../../types/types';
1
+ import type { MapLocation } from '../../../types/types';
2
2
  export interface OpenLayersGetFeatureInfoProps {
3
3
  displayMapPin?: boolean;
4
4
  disableMapPin?: boolean;
@@ -1,4 +1,4 @@
1
- import { Extent } from 'ol/extent';
1
+ import type { Extent } from 'ol/extent';
2
2
  interface OpenLayersZoomControlProps {
3
3
  homeExtent?: Extent;
4
4
  }
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- import { StyleLike } from 'ol/style/Style';
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 proj4, { InterfaceProjection, Converter } from 'proj4';
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,4 +1,3 @@
1
- import React from 'react';
2
1
  interface EditModeButtonProps {
3
2
  isInEditMode: boolean;
4
3
  onToggleEditMode: (isEditMode: boolean) => void;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface FeatureLayersProps {
3
2
  geojson: GeoJSON.FeatureCollection;
4
3
  onChangeLayerIndex: (newIndex: number, feature: GeoJSON.Feature) => void;
@@ -1,5 +1,5 @@
1
+ import type { SxProps } from '@mui/material';
1
2
  import React from 'react';
2
- import { SxProps } from '@mui/material';
3
3
  interface GeoJSONTextFieldProps {
4
4
  geoJSON: GeoJSON.FeatureCollection;
5
5
  onChangeGeoJSON?: (geoJSON: GeoJSON.FeatureCollection) => void;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const SelectField: React.FC<{
3
2
  label: string;
4
3
  value: string;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import { DrawModeExitCallback } from '../..';
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,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const StoryLayoutGrid: React.FC<{
3
2
  children: React.ReactNode;
4
3
  mapComponent: React.ReactNode;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { DrawMode } from '..';
1
+ import type { DrawMode } from '..';
3
2
  interface ToolButtonProps {
4
3
  mode: DrawMode;
5
4
  isSelected: boolean;
@@ -1,6 +1,5 @@
1
- import React from 'react';
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 React from 'react';
2
- import { SelectionType } from './types';
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 React from 'react';
2
- import { DrawMode } from './types';
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,4 +1,4 @@
1
- import { Feature, Polygon, MultiPolygon } from 'geojson';
1
+ import type { Feature, Polygon, MultiPolygon } from 'geojson';
2
2
  export declare enum DRAWMODE {
3
3
  POLYGON = "POLYGON",
4
4
  BOX = "BOX",
@@ -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,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare enum BaseLayerType {
3
2
  LIGHT_GREY_CANVAS = 0,
4
3
  WORLD_TOPO = 1
@@ -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 { StyleLike } from 'ol/style/Style';
2
- import { FeatureCollection } from 'geojson';
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;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { Dimension } from '@opengeoweb/webmap';
3
2
  import type { OpenLayersFeatureLayerProps } from './OpenLayersFeatureLayer';
4
3
  import type { OnInitializeLayerProps } from '../utils/types';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { Dimension } from '@opengeoweb/webmap';
3
+ import type { OpenLayersFeatureLayerProps } from './OpenLayersFeatureLayer';
4
+ import type { OnInitializeLayerProps } from '../utils/types';
5
+ interface TimeAwareGeoTIFFLayerProps extends OpenLayersFeatureLayerProps {
6
+ layerId?: string;
7
+ stacCollectionUrl: string;
8
+ layerName: string;
9
+ dimensions?: Dimension[];
10
+ onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
11
+ opacity?: number;
12
+ visible?: boolean;
13
+ }
14
+ export declare const TimeAwareGeoTIFFLayer: React.FC<TimeAwareGeoTIFFLayerProps>;
15
+ export {};