@opengeoweb/webmap-react 12.6.0 → 12.8.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 (61) hide show
  1. package/index.esm.js +204 -3749
  2. package/package.json +7 -8
  3. package/src/index.d.ts +0 -2
  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 -36
  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/storyComponents/OlStoryLayout.d.ts +1 -1
  18. package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +1 -0
  19. package/src/lib/components/ReactMapView/index.d.ts +0 -2
  20. package/src/lib/components/ReactMapView/types.d.ts +1 -41
  21. package/src/lib/components/ReactMapView/utils.d.ts +2 -10
  22. package/src/lib/components/index.d.ts +1 -2
  23. package/src/lib/hooks/useHooksGetCapabilities.d.ts +2 -2
  24. package/src/lib/components/Axis/ProfileAxis.d.ts +0 -8
  25. package/src/lib/components/Axis/ProfileAxis.spec.d.ts +0 -1
  26. package/src/lib/components/Axis/ProfileAxis.stories.d.ts +0 -7
  27. package/src/lib/components/Axis/profileUtils.d.ts +0 -17
  28. package/src/lib/components/Axis/profileUtils.spec.d.ts +0 -1
  29. package/src/lib/components/MapDraw/MapDraw.d.ts +0 -159
  30. package/src/lib/components/MapDraw/MapDraw.spec.d.ts +0 -1
  31. package/src/lib/components/MapDraw/MapDraw.stories.d.ts +0 -13
  32. package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +0 -1
  33. package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +0 -1
  34. package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +0 -3
  35. package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +0 -3
  36. package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +0 -3
  37. package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +0 -3
  38. package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +0 -7
  39. package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +0 -1
  40. package/src/lib/components/MapDrawTool/utils.spec.d.ts +0 -1
  41. package/src/lib/components/MapView/MapView.d.ts +0 -9
  42. package/src/lib/components/MapView/MapView.spec.d.ts +0 -1
  43. package/src/lib/components/MapView/MapViewLayer.d.ts +0 -16
  44. package/src/lib/components/MapView/index.d.ts +0 -2
  45. package/src/lib/components/ReactMapView/ReactMapView.d.ts +0 -66
  46. package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +0 -2
  47. package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +0 -8
  48. package/src/lib/components/WMSViewerDemo/WebmapReact.stories.d.ts +0 -6
  49. package/src/lib/components/WebMapMapView/MapView.VFXData.stories.d.ts +0 -6
  50. package/src/lib/components/WebMapMapView/WebMapMapView.Error.stories.d.ts +0 -8
  51. package/src/lib/components/WebMapMapView/WebMapMapView.MapPin.stories.d.ts +0 -6
  52. package/src/lib/components/WebMapMapView/WebMapMapView.Passive.stories.d.ts +0 -6
  53. package/src/lib/components/WebMapMapView/WebMapMapView.ProfileSounding.stories.d.ts +0 -6
  54. package/src/lib/components/WebMapMapView/WebMapMapView.RadarAnimation.stories.d.ts +0 -6
  55. package/src/lib/components/WebMapMapView/WebMapMapView.RadarData.stories.d.ts +0 -6
  56. package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBox.stories.d.ts +0 -6
  57. package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBoxLocalState.stories.d.ts +0 -6
  58. package/src/lib/components/WebMapMapView/WebMapMapView.ShiftToZoom.stories.d.ts +0 -6
  59. package/src/lib/components/WebMapMapView/WebMapMapView.ShowLayerInfo.stories.d.ts +0 -6
  60. package/src/lib/components/WebMapMapView/WebMapMapView.TiledBaseLayers.stories.d.ts +0 -17
  61. /package/{index.esm.d.ts → index.d.ts} +0 -0
@@ -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;
File without changes