@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.
- package/index.esm.js +204 -3749
- package/package.json +7 -8
- package/src/index.d.ts +0 -2
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +1 -1
- package/src/lib/components/MapDraw/index.d.ts +0 -2
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +0 -36
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +3 -3
- package/src/lib/components/MapDrawTool/types.d.ts +1 -1
- package/src/lib/components/OpenLayers/OpenLayers.FeatureLayerOpacity.stories.d.ts +10 -0
- package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +1 -0
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +1 -1
- package/src/lib/components/OpenLayers/draw/index.d.ts +1 -0
- package/src/lib/components/{MapDraw/MapDrawContainer.d.ts → OpenLayers/draw/types.d.ts} +20 -9
- package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +1 -0
- package/src/lib/components/OpenLayers/layers/OpenLayersFeatureLayer.d.ts +1 -0
- package/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +1 -1
- package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +1 -1
- package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +1 -0
- package/src/lib/components/ReactMapView/index.d.ts +0 -2
- package/src/lib/components/ReactMapView/types.d.ts +1 -41
- package/src/lib/components/ReactMapView/utils.d.ts +2 -10
- package/src/lib/components/index.d.ts +1 -2
- package/src/lib/hooks/useHooksGetCapabilities.d.ts +2 -2
- package/src/lib/components/Axis/ProfileAxis.d.ts +0 -8
- package/src/lib/components/Axis/ProfileAxis.spec.d.ts +0 -1
- package/src/lib/components/Axis/ProfileAxis.stories.d.ts +0 -7
- package/src/lib/components/Axis/profileUtils.d.ts +0 -17
- package/src/lib/components/Axis/profileUtils.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/MapDraw.d.ts +0 -159
- package/src/lib/components/MapDraw/MapDraw.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +0 -13
- package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +0 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +0 -3
- package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +0 -3
- package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +0 -3
- package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +0 -7
- package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +0 -1
- package/src/lib/components/MapDrawTool/utils.spec.d.ts +0 -1
- package/src/lib/components/MapView/MapView.d.ts +0 -9
- package/src/lib/components/MapView/MapView.spec.d.ts +0 -1
- package/src/lib/components/MapView/MapViewLayer.d.ts +0 -16
- package/src/lib/components/MapView/index.d.ts +0 -2
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +0 -66
- package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +0 -2
- package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +0 -8
- package/src/lib/components/WMSViewerDemo/WebmapReact.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/MapView.VFXData.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.Error.stories.d.ts +0 -8
- package/src/lib/components/WebMapMapView/WebMapMapView.MapPin.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.Passive.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.ProfileSounding.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.RadarAnimation.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.RadarData.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBox.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBoxLocalState.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.ShiftToZoom.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.ShowLayerInfo.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.TiledBaseLayers.stories.d.ts +0 -17
- /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,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
|
-
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;
|
package/src/lib/components/WebMapMapView/WebMapMapView.SetProjectionBBoxLocalState.stories.d.ts
DELETED
|
@@ -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
|