@opengeoweb/webmap-react 9.28.1 → 9.29.1
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 +251 -245
- package/package.json +1 -1
- package/src/index.d.ts +5 -5
- package/src/lib/components/Axis/ProfileAxis.d.ts +8 -8
- package/src/lib/components/Axis/ProfileAxis.spec.d.ts +1 -1
- package/src/lib/components/Axis/ProfileAxis.stories.d.ts +9 -9
- package/src/lib/components/Axis/profileUtils.d.ts +17 -17
- package/src/lib/components/Axis/profileUtils.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +9 -9
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +14 -14
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +25 -25
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +9 -9
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +11 -11
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +15 -15
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -9
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/index.d.ts +6 -6
- package/src/lib/components/Legend/Legend.d.ts +7 -7
- package/src/lib/components/Legend/Legend.spec.d.ts +1 -1
- package/src/lib/components/Legend/Legend.stories.d.ts +8 -8
- package/src/lib/components/Legend/LegendButton.d.ts +5 -5
- package/src/lib/components/Legend/LegendButton.spec.d.ts +1 -1
- package/src/lib/components/Legend/LegendDialog.d.ts +15 -15
- package/src/lib/components/Legend/LegendDialog.spec.d.ts +1 -1
- package/src/lib/components/Legend/LegendLayout.d.ts +13 -13
- package/src/lib/components/Legend/LegendLayout.spec.d.ts +1 -1
- package/src/lib/components/Legend/index.d.ts +4 -4
- package/src/lib/components/MapControls/MapControlButton.d.ts +10 -10
- package/src/lib/components/MapControls/MapControlButton.spec.d.ts +1 -1
- package/src/lib/components/MapControls/MapControls.d.ts +7 -7
- package/src/lib/components/MapControls/MapControls.spec.d.ts +1 -1
- package/src/lib/components/MapControls/ZoomControls.d.ts +8 -8
- package/src/lib/components/MapControls/ZoomControls.spec.d.ts +1 -1
- package/src/lib/components/MapControls/index.d.ts +3 -3
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +8 -8
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +14 -14
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +29 -29
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +14 -14
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +11 -11
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.spec.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +7 -7
- package/src/lib/components/MapDimensionSelect/index.d.ts +6 -6
- package/src/lib/components/MapDimensionSelect/utils.d.ts +17 -17
- package/src/lib/components/MapDimensionSelect/utils.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/MapDraw.d.ts +158 -158
- package/src/lib/components/MapDraw/MapDraw.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +37 -37
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +23 -23
- package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/geojsonShapes.d.ts +19 -19
- package/src/lib/components/MapDraw/index.d.ts +5 -5
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +44 -44
- package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +8 -8
- package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +9 -9
- package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +11 -11
- package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +12 -12
- package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/SelectField.d.ts +10 -10
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +10 -10
- package/src/lib/components/MapDraw/storyComponents/StoryLayoutGrid.d.ts +5 -5
- package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +10 -10
- package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +12 -12
- package/src/lib/components/MapDraw/storyComponents/index.d.ts +8 -8
- package/src/lib/components/MapDraw/storyComponents/storyUtils.d.ts +49 -49
- package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +13 -13
- package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +11 -11
- package/src/lib/components/MapDrawTool/MapDrawToolMultipleDrawTools.stories.d.ts +6 -6
- package/src/lib/components/MapDrawTool/index.d.ts +7 -7
- package/src/lib/components/MapDrawTool/storyExamplesMapDrawTool.d.ts +10 -10
- package/src/lib/components/MapDrawTool/storyExamplesMapDrawToolIntersection.d.ts +10 -10
- package/src/lib/components/MapDrawTool/storyExamplesMapDrawToolMultipleDrawTools.d.ts +13 -13
- package/src/lib/components/MapDrawTool/types.d.ts +13 -13
- package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +53 -53
- package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +1 -1
- package/src/lib/components/MapDrawTool/utils.d.ts +62 -62
- package/src/lib/components/MapDrawTool/utils.spec.d.ts +1 -1
- package/src/lib/components/MapTime/MapTime.d.ts +11 -11
- package/src/lib/components/MapTime/MapTime.spec.d.ts +1 -1
- package/src/lib/components/MapTime/index.d.ts +1 -1
- package/src/lib/components/MapView/MapView.Error.stories.d.ts +14 -14
- package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.Passive.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.ProfileSounding.stories.d.ts +9 -9
- package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.TiledBaseLayers.stories.d.ts +22 -22
- package/src/lib/components/MapView/MapView.d.ts +8 -8
- package/src/lib/components/MapView/MapView.spec.d.ts +1 -1
- package/src/lib/components/MapView/MapViewLayer.d.ts +16 -16
- package/src/lib/components/MapView/index.d.ts +2 -2
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +23 -23
- package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +1 -1
- package/src/lib/components/MapWarning/index.d.ts +1 -1
- package/src/lib/components/Providers/Providers.d.ts +3 -3
- package/src/lib/components/Providers/index.d.ts +1 -1
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +64 -64
- package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +2 -2
- package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +8 -8
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +4 -4
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +1 -1
- package/src/lib/components/ReactMapView/index.d.ts +5 -5
- package/src/lib/components/ReactMapView/types.d.ts +88 -86
- package/src/lib/components/ReactMapView/utils.d.ts +26 -26
- package/src/lib/components/ReactMapView/utils.spec.d.ts +1 -1
- package/src/lib/components/index.d.ts +12 -12
- package/src/lib/index.d.ts +3 -3
- package/src/lib/layers/defaultLayers.d.ts +15 -15
- package/src/lib/layers/defaultStorybookSettings.d.ts +9 -9
- package/src/lib/layers/index.d.ts +3 -3
- package/src/lib/layers/profileLayers.d.ts +19 -19
- package/src/lib/layers/publicLayers.d.ts +310 -310
- package/src/lib/layers/publicServices.d.ts +90 -90
- package/src/lib/utils/i18n.d.ts +6 -6
|
@@ -1,16 +1,16 @@
|
|
|
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
|
+
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 +1,2 @@
|
|
|
1
|
-
export * from './MapView';
|
|
2
|
-
export * from './MapViewLayer';
|
|
1
|
+
export * from './MapView';
|
|
2
|
+
export * from './MapViewLayer';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface WarningListProps {
|
|
3
|
-
selectedFeatureProperties: {
|
|
4
|
-
identifier?: string;
|
|
5
|
-
severity?: string;
|
|
6
|
-
certainty?: string;
|
|
7
|
-
onset?: string;
|
|
8
|
-
expires?: string;
|
|
9
|
-
languages?: Language[];
|
|
10
|
-
};
|
|
11
|
-
languageIndex?: number;
|
|
12
|
-
parentSize?: number;
|
|
13
|
-
}
|
|
14
|
-
interface Language {
|
|
15
|
-
areaDesc: string;
|
|
16
|
-
language: string;
|
|
17
|
-
event: string;
|
|
18
|
-
senderName: string;
|
|
19
|
-
headline: string;
|
|
20
|
-
description: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const MapWarningProperties: React.FC<WarningListProps>;
|
|
23
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface WarningListProps {
|
|
3
|
+
selectedFeatureProperties: {
|
|
4
|
+
identifier?: string;
|
|
5
|
+
severity?: string;
|
|
6
|
+
certainty?: string;
|
|
7
|
+
onset?: string;
|
|
8
|
+
expires?: string;
|
|
9
|
+
languages?: Language[];
|
|
10
|
+
};
|
|
11
|
+
languageIndex?: number;
|
|
12
|
+
parentSize?: number;
|
|
13
|
+
}
|
|
14
|
+
interface Language {
|
|
15
|
+
areaDesc: string;
|
|
16
|
+
language: string;
|
|
17
|
+
event: string;
|
|
18
|
+
senderName: string;
|
|
19
|
+
headline: string;
|
|
20
|
+
description: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const MapWarningProperties: React.FC<WarningListProps>;
|
|
23
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MapWarningProperties } from './MapWarningProperties';
|
|
1
|
+
export { MapWarningProperties } from './MapWarningProperties';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ThemeProviderProps } from '@opengeoweb/theme';
|
|
3
|
-
export declare const WebmapReactThemeProvider: React.FC<ThemeProviderProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeProviderProps } from '@opengeoweb/theme';
|
|
3
|
+
export declare const WebmapReactThemeProvider: React.FC<ThemeProviderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Providers';
|
|
1
|
+
export * from './Providers';
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { IWMJSMap, WMLayer, WMBBOX } 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
|
-
refetchTimer: NodeJS.Timeout | number | null;
|
|
25
|
-
lastRefetched: number | null;
|
|
26
|
-
static defaultProps: {
|
|
27
|
-
srs: "EPSG:3857";
|
|
28
|
-
bbox: {
|
|
29
|
-
left: number;
|
|
30
|
-
bottom: number;
|
|
31
|
-
right: number;
|
|
32
|
-
top: number;
|
|
33
|
-
};
|
|
34
|
-
shouldAutoFetch: boolean;
|
|
35
|
-
displayMapPin: boolean;
|
|
36
|
-
disableMapPin: boolean;
|
|
37
|
-
onWMJSMount: () => void;
|
|
38
|
-
onWMJSUnMount: () => void;
|
|
39
|
-
onMapChangeDimension: () => void;
|
|
40
|
-
onUpdateLayerInformation: () => void;
|
|
41
|
-
onMapZoomEnd: () => void;
|
|
42
|
-
};
|
|
43
|
-
constructor(props: ReactMapViewProps);
|
|
44
|
-
componentDidMount(): void;
|
|
45
|
-
componentDidUpdate(prevProps: ReactMapViewProps): void;
|
|
46
|
-
componentWillUnmount(): void;
|
|
47
|
-
handleWindowResize(): void;
|
|
48
|
-
onDimChangeListener(): void;
|
|
49
|
-
onAfterSetBBoxListener(): void;
|
|
50
|
-
onUpdateBBoxListener(newBbox: WMBBOX): void;
|
|
51
|
-
handleVisibilityChange: () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Start the refetch timer
|
|
54
|
-
* @param force - Force a fetch and wmLayer parse immediately
|
|
55
|
-
*/
|
|
56
|
-
onStartRefetchTimer: (force?: boolean) => void;
|
|
57
|
-
clearRefetchTimer: () => void;
|
|
58
|
-
updateWMJSMapProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
|
|
59
|
-
drawDebounced(): void;
|
|
60
|
-
mountWMJSMap(): IWMJSMap | null;
|
|
61
|
-
resize(): void;
|
|
62
|
-
render(): React.ReactElement;
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { IWMJSMap, WMLayer, WMBBOX } 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
|
+
refetchTimer: NodeJS.Timeout | number | null;
|
|
25
|
+
lastRefetched: number | null;
|
|
26
|
+
static defaultProps: {
|
|
27
|
+
srs: "EPSG:3857";
|
|
28
|
+
bbox: {
|
|
29
|
+
left: number;
|
|
30
|
+
bottom: number;
|
|
31
|
+
right: number;
|
|
32
|
+
top: number;
|
|
33
|
+
};
|
|
34
|
+
shouldAutoFetch: boolean;
|
|
35
|
+
displayMapPin: boolean;
|
|
36
|
+
disableMapPin: boolean;
|
|
37
|
+
onWMJSMount: () => void;
|
|
38
|
+
onWMJSUnMount: () => void;
|
|
39
|
+
onMapChangeDimension: () => void;
|
|
40
|
+
onUpdateLayerInformation: () => void;
|
|
41
|
+
onMapZoomEnd: () => void;
|
|
42
|
+
};
|
|
43
|
+
constructor(props: ReactMapViewProps);
|
|
44
|
+
componentDidMount(): void;
|
|
45
|
+
componentDidUpdate(prevProps: ReactMapViewProps): void;
|
|
46
|
+
componentWillUnmount(): void;
|
|
47
|
+
handleWindowResize(): void;
|
|
48
|
+
onDimChangeListener(): void;
|
|
49
|
+
onAfterSetBBoxListener(): void;
|
|
50
|
+
onUpdateBBoxListener(newBbox: WMBBOX): void;
|
|
51
|
+
handleVisibilityChange: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Start the refetch timer
|
|
54
|
+
* @param force - Force a fetch and wmLayer parse immediately
|
|
55
|
+
*/
|
|
56
|
+
onStartRefetchTimer: (force?: boolean) => void;
|
|
57
|
+
clearRefetchTimer: () => void;
|
|
58
|
+
updateWMJSMapProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
|
|
59
|
+
drawDebounced(): void;
|
|
60
|
+
mountWMJSMap(): IWMJSMap | null;
|
|
61
|
+
resize(): void;
|
|
62
|
+
render(): React.ReactElement;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SECOND_TO_MILLISECOND = 1000;
|
|
2
|
-
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
1
|
+
export declare const SECOND_TO_MILLISECOND = 1000;
|
|
2
|
+
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
+
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,4 +1,4 @@
|
|
|
1
|
-
import { WMLayer, WMJSDimension } from '@opengeoweb/webmap';
|
|
2
|
-
import { UpdateLayerInfoPayload } from './types';
|
|
3
|
-
export declare const getCurrentDimensionValue: (name: string, dimensions?: WMJSDimension[]) => string;
|
|
4
|
-
export declare const getLayerUpdateInfo: (wmLayer: WMLayer, mapId: string) => UpdateLayerInfoPayload;
|
|
1
|
+
import { WMLayer, WMJSDimension } from '@opengeoweb/webmap';
|
|
2
|
+
import { UpdateLayerInfoPayload } from './types';
|
|
3
|
+
export declare const getCurrentDimensionValue: (name: string, dimensions?: WMJSDimension[]) => string;
|
|
4
|
+
export declare const getLayerUpdateInfo: (wmLayer: WMLayer, mapId: string) => UpdateLayerInfoPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
1
|
+
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import RadarGetCapabilities from './radarGetCapabilities.spec.json';
|
|
2
|
-
export * from './ReactMapViewLayer';
|
|
3
|
-
export * from './ReactMapView';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export { RadarGetCapabilities };
|
|
1
|
+
import RadarGetCapabilities from './radarGetCapabilities.spec.json';
|
|
2
|
+
export * from './ReactMapViewLayer';
|
|
3
|
+
export * from './ReactMapView';
|
|
4
|
+
export * from './types';
|
|
5
|
+
export { RadarGetCapabilities };
|
|
@@ -1,86 +1,88 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Bbox, Dimension, IWMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Bbox, Dimension, IWMJSMap } from '@opengeoweb/webmap';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
|
+
export interface ReactMapViewProps {
|
|
5
|
+
listeners?: {
|
|
6
|
+
name?: string;
|
|
7
|
+
data: string;
|
|
8
|
+
keep: boolean;
|
|
9
|
+
callbackfunction: (webMap: IWMJSMap, value: string) => void;
|
|
10
|
+
}[];
|
|
11
|
+
srs?: string;
|
|
12
|
+
bbox?: Bbox;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
mapId: string;
|
|
15
|
+
activeLayerId?: string;
|
|
16
|
+
showScaleBar?: boolean;
|
|
17
|
+
showLegend?: boolean;
|
|
18
|
+
passiveMap?: boolean;
|
|
19
|
+
displayTimeInMap?: boolean;
|
|
20
|
+
animationDelay?: number;
|
|
21
|
+
timestep?: number;
|
|
22
|
+
dimensions?: Dimension[];
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
displayMapPin?: boolean;
|
|
25
|
+
mapPinLocation?: MapLocation;
|
|
26
|
+
shouldAutoFetch?: number | boolean;
|
|
27
|
+
showLayerInfo?: boolean;
|
|
28
|
+
disableMapPin?: boolean;
|
|
29
|
+
holdShiftToScroll?: boolean;
|
|
30
|
+
shouldDisablePrefetching?: boolean;
|
|
31
|
+
t?: TFunction;
|
|
32
|
+
onWMJSMount?: (mapId: string) => void;
|
|
33
|
+
onWMJSUnMount?: (mapId: string) => void;
|
|
34
|
+
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|
|
35
|
+
onMapZoomEnd?: (payload: SetBboxPayload) => void;
|
|
36
|
+
onMapPinChangeLocation?: (payload: MapPinLocationPayload) => void;
|
|
37
|
+
onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface MapLocation {
|
|
40
|
+
lat: number;
|
|
41
|
+
lon: number;
|
|
42
|
+
screenOffsetX?: number;
|
|
43
|
+
screenOffsetY?: number;
|
|
44
|
+
projectionX?: number;
|
|
45
|
+
projectionY?: number;
|
|
46
|
+
srs?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface MapPinLocationPayload {
|
|
49
|
+
mapId: string;
|
|
50
|
+
mapPinLocation: MapLocation;
|
|
51
|
+
}
|
|
52
|
+
export interface SetMapDimensionPayload {
|
|
53
|
+
origin: string;
|
|
54
|
+
mapId: string;
|
|
55
|
+
dimension: Dimension;
|
|
56
|
+
}
|
|
57
|
+
export interface SetBboxPayload {
|
|
58
|
+
mapId: string;
|
|
59
|
+
bbox: Bbox;
|
|
60
|
+
srs?: string;
|
|
61
|
+
origin?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SetStepBackWardOrForward {
|
|
64
|
+
mapId: string;
|
|
65
|
+
isForwardStep: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface SetLayerDimensionsPayload {
|
|
68
|
+
layerId: string;
|
|
69
|
+
origin: string;
|
|
70
|
+
dimensions: Dimension[];
|
|
71
|
+
}
|
|
72
|
+
export interface UpdateAllMapDimensionsPayload {
|
|
73
|
+
origin: string;
|
|
74
|
+
mapId: string;
|
|
75
|
+
dimensions: Dimension[];
|
|
76
|
+
}
|
|
77
|
+
export interface SetLayerStylePayload {
|
|
78
|
+
layerId: string;
|
|
79
|
+
style: string;
|
|
80
|
+
mapId?: string;
|
|
81
|
+
origin?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface UpdateLayerInfoPayload {
|
|
84
|
+
origin: string;
|
|
85
|
+
mapDimensions?: UpdateAllMapDimensionsPayload;
|
|
86
|
+
layerStyle?: SetLayerStylePayload;
|
|
87
|
+
layerDimensions?: SetLayerDimensionsPayload;
|
|
88
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Dimension, LayerFoundation, IWMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { FeatureLayer } from '../MapDraw';
|
|
4
|
-
import type { MapViewLayerProps, MapViewProps } from '../MapView';
|
|
5
|
-
import { ReactMapViewProps, UpdateLayerInfoPayload } from './types';
|
|
6
|
-
/** Returns filtered list of props with geoJson
|
|
7
|
-
* @param children React.ReactNode, layers with geoJson
|
|
8
|
-
*/
|
|
9
|
-
export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
|
|
10
|
-
/**
|
|
11
|
-
* Returns true if this is a maplayer and not a baselayer or overlayer
|
|
12
|
-
* @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
|
|
13
|
-
*/
|
|
14
|
-
export declare const isAMapLayer: (layer: LayerFoundation) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Returns true if this is a geojsonlayer (layer containing geojson field)
|
|
17
|
-
* @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
|
|
18
|
-
*/
|
|
19
|
-
export declare const isAGeoJSONLayer: (layer: LayerFoundation) => boolean;
|
|
20
|
-
export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: number | undefined, mapDimensions: Dimension[] | undefined, layerDimensions: Dimension[] | undefined): boolean;
|
|
21
|
-
export declare const makeLayerPropListFromChildren: (children: React.ReactNode, mapId: string) => MapViewLayerProps[];
|
|
22
|
-
export declare const parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean) => Promise<WMLayer>;
|
|
23
|
-
export declare const setWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, wmLayer: WMLayer, mapViewProps: ReactMapViewProps) => boolean;
|
|
24
|
-
export declare const addWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, mapId: string, props: MapViewProps, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
25
|
-
export declare const removeWMLayerFromMap: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
26
|
-
export declare const orderLayers: (wmjsMap: IWMJSMap, _reactMapViewLayers: MapViewLayerProps[]) => boolean;
|
|
1
|
+
import { Dimension, LayerFoundation, IWMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FeatureLayer } from '../MapDraw';
|
|
4
|
+
import type { MapViewLayerProps, MapViewProps } from '../MapView';
|
|
5
|
+
import { ReactMapViewProps, UpdateLayerInfoPayload } from './types';
|
|
6
|
+
/** Returns filtered list of props with geoJson
|
|
7
|
+
* @param children React.ReactNode, layers with geoJson
|
|
8
|
+
*/
|
|
9
|
+
export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
|
|
10
|
+
/**
|
|
11
|
+
* Returns true if this is a maplayer and not a baselayer or overlayer
|
|
12
|
+
* @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
|
|
13
|
+
*/
|
|
14
|
+
export declare const isAMapLayer: (layer: LayerFoundation) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if this is a geojsonlayer (layer containing geojson field)
|
|
17
|
+
* @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
|
|
18
|
+
*/
|
|
19
|
+
export declare const isAGeoJSONLayer: (layer: LayerFoundation) => boolean;
|
|
20
|
+
export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: number | undefined, mapDimensions: Dimension[] | undefined, layerDimensions: Dimension[] | undefined): boolean;
|
|
21
|
+
export declare const makeLayerPropListFromChildren: (children: React.ReactNode, mapId: string) => MapViewLayerProps[];
|
|
22
|
+
export declare const parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean) => Promise<WMLayer>;
|
|
23
|
+
export declare const setWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, wmLayer: WMLayer, mapViewProps: ReactMapViewProps) => boolean;
|
|
24
|
+
export declare const addWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, mapId: string, props: MapViewProps, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
25
|
+
export declare const removeWMLayerFromMap: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
26
|
+
export declare const orderLayers: (wmjsMap: IWMJSMap, _reactMapViewLayers: MapViewLayerProps[]) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './Legend';
|
|
2
|
-
export * from './MapDraw';
|
|
3
|
-
export * from './MapDrawTool';
|
|
4
|
-
export * from './ReactMapView';
|
|
5
|
-
export * from './ReactMapView/utils';
|
|
6
|
-
export * from './ReactMapView/ReactMapViewParseLayer';
|
|
7
|
-
export * from './MapView';
|
|
8
|
-
export * from './MapTime';
|
|
9
|
-
export * from './MapControls';
|
|
10
|
-
export * from './MapWarning';
|
|
11
|
-
export * from './MapDimensionSelect';
|
|
12
|
-
export * from './LayerInfo';
|
|
1
|
+
export * from './Legend';
|
|
2
|
+
export * from './MapDraw';
|
|
3
|
+
export * from './MapDrawTool';
|
|
4
|
+
export * from './ReactMapView';
|
|
5
|
+
export * from './ReactMapView/utils';
|
|
6
|
+
export * from './ReactMapView/ReactMapViewParseLayer';
|
|
7
|
+
export * from './MapView';
|
|
8
|
+
export * from './MapTime';
|
|
9
|
+
export * from './MapControls';
|
|
10
|
+
export * from './MapWarning';
|
|
11
|
+
export * from './MapDimensionSelect';
|
|
12
|
+
export * from './LayerInfo';
|
package/src/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './components';
|
|
2
|
-
export * from './layers';
|
|
3
|
-
export { WEBMAP_REACT_NAMESPACE } from './utils/i18n';
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './layers';
|
|
3
|
+
export { WEBMAP_REACT_NAMESPACE } from './utils/i18n';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
-
export declare const baseLayerGrey: {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
layerType: LayerType;
|
|
7
|
-
};
|
|
8
|
-
export declare const overLayer: {
|
|
9
|
-
service: string;
|
|
10
|
-
name: string;
|
|
11
|
-
format: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
id: string;
|
|
14
|
-
layerType: LayerType;
|
|
15
|
-
};
|
|
1
|
+
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
+
export declare const baseLayerGrey: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
layerType: LayerType;
|
|
7
|
+
};
|
|
8
|
+
export declare const overLayer: {
|
|
9
|
+
service: string;
|
|
10
|
+
name: string;
|
|
11
|
+
format: string;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
layerType: LayerType;
|
|
15
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const initialBbox: {
|
|
2
|
-
srs: "EPSG:3857";
|
|
3
|
-
bbox: {
|
|
4
|
-
left: number;
|
|
5
|
-
bottom: number;
|
|
6
|
-
right: number;
|
|
7
|
-
top: number;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
export declare const initialBbox: {
|
|
2
|
+
srs: "EPSG:3857";
|
|
3
|
+
bbox: {
|
|
4
|
+
left: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
right: number;
|
|
7
|
+
top: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * as publicLayers from './publicLayers';
|
|
2
|
-
export * as defaultLayers from './defaultLayers';
|
|
3
|
-
export * as publicServices from './publicServices';
|
|
1
|
+
export * as publicLayers from './publicLayers';
|
|
2
|
+
export * as defaultLayers from './defaultLayers';
|
|
3
|
+
export * as publicServices from './publicServices';
|