@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.
- package/index.esm.js +2843 -5382
- package/package.json +15 -26
- package/src/index.d.ts +0 -10
- package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +3 -3
- package/src/lib/components/MapDrawTool/utils.d.ts +0 -9
- package/src/lib/components/{WebMapMapView/WebMapMapView.Error.stories.d.ts → MapView/MapView.Error.stories.d.ts} +3 -3
- package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +6 -0
- package/src/lib/components/MapView/MapView.Passive.stories.d.ts +6 -0
- package/src/lib/components/MapView/MapView.ProfileSounding.stories.d.ts +6 -0
- package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +6 -0
- package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +6 -0
- package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +6 -0
- package/src/lib/components/{WebMapMapView/WebMapMapView.SetProjectionBBoxLocalState.stories.d.ts → MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts} +3 -3
- package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +6 -0
- package/src/lib/components/{WebMapMapView/WebMapMapView.ShowLayerInfo.stories.d.ts → MapView/MapView.ShowLayerInfo.stories.d.ts} +3 -3
- package/src/lib/components/{OpenLayers/OpenLayersMapView.TiledBaseLayers.stories.d.ts → MapView/MapView.TiledBaseLayers.stories.d.ts} +3 -3
- package/src/lib/components/MapView/MapView.VFXData.stories.d.ts +6 -0
- package/src/lib/components/ReactMapView/types.d.ts +0 -1
- package/src/lib/components/index.d.ts +0 -1
- package/src/lib/hooks/useHooksGetCapabilities.d.ts +1 -1
- package/src/lib/index.d.ts +1 -1
- package/src/lib/layers/publicLayers.d.ts +0 -1
- package/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.d.ts +0 -2
- package/src/lib/components/HoldShiftToZoomMessage/HoldShiftToZoomMessage.spec.d.ts +0 -1
- package/src/lib/components/MapMousePosition/MapMousePosition.d.ts +0 -2
- package/src/lib/components/MapMousePosition/MapMousePosition.spec.d.ts +0 -1
- package/src/lib/components/MapMousePosition/index.d.ts +0 -1
- package/src/lib/components/OpenLayers/OlStyles.d.ts +0 -24
- package/src/lib/components/OpenLayers/OlStyles.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/OpenLayers.BaseLayer.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayers.ClickOnMapTool.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.FeatureLayer.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.GetFeatureInfo.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.HoverFeatureLayer.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayers.Prefetch.stories.d.ts +0 -10
- package/src/lib/components/OpenLayers/OpenLayersConstants.d.ts +0 -2
- package/src/lib/components/OpenLayers/OpenLayersMapView.Error.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.MapPin.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.Passive.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.RadarAnimation.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.RadarData.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBox.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.SetProjectionBBoxLocalState.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.ShiftToZoom.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/OpenLayersMapView.ShowLayerInfo.stories.d.ts +0 -6
- package/src/lib/components/OpenLayers/component/OpenLayersMapView.d.ts +0 -12
- package/src/lib/components/OpenLayers/component/OpenLayersMapView.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/context/MapContext.d.ts +0 -7
- package/src/lib/components/OpenLayers/context/TimeContext.d.ts +0 -7
- package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +0 -8
- package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.d.ts +0 -7
- package/src/lib/components/OpenLayers/controls/OpenLayersZoomControl.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/controls/index.d.ts +0 -2
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +0 -26
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.stories.d.ts +0 -9
- package/src/lib/components/OpenLayers/draw/index.d.ts +0 -1
- package/src/lib/components/OpenLayers/index.d.ts +0 -9
- package/src/lib/components/OpenLayers/layers/DefaultBaseLayers.d.ts +0 -10
- package/src/lib/components/OpenLayers/layers/FeatureLayer.d.ts +0 -11
- package/src/lib/components/OpenLayers/layers/GeoJSONLayer.d.ts +0 -11
- package/src/lib/components/OpenLayers/layers/MapViewLayerToOpenLayer.d.ts +0 -22
- package/src/lib/components/OpenLayers/layers/TiledWMSLayer.d.ts +0 -12
- package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.d.ts +0 -19
- package/src/lib/components/OpenLayers/layers/TimeawareImageSourceWMSLayer.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/layers/WMSLayer.d.ts +0 -11
- package/src/lib/components/OpenLayers/layers/WMTSLayer.d.ts +0 -11
- package/src/lib/components/OpenLayers/layers/XYZLayer.d.ts +0 -9
- package/src/lib/components/OpenLayers/layers/index.d.ts +0 -8
- package/src/lib/components/OpenLayers/storyComponents/OlStoryLayout.d.ts +0 -10
- package/src/lib/components/OpenLayers/storyComponents/index.d.ts +0 -1
- package/src/lib/components/OpenLayers/styles/useIconStyle.d.ts +0 -21
- package/src/lib/components/OpenLayers/tools/ClickOnMapTool.d.ts +0 -10
- package/src/lib/components/OpenLayers/types/Timespan.d.ts +0 -9
- package/src/lib/components/OpenLayers/types/WorkerQueue.d.ts +0 -6
- package/src/lib/components/OpenLayers/utils/ShowTimeAwareLayerInfo.d.ts +0 -12
- package/src/lib/components/OpenLayers/utils/TimeAwareImageWrapper.d.ts +0 -42
- package/src/lib/components/OpenLayers/utils/TimeawareImageSource.d.ts +0 -50
- package/src/lib/components/OpenLayers/utils/WorkerQueue.d.ts +0 -14
- package/src/lib/components/OpenLayers/utils/constants.d.ts +0 -6
- package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.d.ts +0 -16
- package/src/lib/components/OpenLayers/utils/makeDimValuesToPrefetch.spec.d.ts +0 -1
- package/src/lib/components/OpenLayers/utils/projections.d.ts +0 -1
- package/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +0 -2
- package/src/lib/components/OpenLayers/utils/types.d.ts +0 -11
- 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.ShiftToZoom.stories.d.ts +0 -6
- package/src/lib/components/WebMapMapView/WebMapMapView.TiledBaseLayers.stories.d.ts +0 -17
- package/src/lib/components/WebMapMapView/WebMapMapView.d.ts +0 -9
- package/src/lib/components/WebMapMapView/WebMapMapView.spec.d.ts +0 -1
- package/src/lib/components/WebMapMapView/WebMapMapViewLayer.d.ts +0 -16
- package/src/lib/components/WebMapMapView/index.d.ts +0 -2
- package/src/lib/hooks/index.d.ts +0 -2
- package/src/lib/hooks/useAnimationForLayer.d.ts +0 -3
- package/src/lib/hooks/useSetInterValWhenVisible.d.ts +0 -1
- package/src/lib/hooks/useViewFromLayerById.d.ts +0 -7
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
2
|
-
import type { OnInitializeLayerProps } from '../utils/types';
|
|
3
|
-
import { DrawModeExitCallback, FeatureEvent } from '../../MapDraw';
|
|
4
|
-
export interface MapViewLayerToOpenLayerProps extends LayerFoundation {
|
|
5
|
-
zIndex?: number;
|
|
6
|
-
isOverlay?: boolean;
|
|
7
|
-
isBaseLayer?: boolean;
|
|
8
|
-
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
9
|
-
onLayerReady?: (layerId: string) => void;
|
|
10
|
-
onLayerError?: (layerId: string, message: string) => void;
|
|
11
|
-
debugMode?: boolean;
|
|
12
|
-
id: string;
|
|
13
|
-
isInEditMode?: boolean;
|
|
14
|
-
drawMode?: string;
|
|
15
|
-
updateGeojson?: (geoJson: GeoJSON.FeatureCollection, reason: string) => void;
|
|
16
|
-
exitDrawModeCallback?: (reason: DrawModeExitCallback, newGeoJSON?: GeoJSON.FeatureCollection) => void;
|
|
17
|
-
selectedFeatureIndex?: number;
|
|
18
|
-
onClickFeature?: (event?: FeatureEvent) => void;
|
|
19
|
-
onHoverFeature?: (event: FeatureEvent) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare const MapViewLayerToOpenLayer: (layerProps: MapViewLayerToOpenLayerProps) => React.ReactElement;
|
|
22
|
-
export declare const OpenLayersLayer: (layerProps: MapViewLayerToOpenLayerProps) => React.ReactElement;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ImageLayer from 'ol/layer/Image';
|
|
3
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
-
export interface TiledWMSLayerProps {
|
|
5
|
-
url: string;
|
|
6
|
-
layerName: string;
|
|
7
|
-
styleName: string;
|
|
8
|
-
projection?: string;
|
|
9
|
-
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
10
|
-
layerProps?: LayerFoundation;
|
|
11
|
-
}
|
|
12
|
-
export declare const TiledWMSLayer: React.FC<TiledWMSLayerProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ImageLayer from 'ol/layer/Image';
|
|
3
|
-
import { Dimension } from '@opengeoweb/webmap';
|
|
4
|
-
import type { OnInitializeLayerProps } from '../utils/types';
|
|
5
|
-
interface TimeawareImageSourceWMSLayerProps {
|
|
6
|
-
layerId?: string;
|
|
7
|
-
getCapsURL: string;
|
|
8
|
-
layerName: string;
|
|
9
|
-
styleName?: string;
|
|
10
|
-
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
11
|
-
dimensions?: Dimension[];
|
|
12
|
-
visible?: boolean;
|
|
13
|
-
onInitializeLayer?: (payload: OnInitializeLayerProps) => void;
|
|
14
|
-
onLayerReady?: (layerId: string) => void;
|
|
15
|
-
onLayerError?: (layerId: string, message: string) => void;
|
|
16
|
-
debugMode?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare const TimeawareImageSourceWMSLayer: React.FC<TimeawareImageSourceWMSLayerProps>;
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ImageLayer from 'ol/layer/Image';
|
|
3
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
-
export interface WMSLayerProps {
|
|
5
|
-
url: string;
|
|
6
|
-
layerName: string;
|
|
7
|
-
styleName: string;
|
|
8
|
-
layerOptions: ConstructorParameters<typeof ImageLayer>[0];
|
|
9
|
-
layerProps?: LayerFoundation;
|
|
10
|
-
}
|
|
11
|
-
export declare const WMSLayer: React.FC<WMSLayerProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import TileLayer from 'ol/layer/Tile';
|
|
3
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
-
export interface WMTSLayerProps {
|
|
5
|
-
getCapsURL: string;
|
|
6
|
-
layerName: string;
|
|
7
|
-
tileMatrixSet: string;
|
|
8
|
-
layerOptions: ConstructorParameters<typeof TileLayer>[0];
|
|
9
|
-
layerProps?: LayerFoundation;
|
|
10
|
-
}
|
|
11
|
-
export declare const WMTSLayer: React.FC<WMTSLayerProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import TileLayer from 'ol/layer/Tile';
|
|
3
|
-
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
-
export interface XYZLayerProps {
|
|
5
|
-
urlTemplate: string;
|
|
6
|
-
layerOptions: ConstructorParameters<typeof TileLayer>[0];
|
|
7
|
-
layerProps?: LayerFoundation;
|
|
8
|
-
}
|
|
9
|
-
export declare const XYZLayer: React.FC<XYZLayerProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './TimeawareImageSourceWMSLayer';
|
|
2
|
-
export * from './WMSLayer';
|
|
3
|
-
export * from './WMTSLayer';
|
|
4
|
-
export * from './XYZLayer';
|
|
5
|
-
export * from './DefaultBaseLayers';
|
|
6
|
-
export * from './MapViewLayerToOpenLayer';
|
|
7
|
-
export * from './FeatureLayer';
|
|
8
|
-
export * from './GeoJSONLayer';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawModeExitCallback } from '../../MapDraw';
|
|
3
|
-
import { MapViewLayerToOpenLayerProps } from '../layers';
|
|
4
|
-
interface OlStoryLayoutProps {
|
|
5
|
-
layers: MapViewLayerToOpenLayerProps[];
|
|
6
|
-
children: React.ReactElement;
|
|
7
|
-
onExitDrawMode: (reason: DrawModeExitCallback) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const OlStoryLayout: React.FC<OlStoryLayoutProps>;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './OlStoryLayout';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Style } from 'ol/style';
|
|
2
|
-
import { Options } from 'ol/style/Icon';
|
|
3
|
-
interface IconParameters {
|
|
4
|
-
render?: {
|
|
5
|
-
fillStyle?: string | CanvasGradient | CanvasPattern;
|
|
6
|
-
strokeStyle?: string | CanvasGradient | CanvasPattern;
|
|
7
|
-
lineWidth?: number;
|
|
8
|
-
};
|
|
9
|
-
icon?: Omit<Options, 'img'>;
|
|
10
|
-
}
|
|
11
|
-
interface UseIconStyleProps {
|
|
12
|
-
svgPath: string;
|
|
13
|
-
options: IconParameters;
|
|
14
|
-
}
|
|
15
|
-
interface IconStyle {
|
|
16
|
-
icon: Style;
|
|
17
|
-
}
|
|
18
|
-
export declare const deBiltTower: Style;
|
|
19
|
-
export declare const createIconStyle: ((svgPath: string, options: IconParameters) => Style) & import("lodash").MemoizedFunction;
|
|
20
|
-
export declare const useIconStyle: ({ svgPath, options, }: UseIconStyleProps) => IconStyle;
|
|
21
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StyleLike } from 'ol/style/Style';
|
|
3
|
-
export interface ClickOnMapToolProps {
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
isVisible: boolean;
|
|
6
|
-
layerZIndex?: number;
|
|
7
|
-
pointStyle: StyleLike;
|
|
8
|
-
pointSelected: (coords: number[]) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const ClickOnMapTool: React.FC<ClickOnMapToolProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WMLayer } from '@opengeoweb/webmap';
|
|
3
|
-
import ImageLayer from 'ol/layer/Image';
|
|
4
|
-
import { TimeawareImageSource } from './TimeawareImageSource';
|
|
5
|
-
export interface ShowTimeAwareLayerInfoProps {
|
|
6
|
-
wmLayer: WMLayer;
|
|
7
|
-
stepsToCheck: number[];
|
|
8
|
-
layer: ImageLayer<TimeawareImageSource>;
|
|
9
|
-
zIndex: number;
|
|
10
|
-
visible: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const ShowTimeAwareLayerInfo: React.FC<ShowTimeAwareLayerInfoProps>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Extent } from 'ol/extent';
|
|
2
|
-
import ImageWrapper from 'ol/Image';
|
|
3
|
-
import { Projection } from 'ol/proj';
|
|
4
|
-
import { WMImageStore } from '@opengeoweb/webmap';
|
|
5
|
-
export declare const openLayersGetMapImageStore: WMImageStore;
|
|
6
|
-
interface TimeAwareGeoreferencedImageSrc {
|
|
7
|
-
src: string;
|
|
8
|
-
extent: Extent;
|
|
9
|
-
resolution: number;
|
|
10
|
-
}
|
|
11
|
-
interface TimeAwareGeoreferencedImage {
|
|
12
|
-
el: HTMLImageElement;
|
|
13
|
-
extent: Extent;
|
|
14
|
-
resolution: number;
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
hasError: boolean;
|
|
17
|
-
isLoadedWithoutErrors: boolean;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare class TimeAwareImageWrapper extends ImageWrapper {
|
|
21
|
-
private _extentToLoad;
|
|
22
|
-
private _resolutionToLoad;
|
|
23
|
-
private _pixelRatioToLoad;
|
|
24
|
-
private _paramsToLoad;
|
|
25
|
-
private _dimPropsToLoad;
|
|
26
|
-
private _getMapUrl;
|
|
27
|
-
private projection;
|
|
28
|
-
private _resolvers;
|
|
29
|
-
private _styleName;
|
|
30
|
-
private _layerName;
|
|
31
|
-
constructor(extent: Extent, resolution: number, pixelRatio: number);
|
|
32
|
-
getWMSGetMapRequestURL(extentToLoad: Extent, resolutionToLoad: number, __pixelRatio: number, projection: Projection | null, getMapUrl: string | null, params: Record<string, string>, layerName: string | null, styleName: string, dimProps: Record<string, string>): TimeAwareGeoreferencedImageSrc;
|
|
33
|
-
getAlternativeImage(extent: Extent, resolution: number, pixelRatio: number, projection: Projection, getMapUrl: string, params: Record<string, string>, layerName: string, styleName: string, dimsProps: Record<string, string>): TimeAwareGeoreferencedImage | false;
|
|
34
|
-
hasImage(extent: Extent, resolution: number, pixelRatio: number, projection: Projection, getMapUrl: string, params: Record<string, string>, layerName: string, styleName: string, dimsProps: Record<string, string>): TimeAwareGeoreferencedImage | false;
|
|
35
|
-
setGeoReferencedImage(image: TimeAwareGeoreferencedImage): void;
|
|
36
|
-
load(): void;
|
|
37
|
-
setState(state: number): void;
|
|
38
|
-
private _rejectAll;
|
|
39
|
-
private _resolveAll;
|
|
40
|
-
loadAndResolve(extentToLoad: Extent, resolutionToLoad: number, pixelRatio: number, projection: Projection, getMapUrl: string, params: Record<string, string>, layerName: string, styleName: string, dimProps: Record<string, string>): Promise<void>;
|
|
41
|
-
}
|
|
42
|
-
export default TimeAwareImageWrapper;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Extent } from 'ol/extent';
|
|
2
|
-
import ImageWrapper from 'ol/Image';
|
|
3
|
-
import { Projection } from 'ol/proj';
|
|
4
|
-
import ImageSource from 'ol/source/Image';
|
|
5
|
-
import TimeAwareImageWrapper from './TimeAwareImageWrapper';
|
|
6
|
-
export declare const initImageWrapper: () => TimeAwareImageWrapper;
|
|
7
|
-
interface TimeawareImageSourceOptions {
|
|
8
|
-
wmsUrl: string;
|
|
9
|
-
params?: Record<string, string>;
|
|
10
|
-
layerName: string;
|
|
11
|
-
dimProps?: Record<string, string>;
|
|
12
|
-
styleName?: string | undefined;
|
|
13
|
-
timeStampsToPrefetch?: string[];
|
|
14
|
-
visible?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class TimeawareImageSource extends ImageSource {
|
|
17
|
-
private _wmsUrl;
|
|
18
|
-
private _extraWMSParams;
|
|
19
|
-
private _timeStampsToPrefetch;
|
|
20
|
-
private _prefetchWorkers;
|
|
21
|
-
private _wantedExtent;
|
|
22
|
-
private _wantedResolution;
|
|
23
|
-
private _previousPrefetchExtent;
|
|
24
|
-
private _dimProperties;
|
|
25
|
-
private _imWrapperEmptyButLoading;
|
|
26
|
-
private _imWrapperForOlSource;
|
|
27
|
-
private _imWrapperForAltImage;
|
|
28
|
-
private _styleName;
|
|
29
|
-
private _layerName;
|
|
30
|
-
private debouncedPrefetch;
|
|
31
|
-
private _wantedPixelRatio;
|
|
32
|
-
private _wantedProjection;
|
|
33
|
-
private _imWrapperForPrefetch;
|
|
34
|
-
constructor({ wmsUrl, timeStampsToPrefetch, layerName, styleName, dimProps, params, visible, }: TimeawareImageSourceOptions);
|
|
35
|
-
private prefetch;
|
|
36
|
-
triggerPrefetch(extent: Extent, resolution: number, pixelRatio: number, projection: Projection): void;
|
|
37
|
-
getImage(extent: Extent, resolution: number, pixelRatio: number, projection: Projection): ImageWrapper;
|
|
38
|
-
setDimProps(params: Record<string, string>): void;
|
|
39
|
-
/**
|
|
40
|
-
* Check if an image is available and loaded for requested date.
|
|
41
|
-
* @param timeStampsToPrefetch
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
hasImageForTimeValue(timeStampsToPrefetch: string): boolean;
|
|
45
|
-
loadImageForTimeValue(timeStampsToPrefetch: string): void;
|
|
46
|
-
setStyle(styleName: string): void;
|
|
47
|
-
setLayerName(layerName: string): void;
|
|
48
|
-
setTimeValuesValuesToPrefetch(timeStampsToPrefetch: string[]): void;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WorkerQueueJob } from '../types/WorkerQueue';
|
|
2
|
-
export declare class WorkerQueue {
|
|
3
|
-
maxConcurrency: number;
|
|
4
|
-
tasksInProcess: WorkerQueueJob[];
|
|
5
|
-
taskQueue: WorkerQueueJob[];
|
|
6
|
-
private disposed;
|
|
7
|
-
constructor(concurrency: number);
|
|
8
|
-
dispose(): void;
|
|
9
|
-
ensureWork(): void;
|
|
10
|
-
clearJobs(): void;
|
|
11
|
-
addJobs(work: WorkerQueueJob[]): void;
|
|
12
|
-
addJobsWithoutReorder(work: WorkerQueueJob[]): void;
|
|
13
|
-
private _startJob;
|
|
14
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const MAX_NUMBER_TO_PREFETCH = 200;
|
|
2
|
-
export declare const MAX_NUMBER_STEPS_IN_TIMESLIDER_TO_PREFETCH = 10000;
|
|
3
|
-
export declare const NUMBER_PREFETCH_WORKERS = 4;
|
|
4
|
-
export declare const NUM_IMAGES_TO_CACHE = 10000;
|
|
5
|
-
export declare const WMS_EXTENT_RATIO_TO_VIEWPORT = 1.2;
|
|
6
|
-
export declare const TIMEAWAREIMAGEWRAPPER_IMAGEDIDNOTLOADSUCCESFULLY = "Image did not load succesfully";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { WMJSDimension, Dimension, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import { Timespan } from '../types/Timespan';
|
|
3
|
-
export declare const makeDimValuesToPrefetch: (wmTimeDim: WMJSDimension, stepsToCheck: number[], isAnimating: boolean) => string[];
|
|
4
|
-
export declare const getDimensionParamsForWMS: (dimensions: Dimension[] | undefined, wmLayer: WMLayer | null) => Record<string, string>;
|
|
5
|
-
/**
|
|
6
|
-
* Calculates number of timesteps for given timespan
|
|
7
|
-
* @param timespan Object of Timespan, with start/stop/end in milliseconds
|
|
8
|
-
* @returns Timestams array in milliseconds
|
|
9
|
-
*/
|
|
10
|
-
export declare const getTimeStepsToCheck: (timespan: Timespan) => number[];
|
|
11
|
-
/**
|
|
12
|
-
* React Hook for calculating the number of timesteps for given timespan
|
|
13
|
-
* @param timespan Object of Timespan, with start/stop/end in milliseconds
|
|
14
|
-
* @returns Timestams array in milliseconds
|
|
15
|
-
*/
|
|
16
|
-
export declare const useGetTimeStepsToCheck: (timespan: Timespan) => number[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const initializeOpenlayersProjections: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Feature } from 'ol';
|
|
2
|
-
import { Dimension } from '@opengeoweb/webmap';
|
|
3
|
-
export interface HoverSelect {
|
|
4
|
-
active: boolean;
|
|
5
|
-
onHover?: (f: Feature | undefined) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface OnInitializeLayerProps {
|
|
8
|
-
layerId: string;
|
|
9
|
-
style: string;
|
|
10
|
-
dimensions: Dimension[];
|
|
11
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { WebMapMapView } from './WebMapMapView';
|
|
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 { WebMapMapView } from './WebMapMapView';
|
|
3
|
-
declare const meta: Meta<typeof WebMapMapView>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof WebMapMapView>;
|
|
6
|
-
export declare const MapViewRadar: Story;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { WebMapMapView } from './WebMapMapView';
|
|
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;
|
|
@@ -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 WebMapMapView: 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 WebMapMapViewLayer: React.FC<MapViewLayerProps>;
|
package/src/lib/hooks/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Dimension } from '@opengeoweb/webmap';
|
|
2
|
-
import { MapViewLayerToOpenLayerProps } from '../components/OpenLayers/layers';
|
|
3
|
-
export declare const useAnimationForLayer: (layerProps: MapViewLayerToOpenLayerProps, intervalInMs: number, numStepsTillLatest?: number, checkForUpdatesMs?: number) => Dimension[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useSetIntervalWhenVisible: (autoUpdate: () => void, refetchInterval: number, shouldAutoFetch?: boolean) => void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { View } from 'ol';
|
|
2
|
-
import { MapViewLayerToOpenLayerProps } from '../components/OpenLayers/layers';
|
|
3
|
-
export declare const useViewFromLayer: (layerProps: MapViewLayerToOpenLayerProps, baseView?: {
|
|
4
|
-
projection: string;
|
|
5
|
-
zoom: number;
|
|
6
|
-
center: number[];
|
|
7
|
-
}) => View;
|