@opengeoweb/webmap-react 10.2.1-spike-ol.3 → 11.1.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 (100) hide show
  1. package/index.esm.js +2843 -5382
  2. package/package.json +15 -26
  3. package/src/index.d.ts +0 -10
  4. package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +3 -3
  5. package/src/lib/components/MapDrawTool/utils.d.ts +0 -9
  6. package/src/lib/components/{WebMapMapView/WebMapMapView.Error.stories.d.ts → MapView/MapView.Error.stories.d.ts} +3 -3
  7. package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +6 -0
  8. package/src/lib/components/MapView/MapView.Passive.stories.d.ts +6 -0
  9. package/src/lib/components/MapView/MapView.ProfileSounding.stories.d.ts +6 -0
  10. package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +6 -0
  11. package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +6 -0
  12. package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +6 -0
  13. package/src/lib/components/{WebMapMapView/WebMapMapView.SetProjectionBBoxLocalState.stories.d.ts → MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts} +3 -3
  14. package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +6 -0
  15. package/src/lib/components/{WebMapMapView/WebMapMapView.ShowLayerInfo.stories.d.ts → MapView/MapView.ShowLayerInfo.stories.d.ts} +3 -3
  16. package/src/lib/components/{OpenLayers/OpenLayersMapView.TiledBaseLayers.stories.d.ts → MapView/MapView.TiledBaseLayers.stories.d.ts} +3 -3
  17. package/src/lib/components/MapView/MapView.VFXData.stories.d.ts +6 -0
  18. package/src/lib/components/ReactMapView/types.d.ts +0 -1
  19. package/src/lib/components/index.d.ts +0 -1
  20. package/src/lib/hooks/useHooksGetCapabilities.d.ts +1 -1
  21. package/src/lib/index.d.ts +1 -1
  22. package/src/lib/layers/publicLayers.d.ts +0 -1
  23. package/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.d.ts +0 -2
  24. package/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.spec.d.ts +0 -1
  25. package/src/lib/components/MapMousePosition/MapMousePosition.d.ts +0 -2
  26. package/src/lib/components/MapMousePosition/MapMousePosition.spec.d.ts +0 -1
  27. package/src/lib/components/MapMousePosition/index.d.ts +0 -1
  28. package/src/lib/components/OpenLayers/OlStyles.d.ts +0 -24
  29. package/src/lib/components/OpenLayers/OlStyles.spec.d.ts +0 -1
  30. package/src/lib/components/OpenLayers/OpenLayers.BaseLayer.stories.d.ts +0 -6
  31. package/src/lib/components/OpenLayers/OpenLayers.ClickOnMapTool.stories.d.ts +0 -10
  32. package/src/lib/components/OpenLayers/OpenLayers.FeatureLayer.stories.d.ts +0 -10
  33. package/src/lib/components/OpenLayers/OpenLayers.GetFeatureInfo.stories.d.ts +0 -10
  34. package/src/lib/components/OpenLayers/OpenLayers.HoverFeatureLayer.stories.d.ts +0 -10
  35. package/src/lib/components/OpenLayers/OpenLayers.Prefetch.stories.d.ts +0 -10
  36. package/src/lib/components/OpenLayers/OpenLayersConstants.d.ts +0 -2
  37. package/src/lib/components/OpenLayers/OpenLayersMapView.Error.stories.d.ts +0 -6
  38. package/src/lib/components/OpenLayers/OpenLayersMapView.MapPin.stories.d.ts +0 -6
  39. package/src/lib/components/OpenLayers/OpenLayersMapView.Passive.stories.d.ts +0 -6
  40. package/src/lib/components/OpenLayers/OpenLayersMapView.RadarAnimation.stories.d.ts +0 -6
  41. package/src/lib/components/OpenLayers/OpenLayersMapView.RadarData.stories.d.ts +0 -6
  42. package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBox.stories.d.ts +0 -6
  43. package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBoxLocalState.stories.d.ts +0 -6
  44. package/src/lib/components/OpenLayers/OpenLayersMapView.ShiftToZoom.stories.d.ts +0 -6
  45. package/src/lib/components/OpenLayers/OpenLayersMapView.ShowLayerInfo.stories.d.ts +0 -6
  46. package/src/lib/components/OpenLayers/component/OpenLayersMapView.d.ts +0 -12
  47. package/src/lib/components/OpenLayers/component/OpenLayersMapView.spec.d.ts +0 -1
  48. package/src/lib/components/OpenLayers/context/MapContext.d.ts +0 -7
  49. package/src/lib/components/OpenLayers/context/TimeContext.d.ts +0 -7
  50. package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +0 -8
  51. package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.d.ts +0 -7
  52. package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.spec.d.ts +0 -1
  53. package/src/lib/components/OpenLayers/controls/index.d.ts +0 -2
  54. package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +0 -26
  55. package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.stories.d.ts +0 -9
  56. package/src/lib/components/OpenLayers/draw/index.d.ts +0 -1
  57. package/src/lib/components/OpenLayers/index.d.ts +0 -9
  58. package/src/lib/components/OpenLayers/layers/DefaultBaseLayers.d.ts +0 -10
  59. package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +0 -11
  60. package/src/lib/components/OpenLayers/layers/GeoJSONLayer.d.ts +0 -11
  61. package/src/lib/components/OpenLayers/layers/MapViewLayerToOpenLayer.d.ts +0 -22
  62. package/src/lib/components/OpenLayers/layers/TiledWMSLayer.d.ts +0 -12
  63. package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.d.ts +0 -19
  64. package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.spec.d.ts +0 -1
  65. package/src/lib/components/OpenLayers/layers/WMSLayer.d.ts +0 -11
  66. package/src/lib/components/OpenLayers/layers/WMTSLayer.d.ts +0 -11
  67. package/src/lib/components/OpenLayers/layers/XYZLayer.d.ts +0 -9
  68. package/src/lib/components/OpenLayers/layers/index.d.ts +0 -8
  69. package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +0 -10
  70. package/src/lib/components/OpenLayers/storyComponents/index.d.ts +0 -1
  71. package/src/lib/components/OpenLayers/styles/useIconStyle.d.ts +0 -21
  72. package/src/lib/components/OpenLayers/tools/ClickOnMapTool.d.ts +0 -10
  73. package/src/lib/components/OpenLayers/types/Timespan.d.ts +0 -9
  74. package/src/lib/components/OpenLayers/types/WorkerQueue.d.ts +0 -6
  75. package/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.d.ts +0 -12
  76. package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +0 -42
  77. package/src/lib/components/OpenLayers/utils/TimeawareImageSource.d.ts +0 -50
  78. package/src/lib/components/OpenLayers/utils/WorkerQueue.d.ts +0 -14
  79. package/src/lib/components/OpenLayers/utils/constants.d.ts +0 -6
  80. package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.d.ts +0 -16
  81. package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.spec.d.ts +0 -1
  82. package/src/lib/components/OpenLayers/utils/projections.d.ts +0 -1
  83. package/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +0 -2
  84. package/src/lib/components/OpenLayers/utils/types.d.ts +0 -11
  85. package/src/lib/components/WebMapMapView/WebMapMapView.MapPin.stories.d.ts +0 -6
  86. package/src/lib/components/WebMapMapView/WebMapMapView.Passive.stories.d.ts +0 -6
  87. package/src/lib/components/WebMapMapView/WebMapMapView.ProfileSounding.stories.d.ts +0 -6
  88. package/src/lib/components/WebMapMapView/WebMapMapView.RadarAnimation.stories.d.ts +0 -6
  89. package/src/lib/components/WebMapMapView/WebMapMapView.RadarData.stories.d.ts +0 -6
  90. package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBox.stories.d.ts +0 -6
  91. package/src/lib/components/WebMapMapView/WebMapMapView.ShiftToZoom.stories.d.ts +0 -6
  92. package/src/lib/components/WebMapMapView/WebMapMapView.TiledBaseLayers.stories.d.ts +0 -17
  93. package/src/lib/components/WebMapMapView/WebMapMapView.d.ts +0 -9
  94. package/src/lib/components/WebMapMapView/WebMapMapView.spec.d.ts +0 -1
  95. package/src/lib/components/WebMapMapView/WebMapMapViewLayer.d.ts +0 -16
  96. package/src/lib/components/WebMapMapView/index.d.ts +0 -2
  97. package/src/lib/hooks/index.d.ts +0 -2
  98. package/src/lib/hooks/useAnimationForLayer.d.ts +0 -3
  99. package/src/lib/hooks/useSetInterValWhenVisible.d.ts +0 -1
  100. package/src/lib/hooks/useViewFromLayerById.d.ts +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap-react",
3
- "version": "10.2.1-spike-ol.3",
3
+ "version": "11.1.0",
4
4
  "description": "GeoWeb react wrapper for webmap",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,35 +8,24 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@emotion/react": "11.14.0",
12
- "@emotion/styled": "11.14.0",
13
- "@mui/material": "^6.1.1",
14
- "@mui/system": "6.4.3",
15
- "@mui/x-date-pickers": "7.26.0",
16
- "@reduxjs/toolkit": "1.9.7",
17
- "@sentry/react": "8.54.0",
18
- "@storybook/react": "8.4.2",
19
- "@tanstack/query-core": "5.62.7",
20
- "@tanstack/react-query": "^5.62.7",
21
- "@testing-library/react": "16.0.1",
22
- "@testing-library/user-event": "14.5.2",
23
- "@turf/turf": "^7.1.0",
11
+ "@opengeoweb/webmap": "*",
24
12
  "axios": "^1.7.7",
25
- "date-fns": "4.1.0",
26
- "dompurify": "3.2.4",
27
- "i18next": "^23.11.5",
28
- "immer": "^10.0.3",
29
- "jest-canvas-mock": "2.5.2",
30
- "jest-date-mock": "1.0.10",
13
+ "@opengeoweb/theme": "*",
14
+ "@opengeoweb/shared": "*",
31
15
  "lodash": "^4.17.21",
32
- "msw": "1.3.3",
33
- "ol": "^10.4.0",
34
16
  "proj4": "^2.9.2",
35
- "re-resizable": "6.10.3",
36
- "react": "18.3.1",
37
- "react-draggable": "4.4.6",
17
+ "@turf/turf": "^7.1.0",
18
+ "immer": "^10.0.3",
19
+ "react-resize-detector": "^9.1.0",
20
+ "i18next": "^23.11.5",
21
+ "@mui/material": "^6.1.1",
38
22
  "react-i18next": "^15.1.1",
39
- "react-resize-detector": "^9.1.0"
23
+ "@tanstack/react-query": "^5.61.5"
24
+ },
25
+ "peerDependencies": {
26
+ "react": "18",
27
+ "@emotion/react": "*",
28
+ "@emotion/styled": "*"
40
29
  },
41
30
  "module": "./index.esm.js",
42
31
  "type": "module",
package/src/index.d.ts CHANGED
@@ -1,15 +1,5 @@
1
1
  import { WEBMAP_NAMESPACE, webmapTranslations } from '@opengeoweb/webmap';
2
2
  import webmapReactTranslations from '../locales/webmap-react.json';
3
- import { MapViewLayerToOpenLayer, MapViewLayerToOpenLayerProps, OpenLayersLayer } from './lib/components/OpenLayers/layers/MapViewLayerToOpenLayer';
4
- import { DefaultBaseLayers } from './lib/components/OpenLayers/layers/DefaultBaseLayers';
5
- import { GeoJSONLayer, WMSLayer } from './lib/components/OpenLayers/layers';
6
- import TimeContext from './lib/components/OpenLayers/context/TimeContext';
7
- import { TimeContextType } from './lib/components/OpenLayers/types/Timespan';
8
- import { TimeawareImageSource } from './lib/components/OpenLayers/utils/TimeawareImageSource';
9
3
  export * from './lib';
10
4
  export { webmapReactTranslations };
11
5
  export { WEBMAP_NAMESPACE, webmapTranslations };
12
- export { TimeContext, MapViewLayerToOpenLayer, TimeawareImageSource, GeoJSONLayer, WMSLayer, DefaultBaseLayers, OpenLayersLayer, };
13
- export type { TimeContextType, MapViewLayerToOpenLayerProps };
14
- export declare const setOpenLayersEnabled: (openLayersOnOrOff: boolean) => void;
15
- export declare const isOpenLayersEnabled: () => boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { DrawMode, DrawModeValue, SelectionType } from './types';
3
- import { MapViewLayerToOpenLayerProps } from '../OpenLayers/layers';
3
+ import { MapViewLayerProps } from '../MapView';
4
4
  export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
5
5
  export declare const emptyLineString: GeoJSON.Feature;
6
6
  export declare const emptyPoint: GeoJSON.Feature;
@@ -24,8 +24,8 @@ export interface MapDrawToolProps {
24
24
  activeTool: string;
25
25
  changeActiveTool: (newMode: DrawMode) => void;
26
26
  setActiveTool: (newToolId: string) => void;
27
- layers: MapViewLayerToOpenLayerProps[];
28
- getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerToOpenLayerProps;
27
+ layers: MapViewLayerProps[];
28
+ getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerProps;
29
29
  deactivateTool: () => void;
30
30
  changeProperties: (geoJSONProperties: GeoJSON.GeoJsonProperties) => void;
31
31
  getProperties: () => GeoJSON.GeoJsonProperties;
@@ -9,15 +9,6 @@ import { DrawMode, SelectionType } from './types';
9
9
  * @param featureProperties
10
10
  */
11
11
  export declare const addFeatureProperties: (geojson: GeoJSON.FeatureCollection | undefined, featureProperties: GeoJSON.GeoJsonProperties, featureIndex?: number) => GeoJSON.FeatureCollection;
12
- /**
13
- * Checks if the geometry of the feature is empty as defined per GeoJSON spec.
14
- * According to the specification, an empty geometry is type 'Polygon' and coordinates
15
- * equal [[]].
16
- *
17
- * @param feature Feature to test
18
- * @returns Whether `feature` is empty or not
19
- */
20
- export declare const isGeoJSONGeometryEmpty: (feature: GeoJSON.Feature) => boolean;
21
12
  export declare const getGeoJSONPropertyValue: (property: string, properties: GeoJSON.GeoJsonProperties, polygonDrawMode: DrawMode | undefined, defaultProperties?: GeoJSON.GeoJsonProperties) => number | string;
22
13
  /**
23
14
  * moves geoJSON feature as new feature. Mutates newGeoJSON
@@ -1,8 +1,8 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { WebMapMapView } from '.';
3
- declare const meta: Meta<typeof WebMapMapView>;
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
5
+ type Story = StoryObj<typeof MapView>;
6
6
  export declare const Component: Story;
7
7
  export declare const MapError: Story;
8
8
  export declare const MapWithDuplicateLayerIdsError: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const SetMapPin: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const PassiveMap: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from './MapView';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const MapViewProfile: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const RadarAnimation: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from './MapView';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const MapViewRadar: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const SetProjectionBBox: Story;
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { WebMapMapView } from '.';
3
- declare const meta: Meta<typeof WebMapMapView>;
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
5
+ type Story = StoryObj<typeof MapView>;
6
6
  export declare const SetProjectionBBoxLocalState: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const HoldShiftToZoom: Story;
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { WebMapMapView } from '.';
3
- declare const meta: Meta<typeof WebMapMapView>;
2
+ import { MapView } from '.';
3
+ declare const meta: Meta<typeof MapView>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
5
+ type Story = StoryObj<typeof MapView>;
6
6
  export declare const MapWithShowLayerInfoEnabled: Story;
@@ -1,8 +1,8 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { OpenLayersMapView } from '.';
3
- declare const meta: Meta<typeof OpenLayersMapView>;
2
+ import { MapView } from './MapView';
3
+ declare const meta: Meta<typeof MapView>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof OpenLayersMapView>;
5
+ type Story = StoryObj<typeof MapView>;
6
6
  export interface MapDropDownItem {
7
7
  name: string;
8
8
  title: string;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MapView } from './MapView';
3
+ declare const meta: Meta<typeof MapView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MapView>;
6
+ export declare const MapViewVFX: Story;
@@ -46,7 +46,6 @@ export interface MapLocation {
46
46
  screenOffsetY?: number;
47
47
  projectionX?: number;
48
48
  projectionY?: number;
49
- resolution?: number;
50
49
  srs?: string;
51
50
  id?: string;
52
51
  serviceId?: string;
@@ -10,4 +10,3 @@ export * from './MapControls';
10
10
  export * from './MapWarning';
11
11
  export * from './MapDimensionSelect';
12
12
  export * from './LayerInfo';
13
- export * from './OpenLayers';
@@ -51,7 +51,7 @@ export declare const useGetWMSLayerStyleList: (serviceUrl: string, name: string)
51
51
  * @param {string} name
52
52
  * @returns {(WMLayer | null)}
53
53
  */
54
- export declare const useGetWMLayerInstance: (serviceUrl: string, name: string, id?: string, onLayerError?: (layerId: string, message: string) => void) => WMLayer | null;
54
+ export declare const useGetWMLayerInstance: (serviceUrl: string, name: string, id?: string) => WMLayer | null;
55
55
  /**
56
56
  * Used for querying WMTS GetCapabilities documents
57
57
  * @param serviceUrl
@@ -1,4 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './layers';
3
- export * from './hooks';
3
+ export * from './hooks/useHooksGetCapabilities';
4
4
  export { WEBMAP_REACT_NAMESPACE } from './utils/i18n';
@@ -8,7 +8,6 @@ export declare const baseLayer: {
8
8
  layerType: LayerType;
9
9
  enabled: boolean;
10
10
  id: string;
11
- isBaseLayer: boolean;
12
11
  };
13
12
  export declare const baseLayerOpenStreetMapNL: {
14
13
  id: string;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const HoldShiftToZoomMessage: () => React.ReactElement | null;
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare const MapMousePosition: React.FC;
@@ -1 +0,0 @@
1
- export * from './MapMousePosition';
@@ -1,24 +0,0 @@
1
- import { Circle, Fill, Stroke } from 'ol/style';
2
- import Style, { StyleFunction, StyleLike } from 'ol/style/Style';
3
- import { ColorLike } from 'ol/colorlike';
4
- import { DrawModeValue } from '../MapDrawTool';
5
- export declare enum MapFeatureClass {
6
- MyLocation = "MyLocation",
7
- GenericMarker = "GenericMarker",
8
- ObservationStation = "ObservationStation",
9
- default = "default"
10
- }
11
- export declare const FEATURE_FILL: Fill;
12
- export declare const FEATURE_STROKE: Stroke;
13
- export declare const FEATURE_STROKE_EDIT: Stroke;
14
- export declare const FEATURE_VERTICE_IMAGE: Circle;
15
- export declare const FEATURE_VERTICE_HANDLE_IMAGE: Circle;
16
- export declare const ICON_LOCATIONMARKER: Style;
17
- export declare const ICON_LOCATIONMARKER_MODIFY: Style;
18
- export declare const FEATURE_VERTICES_EDIT_HANDLES: Style;
19
- export declare const textLableStyle: (text: string) => Style;
20
- export declare const geowebColorToOpenLayersColor: (color: string, opacity?: string | number) => ColorLike;
21
- export declare const inlineFeatureStyle: StyleFunction;
22
- export declare const genericOpenlayersFeatureStyle: StyleFunction;
23
- export declare const drawStyles: Record<DrawModeValue, StyleLike>;
24
- export declare const modifyStyles: Record<DrawModeValue, Style[]>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
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 BaseLayerStory: Story;
@@ -1,10 +0,0 @@
1
- import * as 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 * as 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 * as 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 * as 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 * as 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,2 +0,0 @@
1
- export declare const OPENLAYERS_MOUSEWHEEL_DURATION = 50;
2
- export declare const OPENLAYERS_MOUSEWHEEL_TIMEOUT = 50;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
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';
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';
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';
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';
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';
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;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
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';
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';
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,12 +0,0 @@
1
- import React from 'react';
2
- import { View } from 'ol';
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
- }
12
- export declare const OpenLayersMapView: React.FC<OpenLayersMapViewProps>;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Map } from 'ol';
3
- export interface MapContextType {
4
- map: Map | null;
5
- }
6
- declare const MapContext: import("react").Context<MapContextType>;
7
- export default MapContext;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { TimeContextType } from '../types/Timespan';
3
- export type ChangeRelevantTimestepsFn = (layerId: string, dimensionValues: string[]) => void;
4
- export type ResetPrefetchFn = (layerId: string) => void;
5
- export type TimestepPrefetchedFn = (layerId: string, dimensionValue: string) => void;
6
- declare const TimeContext: import("react").Context<TimeContextType>;
7
- export default TimeContext;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { MapLocation } from '../../ReactMapView';
3
- export interface OpenLayersGetFeatureInfoProps {
4
- displayMapPin?: boolean;
5
- mapPinLocation?: MapLocation;
6
- selectLocation: (location: MapLocation) => void;
7
- }
8
- export declare const OpenLayersGetFeatureInfo: React.FC<OpenLayersGetFeatureInfoProps>;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Extent } from 'ol/extent';
3
- interface OpenLayersZoomControlProps {
4
- homeExtent?: Extent;
5
- }
6
- export declare const OpenLayersZoomControl: React.FC<OpenLayersZoomControlProps>;
7
- export {};
@@ -1,2 +0,0 @@
1
- export * from './OpenLayersGetFeatureInfo';
2
- export * from './OpenLayersZoomControl';
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import { StyleLike } from 'ol/style/Style';
3
- import { DrawModeExitCallback } from '../../MapDraw';
4
- import { DrawModeValue } from '../../MapDrawTool';
5
- export interface OpenLayersMapDrawProps {
6
- geojson: GeoJSON.FeatureCollection;
7
- drawMode?: DrawModeValue;
8
- viewOnlyStyle: StyleLike;
9
- exitDrawModeCallback?: (reason: DrawModeExitCallback, newGeoJSON?: GeoJSON.FeatureCollection) => void;
10
- isInEditMode: boolean;
11
- selectedFeatureIndex: number;
12
- updateGeojson?: (geoJson: GeoJSON.FeatureCollection, text: string) => void;
13
- }
14
- /**
15
- * Integrates with OpenLayers Draw and Modify (+Snap) interactions, to implement feature drawing
16
- * and modification behaviour.
17
- *
18
- * There is a corner case where this fails: the user will only be able to edit the existing
19
- * feature (not add) when there are 1) multiple features in the geojson, and 2) the
20
- * selectedFeatureIndex points to a feature with of the same type as drawMode is going to draw. To
21
- * fix this properly, it would be better that the surrounding code would add a placeholder feature
22
- * in the geojson and then activate drawing at that feature index. This means the openlayers version
23
- * works slightly differently from the WebMapJS version, but since the multi-feature edit feature
24
- * is not really a requirement for any production workflows, this functionality was left as is.
25
- */
26
- export declare const OpenLayersMapDraw: React.FC<OpenLayersMapDrawProps>;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { useMapDrawTool } from '../../MapDrawTool';
3
- declare const meta: Meta<typeof useMapDrawTool>;
4
- export default meta;
5
- type Story = StoryObj<typeof useMapDrawTool>;
6
- export declare const OlBasicMapDrawTool: Story;
7
- export declare const OlBasicMapDrawToolShape: Story;
8
- export declare const OlBasicMapDrawToolWithMultipleShapes: Story;
9
- export declare const OlBasicMapDrawToolWithMultipleShapesValues: Story;
@@ -1 +0,0 @@
1
- export * from './OpenLayersMapDraw';
@@ -1,9 +0,0 @@
1
- export { default as MapContext } from './context/MapContext';
2
- export * from './component/OpenLayersMapView';
3
- export * from './utils/TimeAwareImageWrapper';
4
- export * from './utils/types';
5
- export * from './utils/projections';
6
- export * from './utils/setMapCenter';
7
- export * from './controls';
8
- export * from './draw';
9
- export * from './OlStyles';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export declare enum BaseLayerType {
3
- LIGHT_GREY_CANVAS = 0,
4
- WORLD_TOPO = 1
5
- }
6
- interface DefaultBaseLayersOptions {
7
- type?: BaseLayerType;
8
- }
9
- export declare const DefaultBaseLayers: React.FC<DefaultBaseLayersOptions>;
10
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Feature } from 'ol';
3
- import { StyleLike } from 'ol/style/Style';
4
- import { HoverSelect } from '../utils/types';
5
- export interface FeatureLayerProps {
6
- features: Feature[];
7
- style: StyleLike;
8
- zIndex?: number;
9
- hoverSelect?: HoverSelect;
10
- }
11
- export declare const FeatureLayer: React.FC<FeatureLayerProps>;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { StyleLike } from 'ol/style/Style';
3
- import { FeatureCollection } from 'geojson';
4
- import { HoverSelect } from '../utils/types';
5
- export interface GeoJSONLayerProps {
6
- featureCollection?: FeatureCollection;
7
- style: StyleLike;
8
- zIndex?: number;
9
- hoverSelect?: HoverSelect;
10
- }
11
- export declare const GeoJSONLayer: React.FC<GeoJSONLayerProps>;