@opengeoweb/webmap 9.3.0 → 9.4.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 +2064 -25660
- package/package.json +1 -1
- package/src/lib/components/WMAnimate.d.ts +2 -0
- package/src/lib/components/WMCanvasBuffer.d.ts +4 -0
- package/src/lib/components/WMConstants.d.ts +1 -0
- package/src/lib/components/WMImageStore.d.ts +2 -2
- package/src/lib/components/WMJSMap.d.ts +4 -9
- package/src/lib/components/WMJSMapHelpers.d.ts +2 -1
- package/src/lib/components/WMJSTools.d.ts +1 -1
- package/src/lib/components/WMPrefetch.d.ts +1 -1
- package/src/lib/components/index.d.ts +1 -2
- package/src/lib/utils/tilesettings.d.ts +2 -1
package/package.json
CHANGED
|
@@ -6,6 +6,8 @@ export default class WMJSAnimate {
|
|
|
6
6
|
private _callBack;
|
|
7
7
|
private _imageStore;
|
|
8
8
|
private isNextTimeCloseToWallClockTime;
|
|
9
|
+
private animationTimer;
|
|
10
|
+
private animateBusy;
|
|
9
11
|
constructor(_map: WMJSMap);
|
|
10
12
|
isCurrentAnimationTimeCloseToWallClockTime(): boolean;
|
|
11
13
|
loopAnimation(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import WMImage from './WMImage';
|
|
2
3
|
import WMImageStore from './WMImageStore';
|
|
3
4
|
import WMBBOX from './WMBBOX';
|
|
@@ -80,6 +81,8 @@ export default class WMCanvasBuffer {
|
|
|
80
81
|
_internalCallbacks: InternalCallback;
|
|
81
82
|
srs: string;
|
|
82
83
|
bbox: WMBBOX;
|
|
84
|
+
animationFrameRequest: number;
|
|
85
|
+
timerHandle: NodeJS.Timeout;
|
|
83
86
|
_errorList: LinkedInfo[];
|
|
84
87
|
constructor(webmapJSCallback: WMListener, _imageStore: WMImageStore, w: number, h: number, internalCallbacks: InternalCallback);
|
|
85
88
|
getCanvasContext(): CanvasRenderingContext2D;
|
|
@@ -96,6 +99,7 @@ export default class WMCanvasBuffer {
|
|
|
96
99
|
reset(): void;
|
|
97
100
|
_drawImage(canvasLayer: CanvasGeoLayer): void;
|
|
98
101
|
display(): void;
|
|
102
|
+
_display(): void;
|
|
99
103
|
finishedLoading(): void;
|
|
100
104
|
resize(w: string, h: string): void;
|
|
101
105
|
/**
|
|
@@ -4,7 +4,7 @@ export declare enum WMImageEventType {
|
|
|
4
4
|
Deleted = 1
|
|
5
5
|
}
|
|
6
6
|
export default class WMImageStore {
|
|
7
|
-
imagesbysrc:
|
|
7
|
+
imagesbysrc: Map<string, WMImage>;
|
|
8
8
|
imageLife: number;
|
|
9
9
|
_imageLifeCounter: number;
|
|
10
10
|
_loadEventCallbackList: Array<{
|
|
@@ -29,7 +29,7 @@ export default class WMImageStore {
|
|
|
29
29
|
/**
|
|
30
30
|
* Check if we have similar images with the same source in the pipeline
|
|
31
31
|
*/
|
|
32
|
-
getImageForSrc(src: string): WMImage;
|
|
32
|
+
getImageForSrc(src: string): WMImage | undefined;
|
|
33
33
|
clear(): void;
|
|
34
34
|
addImageEventCallback(callback: (image: WMImage, id: string, imageEventType: WMImageEventType) => void, id: string): void;
|
|
35
35
|
removeAllEventCallbacks(): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import WMBBOX from './WMBBOX';
|
|
2
2
|
import WMListener from './WMListener';
|
|
3
|
-
import WMTimer from './WMTimer';
|
|
4
3
|
import { proj4 } from './WMJSExternalDependencies';
|
|
5
4
|
import WMJSDimension from './WMJSDimension';
|
|
6
5
|
import MapPin from './WMMapPin';
|
|
7
6
|
import WMLayer from './WMLayer';
|
|
8
|
-
import { AnimationStep, LinkedInfo } from './types';
|
|
7
|
+
import { AnimationStep, Dimension, LinkedInfo } from './types';
|
|
9
8
|
export declare const detectLeftButton: (evt: MouseEvent) => boolean;
|
|
10
9
|
export declare const detectRightButton: (evt: MouseEvent) => boolean;
|
|
11
10
|
export declare const getErrorsToDisplay: (canvasErrors: LinkedInfo[], getLayerByServiceAndName: (layerservice: string, layername: string) => WMLayer) => string[];
|
|
@@ -19,6 +18,7 @@ export default class WMJSMap {
|
|
|
19
18
|
mapdimensions: WMJSDimension[];
|
|
20
19
|
timestepInMinutes: number | undefined;
|
|
21
20
|
stopAnimating: () => void;
|
|
21
|
+
enableAutoPrefetching: boolean;
|
|
22
22
|
showLayerInfo: boolean;
|
|
23
23
|
isAnimating: boolean;
|
|
24
24
|
animationDelay: number;
|
|
@@ -27,8 +27,6 @@ export default class WMJSMap {
|
|
|
27
27
|
currentAnimationStep: number;
|
|
28
28
|
initialAnimationStep: number;
|
|
29
29
|
setAnimationDelay: (delay: number) => void;
|
|
30
|
-
animateBusy: boolean;
|
|
31
|
-
animationTimer: WMTimer;
|
|
32
30
|
mouseHoverAnimationBox: boolean;
|
|
33
31
|
loadingDiv: HTMLElement;
|
|
34
32
|
baseDiv: HTMLElement;
|
|
@@ -86,11 +84,8 @@ export default class WMJSMap {
|
|
|
86
84
|
private canvasErrors;
|
|
87
85
|
private resizeWidth;
|
|
88
86
|
private resizeHeight;
|
|
89
|
-
private _resizeTimerBusy;
|
|
90
|
-
private _resizeTimer;
|
|
91
87
|
private wmAnimate;
|
|
92
88
|
private wmTileRenderer;
|
|
93
|
-
private loadingDivTimer?;
|
|
94
89
|
private mouseWheelBusy;
|
|
95
90
|
private wMFlyToBBox;
|
|
96
91
|
private mouseWheelEventBBOXCurrent;
|
|
@@ -151,7 +146,7 @@ export default class WMJSMap {
|
|
|
151
146
|
/**
|
|
152
147
|
* @param layer of type WMLayer
|
|
153
148
|
*/
|
|
154
|
-
addLayer(layer: WMLayer): Promise<
|
|
149
|
+
addLayer(layer: WMLayer): Promise<WMJSMap>;
|
|
155
150
|
getActiveLayer(): WMLayer;
|
|
156
151
|
/**
|
|
157
152
|
* setProjection
|
|
@@ -196,7 +191,7 @@ export default class WMJSMap {
|
|
|
196
191
|
_onLayersReadyCallbackFunction(): void;
|
|
197
192
|
_onMapReadyCallbackFunction(): void;
|
|
198
193
|
_onResumeSuspendCallbackFunction(): void;
|
|
199
|
-
getWMSRequests(): {
|
|
194
|
+
getWMSRequests(dimensionOverride?: Dimension[]): {
|
|
200
195
|
url: string;
|
|
201
196
|
headers: Headers[];
|
|
202
197
|
}[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type WMJSMap from './WMJSMap';
|
|
2
2
|
import type WMLayer from './WMLayer';
|
|
3
|
+
import type { Dimension } from './types';
|
|
3
4
|
export declare const getBBOXandProjString: (map: WMJSMap, layer: WMLayer) => string;
|
|
4
|
-
export declare const buildWMSGetMapRequest: (map: WMJSMap, layer: WMLayer) => {
|
|
5
|
+
export declare const buildWMSGetMapRequest: (map: WMJSMap, layer: WMLayer, dimensionOverride?: Dimension[]) => {
|
|
5
6
|
url: string;
|
|
6
7
|
headers: Headers[];
|
|
7
8
|
} | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const getMouseYCoordinate: (event: MouseEvent) => number;
|
|
|
38
38
|
export declare const URLDecode: (encodedURL: string) => string;
|
|
39
39
|
export declare const URLEncode: (plaintext: string) => string;
|
|
40
40
|
export declare const getCorrectWMSDimName: (origDimName: string) => string;
|
|
41
|
-
export declare const getMapDimURL: (layer: WMLayer) => string;
|
|
41
|
+
export declare const getMapDimURL: (layer: WMLayer, dimensionOverride?: Dimension[]) => string;
|
|
42
42
|
/**
|
|
43
43
|
* Parses url and then it it allows for setting / changing key value pairs in that URL (From https://stackoverflow.com/questions/5999118/how-can-i-add-or-update-a-query-string-parameter)
|
|
44
44
|
* @param baseUrl
|
|
@@ -4,6 +4,6 @@ type PrefetchRequest = {
|
|
|
4
4
|
url: string;
|
|
5
5
|
headers: Headers[];
|
|
6
6
|
};
|
|
7
|
-
export declare function getLayersImageUrlsForTime(wmMap: WMJSMap, timeToPrefetch: string
|
|
7
|
+
export declare function getLayersImageUrlsForTime(wmMap: WMJSMap, timeToPrefetch: string): PrefetchRequest[];
|
|
8
8
|
export declare function prefetchImagesForNonAnimation(wmMap: WMJSMap, maxImagesToPrefetch?: number): void;
|
|
9
9
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import WMJSMap, { clearImageCache } from './WMJSMap';
|
|
2
2
|
import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam } from './WMJSTools';
|
|
3
|
-
import WMTimer from './WMTimer';
|
|
4
3
|
import WMGetServiceFromStore from './WMGetServiceFromStore';
|
|
5
4
|
import { WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle } from './WMConstants';
|
|
6
5
|
import { parseISO8601DateToDate, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration } from './WMTime';
|
|
@@ -15,6 +14,6 @@ export { default as WMLayer, LayerType } from './WMLayer';
|
|
|
15
14
|
export type { LayerOptions, LayerFoundation } from './WMLayer';
|
|
16
15
|
export { default as WMBBOX } from './WMBBOX';
|
|
17
16
|
export type { Bbox } from './WMBBOX';
|
|
18
|
-
export { WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined,
|
|
17
|
+
export { WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, parseISO8601DateToDate, I18n, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, WMJSService, getMapImageStore, clearImageCache, buildWMSGetMapRequest, getUriWithParam, };
|
|
19
18
|
export * from './types';
|
|
20
19
|
export * from './WMTimeTypes';
|
|
@@ -20,7 +20,8 @@ export declare enum EPSGCode {
|
|
|
20
20
|
EPSG4326 = "EPSG:4326",
|
|
21
21
|
EPSG4258 = "EPSG:4258",
|
|
22
22
|
EPSG3412 = "EPSG:3412",
|
|
23
|
-
EPSG3575 = "EPSG:3575"
|
|
23
|
+
EPSG3575 = "EPSG:3575",
|
|
24
|
+
EPSG3067 = "EPSG:3067"
|
|
24
25
|
}
|
|
25
26
|
type EPSGSettings = {
|
|
26
27
|
[code in EPSGCode]?: TileSettings;
|