@opengeoweb/webmap-react 12.5.0 → 12.7.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 (73) hide show
  1. package/index.esm.js +6905 -4261
  2. package/package.json +4 -6
  3. package/src/index.d.ts +2 -4
  4. package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +1 -1
  5. package/src/lib/components/MapDraw/index.d.ts +0 -2
  6. package/src/lib/components/MapDraw/mapDrawUtils.d.ts +0 -17
  7. package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +3 -3
  8. package/src/lib/components/MapDrawTool/types.d.ts +1 -1
  9. package/src/lib/components/OpenLayers/OpenLayers.FeatureLayerOpacity.stories.d.ts +10 -0
  10. package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +1 -0
  11. package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +1 -1
  12. package/src/lib/components/OpenLayers/draw/index.d.ts +1 -0
  13. package/src/lib/components/{MapDraw/MapDrawContainer.d.ts → OpenLayers/draw/types.d.ts} +20 -9
  14. package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +1 -0
  15. package/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.d.ts +1 -0
  16. package/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +1 -1
  17. package/src/lib/components/OpenLayers/layers/TimeAwareEDRLocationLayer.d.ts +11 -0
  18. package/src/lib/components/OpenLayers/layers/index.d.ts +1 -0
  19. package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +1 -1
  20. package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +1 -0
  21. package/src/lib/components/OpenLayers/utils/coverageCollectionToFeatureCollection.d.ts +2 -0
  22. package/src/lib/components/ReactMapView/index.d.ts +0 -2
  23. package/src/lib/components/ReactMapView/types.d.ts +1 -41
  24. package/src/lib/components/ReactMapView/utils.d.ts +2 -10
  25. package/src/lib/components/TanStackDemo/EDRLayerApi.stories.d.ts +17 -0
  26. package/src/lib/components/TanStackDemo/TanStackDemo.GetCapabilitiesLiveUpdate.stories.d.ts +1 -1
  27. package/src/lib/components/TanStackDemo/storyUtils.d.ts +6 -0
  28. package/src/lib/components/index.d.ts +1 -2
  29. package/src/lib/edr-layer-api/colormaps/colormaps.d.ts +5 -0
  30. package/src/lib/edr-layer-api/colormaps/edrOlLegendUtils.d.ts +20 -0
  31. package/src/lib/edr-layer-api/colormaps/index.d.ts +2 -0
  32. package/src/lib/edr-layer-api/fakeApi.d.ts +1 -0
  33. package/src/lib/edr-layer-api/hooks.d.ts +6 -0
  34. package/src/lib/edr-layer-api/index.d.ts +3 -0
  35. package/src/lib/hooks/useHooksGetCapabilities.d.ts +2 -2
  36. package/src/lib/index.d.ts +1 -0
  37. package/src/lib/components/Axis/ProfileAxis.d.ts +0 -8
  38. package/src/lib/components/Axis/ProfileAxis.spec.d.ts +0 -1
  39. package/src/lib/components/Axis/ProfileAxis.stories.d.ts +0 -7
  40. package/src/lib/components/Axis/profileUtils.d.ts +0 -17
  41. package/src/lib/components/MapDraw/MapDraw.d.ts +0 -159
  42. package/src/lib/components/MapDraw/MapDraw.stories.d.ts +0 -13
  43. package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +0 -3
  44. package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +0 -3
  45. package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +0 -3
  46. package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +0 -3
  47. package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +0 -7
  48. package/src/lib/components/MapView/MapView.d.ts +0 -9
  49. package/src/lib/components/MapView/MapView.spec.d.ts +0 -1
  50. package/src/lib/components/MapView/MapViewLayer.d.ts +0 -16
  51. package/src/lib/components/MapView/index.d.ts +0 -2
  52. package/src/lib/components/ReactMapView/ReactMapView.d.ts +0 -66
  53. package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +0 -2
  54. package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +0 -8
  55. package/src/lib/components/WMSViewerDemo/WebmapReact.stories.d.ts +0 -6
  56. package/src/lib/components/WebMapMapView/MapView.VFXData.stories.d.ts +0 -6
  57. package/src/lib/components/WebMapMapView/WebMapMapView.Error.stories.d.ts +0 -8
  58. package/src/lib/components/WebMapMapView/WebMapMapView.MapPin.stories.d.ts +0 -6
  59. package/src/lib/components/WebMapMapView/WebMapMapView.Passive.stories.d.ts +0 -6
  60. package/src/lib/components/WebMapMapView/WebMapMapView.ProfileSounding.stories.d.ts +0 -6
  61. package/src/lib/components/WebMapMapView/WebMapMapView.RadarAnimation.stories.d.ts +0 -6
  62. package/src/lib/components/WebMapMapView/WebMapMapView.RadarData.stories.d.ts +0 -6
  63. package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBox.stories.d.ts +0 -6
  64. package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBoxLocalState.stories.d.ts +0 -6
  65. package/src/lib/components/WebMapMapView/WebMapMapView.ShiftToZoom.stories.d.ts +0 -6
  66. package/src/lib/components/WebMapMapView/WebMapMapView.ShowLayerInfo.stories.d.ts +0 -6
  67. package/src/lib/components/WebMapMapView/WebMapMapView.TiledBaseLayers.stories.d.ts +0 -17
  68. /package/src/lib/components/{Axis/profileUtils.spec.d.ts → OpenLayers/draw/OpenLayersMapDraw.spec.d.ts} +0 -0
  69. /package/src/lib/components/{MapDraw/MapDraw.spec.d.ts → OpenLayers/layers/OpenLayersFeatureLayer.spec.d.ts} +0 -0
  70. /package/src/lib/components/{MapDraw/MapDrawContainer.spec.d.ts → OpenLayers/layers/OpenLayersLayer.spec.d.ts} +0 -0
  71. /package/src/lib/components/{MapDraw/mapDrawUtils.spec.d.ts → OpenLayers/layers/TimeAwareEDRLocationLayer.spec.d.ts} +0 -0
  72. /package/src/lib/components/{MapDrawTool/useMapDrawTool.spec.d.ts → OpenLayers/utils/coverageCollectionToFeatureCollection.spec.d.ts} +0 -0
  73. /package/src/lib/{components/MapDrawTool/utils.spec.d.ts → edr-layer-api/colormaps/edrOlLegendUtils.spec.d.ts} +0 -0
@@ -1,13 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapDrawGeoJSON } from './storyComponents/MapDrawGeoJSON';
3
- declare const meta: Meta<typeof MapDrawGeoJSON>;
4
- export default meta;
5
- type Story = StoryObj<typeof MapDrawGeoJSON>;
6
- export declare const Map1: Story;
7
- export declare const Map2: Story;
8
- export declare const Map3: Story;
9
- export declare const Map4: Story;
10
- export declare const Map5: Story;
11
- export declare const Map6: Story;
12
- export declare const Map7: Story;
13
- export declare const Map8: Story;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const FeatureInfo: React.FC;
3
- export default FeatureInfo;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const FeatureInfoHTML: React.FC;
3
- export default FeatureInfoHTML;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const MapDrawGeoJSON: React.FC;
3
- export default MapDrawGeoJSON;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const Synops: React.FC;
3
- export default Synops;
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { useMapDrawTool } from './useMapDrawTool';
3
- declare const meta: Meta<typeof useMapDrawTool>;
4
- export default meta;
5
- type Story = StoryObj<typeof useMapDrawTool>;
6
- export declare const IntersectionDemo: Story;
7
- export declare const IntersectionWithShapeDemo: Story;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { ReactMapViewProps } from '../ReactMapView';
3
- export interface MapViewProps extends ReactMapViewProps {
4
- controls?: {
5
- zoomControls?: boolean;
6
- };
7
- isTimeScrollingEnabled?: boolean;
8
- }
9
- export declare const MapView: React.FC<MapViewProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { LayerFoundation, IWMJSMap, WMLayer } from '@opengeoweb/webmap';
3
- import { DrawModeExitCallback, FeatureEvent } from '../MapDraw';
4
- export interface MapViewLayerProps extends LayerFoundation {
5
- id: string;
6
- onLayerReady?: (layer: WMLayer, webmap?: IWMJSMap) => void;
7
- onLayerError?: (layer: WMLayer, error?: Error) => void;
8
- isInEditMode?: boolean;
9
- drawMode?: string;
10
- updateGeojson?: (geoJson: GeoJSON.FeatureCollection, reason: string) => void;
11
- exitDrawModeCallback?: (reason: DrawModeExitCallback, newGeoJSON?: GeoJSON.FeatureCollection) => void;
12
- selectedFeatureIndex?: number;
13
- onClickFeature?: (event?: FeatureEvent) => void;
14
- onHoverFeature?: (event: FeatureEvent) => void;
15
- }
16
- export declare const MapViewLayer: React.FC<MapViewLayerProps>;
@@ -1,2 +0,0 @@
1
- export * from './MapView';
2
- export * from './MapViewLayer';
@@ -1,66 +0,0 @@
1
- /// <reference types="node" />
2
- import * as React from 'react';
3
- import { IWMJSMap, WMLayer, WMBBOX, TileServerSettings } from '@opengeoweb/webmap';
4
- import { ReactMapViewProps } from './types';
5
- import type { MapViewLayerProps } from '../MapView';
6
- export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
7
- export declare const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO";
8
- export declare const MINUTE_TO_MILLISECOND = 60000;
9
- interface ReactMapViewState {
10
- adagucInitialised: boolean;
11
- }
12
- interface AdagucObjectProp {
13
- initialized: boolean;
14
- baseLayers: WMLayer[];
15
- oldbbox: WMBBOX;
16
- currentWidth: number;
17
- currentHeight: number;
18
- currentChildren: MapViewLayerProps[];
19
- }
20
- export declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapViewState> {
21
- adaguc: AdagucObjectProp;
22
- adagucContainerRef: React.RefObject<HTMLDivElement>;
23
- adagucWebMapJSRef: React.RefObject<HTMLDivElement>;
24
- tileServerSettings: TileServerSettings;
25
- refetchTimer: NodeJS.Timeout | number | null;
26
- lastRefetched: number | null;
27
- static defaultProps: {
28
- srs: "EPSG:3857";
29
- bbox: {
30
- left: number;
31
- bottom: number;
32
- right: number;
33
- top: number;
34
- };
35
- shouldAutoFetch: boolean;
36
- displayMapPin: boolean;
37
- disableMapPin: boolean;
38
- tileServerSettings: TileServerSettings;
39
- onWMJSMount: () => void;
40
- onWMJSUnMount: () => void;
41
- onMapChangeDimension: () => void;
42
- onUpdateLayerInformation: () => void;
43
- onMapZoomEnd: () => void;
44
- };
45
- constructor(props: ReactMapViewProps);
46
- componentDidMount(): void;
47
- componentDidUpdate(prevProps: ReactMapViewProps): void;
48
- componentWillUnmount(): void;
49
- handleWindowResize(): void;
50
- onDimChangeListener(): void;
51
- onAfterSetBBoxListener(): void;
52
- onUpdateBBoxListener(newBbox: WMBBOX): void;
53
- handleVisibilityChange: () => void;
54
- /**
55
- * Start the refetch timer
56
- * @param force - Force a fetch and wmLayer parse immediately
57
- */
58
- onStartRefetchTimer: (force?: boolean) => void;
59
- clearRefetchTimer: () => void;
60
- updateWMJSMapProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
61
- drawDebounced(): void;
62
- mountWMJSMap(): IWMJSMap | null;
63
- resize(): void;
64
- render(): React.ReactElement;
65
- }
66
- export {};
@@ -1,2 +0,0 @@
1
- export declare const SECOND_TO_MILLISECOND = 1000;
2
- export declare const mockGeoJSON: GeoJSON.FeatureCollection;
@@ -1,8 +0,0 @@
1
- import { WMLayer } from '@opengeoweb/webmap';
2
- import * as React from 'react';
3
- interface ReactMapViewLayerProps {
4
- id: string;
5
- onLayerReady?: (layer: WMLayer) => void;
6
- }
7
- export declare const ReactMapViewLayer: React.FC<ReactMapViewLayerProps>;
8
- export {};
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- type Story = StoryObj;
3
- export declare const DemoDemoWMSViewerStory: Story;
4
- export declare const MapComponentDemo: Story;
5
- declare const meta: Meta<typeof DemoDemoWMSViewerStory>;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const MapViewVFX: Story;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const Component: Story;
7
- export declare const MapError: Story;
8
- export declare const MapWithDuplicateLayerIdsError: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const SetMapPin: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const PassiveMap: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const MapViewProfile: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const RadarAnimation: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const MapViewRadar: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const SetProjectionBBox: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const SetProjectionBBoxLocalState: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const HoldShiftToZoom: Story;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
6
- export declare const MapWithShowLayerInfoEnabled: Story;
@@ -1,17 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { MapView as WebMapMapView } from '../MapView';
3
- declare const meta: Meta<typeof WebMapMapView>;
4
- export default meta;
5
- type Story = StoryObj<typeof WebMapMapView>;
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;