@opengeoweb/webmap 9.28.1 → 9.29.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 +709 -714
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/components/IWMJSMap.d.ts +315 -315
- package/src/lib/components/WMAnimate.d.ts +14 -14
- package/src/lib/components/WMAnimate.spec.d.ts +1 -1
- package/src/lib/components/WMBBOX.d.ts +31 -31
- package/src/lib/components/WMBBOX.spec.d.ts +1 -1
- package/src/lib/components/WMCanvasBuffer.d.ts +123 -123
- package/src/lib/components/WMCanvasBuffer.spec.d.ts +1 -1
- package/src/lib/components/WMCanvasDrawFunctions.d.ts +11 -11
- package/src/lib/components/WMConstants.d.ts +19 -19
- package/src/lib/components/WMDrawMarker.d.ts +2 -2
- package/src/lib/components/WMDrawMarker.spec.d.ts +1 -1
- package/src/lib/components/WMFlyToBBox.d.ts +25 -25
- package/src/lib/components/WMFlyToBBox.spec.d.ts +1 -1
- package/src/lib/components/WMGetServiceFromStore.d.ts +3 -3
- package/src/lib/components/WMGlobals.d.ts +8 -8
- package/src/lib/components/WMImage.d.ts +97 -97
- package/src/lib/components/WMImage.spec.d.ts +1 -1
- package/src/lib/components/WMImageStore.d.ts +44 -44
- package/src/lib/components/WMImageStore.spec.d.ts +1 -1
- package/src/lib/components/WMJSDimension.d.ts +112 -112
- package/src/lib/components/WMJSDimension.spec.d.ts +1 -1
- package/src/lib/components/WMJSExternalDependencies.d.ts +2 -2
- package/src/lib/components/WMJSMap.d.ts +222 -220
- package/src/lib/components/WMJSMap.spec.d.ts +1 -1
- package/src/lib/components/WMJSMapHelpers.d.ts +59 -58
- package/src/lib/components/WMJSMapHelpers.spec.d.ts +1 -1
- package/src/lib/components/WMJSService.d.ts +69 -69
- package/src/lib/components/WMJSService.spec.d.ts +1 -1
- package/src/lib/components/WMJSTools.d.ts +100 -100
- package/src/lib/components/WMJSTools.spec.d.ts +1 -1
- package/src/lib/components/WMLayer.d.ts +194 -194
- package/src/lib/components/WMLayer.spec.d.ts +1 -1
- package/src/lib/components/WMLegend.d.ts +6 -6
- package/src/lib/components/WMLegend.spec.d.ts +1 -1
- package/src/lib/components/WMListener.d.ts +57 -57
- package/src/lib/components/WMListener.spec.d.ts +1 -1
- package/src/lib/components/WMMapPin.d.ts +31 -31
- package/src/lib/components/WMMemo.d.ts +5 -5
- package/src/lib/components/WMMemo.spec.d.ts +1 -1
- package/src/lib/components/WMPrefetch.d.ts +9 -9
- package/src/lib/components/WMPrefetch.spec.d.ts +1 -1
- package/src/lib/components/WMProjection.d.ts +16 -16
- package/src/lib/components/WMTileRenderer.d.ts +7 -7
- package/src/lib/components/WMTileRenderer.spec.d.ts +1 -1
- package/src/lib/components/WMTime.d.ts +43 -43
- package/src/lib/components/WMTime.spec.d.ts +1 -1
- package/src/lib/components/WMTimeTypes.d.ts +19 -19
- package/src/lib/components/WMTimer.d.ts +11 -11
- package/src/lib/components/WMTimer.spec.d.ts +1 -1
- package/src/lib/components/WMXMLParser.d.ts +9 -9
- package/src/lib/components/WMXMLParser.spec.d.ts +1 -1
- package/src/lib/components/index.d.ts +24 -24
- package/src/lib/components/types.d.ts +174 -174
- package/src/lib/index.d.ts +5 -5
- package/src/lib/utils/consoleErrorMessages.d.ts +11 -11
- package/src/lib/utils/fakeMaxAgeResponses.d.ts +1 -1
- package/src/lib/utils/getCapabilities/getCapabilities.d.ts +18 -18
- package/src/lib/utils/getCapabilities/getCapabilities.spec.d.ts +1 -1
- package/src/lib/utils/getCapabilities/index.d.ts +2 -2
- package/src/lib/utils/getCapabilities/mocks/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +1 -1
- package/src/lib/utils/getCapabilities/mocks/index.d.ts +89 -89
- package/src/lib/utils/getCapabilities/mocks/mockGetCapabilities.d.ts +87 -87
- package/src/lib/utils/i18n.d.ts +4 -2
- package/src/lib/utils/index.d.ts +9 -9
- package/src/lib/utils/mapConstants.d.ts +7 -7
- package/src/lib/utils/specs/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -2
- package/src/lib/utils/specs/WMS130GetCapabilitiesHarmN25.d.ts +2 -2
- package/src/lib/utils/specs/WMS130GetCapabilitiesRadarTestWithInheritAndReplaceLayerprops.d.ts +2 -2
- package/src/lib/utils/specs/WMS130GetCapabilitiesRadarTestWithInheritLayerprops.d.ts +2 -2
- package/src/lib/utils/specs/WMS130GetCapabilitiesRadarTestWithoutInheritLayerprops.d.ts +2 -2
- package/src/lib/utils/specs/WMSSmartMet.d.ts +2 -2
- package/src/lib/utils/testSettings.d.ts +14 -14
- package/src/lib/utils/testUtils.d.ts +21 -21
- package/src/lib/utils/tilesettings.d.ts +26 -26
- package/src/lib/utils/utils.d.ts +56 -56
- package/src/lib/utils/utils.spec.d.ts +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export interface Bbox {
|
|
2
|
-
left: number;
|
|
3
|
-
right: number;
|
|
4
|
-
top: number;
|
|
5
|
-
bottom: number;
|
|
6
|
-
}
|
|
7
|
-
export default class WMBBOX implements Bbox {
|
|
8
|
-
left: number;
|
|
9
|
-
bottom: number;
|
|
10
|
-
right: number;
|
|
11
|
-
top: number;
|
|
12
|
-
constructor(left?: number | string | Bbox, bottom?: number, right?: number, top?: number);
|
|
13
|
-
/**
|
|
14
|
-
* Clone an existing BBOX
|
|
15
|
-
*/
|
|
16
|
-
clone(): WMBBOX;
|
|
17
|
-
copy(bbox: WMBBOX): void;
|
|
18
|
-
/**
|
|
19
|
-
* setBBOX method
|
|
20
|
-
* Creates a WebMapJS bounding box based on 4 numeric values
|
|
21
|
-
* Creates a WebMapJS bounding box based on 1 string with commaseparated numeric values
|
|
22
|
-
* Creates a WebMapJS bounding box based on an exisiting WebMapJS bounding box.
|
|
23
|
-
* When no parameters are given, a global latlon bbox is generated.
|
|
24
|
-
*/
|
|
25
|
-
setBBOX(left?: number | string | Bbox, bottom?: number, right?: number, top?: number): void;
|
|
26
|
-
equals(left: number | string | WMBBOX | Bbox, bottom: number, right: number, top: number): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the current BBOX as a string, useful for generating WMS requests.
|
|
29
|
-
*/
|
|
30
|
-
toString(): string;
|
|
31
|
-
}
|
|
1
|
+
export interface Bbox {
|
|
2
|
+
left: number;
|
|
3
|
+
right: number;
|
|
4
|
+
top: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
}
|
|
7
|
+
export default class WMBBOX implements Bbox {
|
|
8
|
+
left: number;
|
|
9
|
+
bottom: number;
|
|
10
|
+
right: number;
|
|
11
|
+
top: number;
|
|
12
|
+
constructor(left?: number | string | Bbox, bottom?: number, right?: number, top?: number);
|
|
13
|
+
/**
|
|
14
|
+
* Clone an existing BBOX
|
|
15
|
+
*/
|
|
16
|
+
clone(): WMBBOX;
|
|
17
|
+
copy(bbox: WMBBOX): void;
|
|
18
|
+
/**
|
|
19
|
+
* setBBOX method
|
|
20
|
+
* Creates a WebMapJS bounding box based on 4 numeric values
|
|
21
|
+
* Creates a WebMapJS bounding box based on 1 string with commaseparated numeric values
|
|
22
|
+
* Creates a WebMapJS bounding box based on an exisiting WebMapJS bounding box.
|
|
23
|
+
* When no parameters are given, a global latlon bbox is generated.
|
|
24
|
+
*/
|
|
25
|
+
setBBOX(left?: number | string | Bbox, bottom?: number, right?: number, top?: number): void;
|
|
26
|
+
equals(left: number | string | WMBBOX | Bbox, bottom: number, right: number, top: number): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the current BBOX as a string, useful for generating WMS requests.
|
|
29
|
+
*/
|
|
30
|
+
toString(): string;
|
|
31
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import WMBBOX from './WMBBOX';
|
|
2
|
-
import { LinkedInfo, LinkedInfoContent } from './types';
|
|
3
|
-
import type IWMJSMap from './IWMJSMap';
|
|
4
|
-
export type SharedImageListType = Record<string, CanvasGeoLayer[]>;
|
|
5
|
-
interface CanvasBufferCallbacks {
|
|
6
|
-
beforecanvasstartdraw?: (context: CanvasRenderingContext2D) => void;
|
|
7
|
-
beforecanvasdisplay?: (context: CanvasRenderingContext2D) => void;
|
|
8
|
-
canvasonerror?: (e: LinkedInfo[]) => void;
|
|
9
|
-
aftercanvasdisplay?: (c: CanvasRenderingContext2D) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface CanvasBBOX {
|
|
12
|
-
left: number;
|
|
13
|
-
right: number;
|
|
14
|
-
top: number;
|
|
15
|
-
bottom: number;
|
|
16
|
-
}
|
|
17
|
-
export interface CanvasGeoLayer {
|
|
18
|
-
intersect: number;
|
|
19
|
-
areaFractionClosest: number;
|
|
20
|
-
areaFraction: number;
|
|
21
|
-
bbox: CanvasBBOX;
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
|
-
opacity: number;
|
|
25
|
-
imageAge: number;
|
|
26
|
-
imageSource: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Function to find image url's which are similar to other images, without taking width, height and bbox into account
|
|
30
|
-
* @param imageSource The source / url of the image to check
|
|
31
|
-
* @returns A signature for this image, which is the same for images with different bbox and or width/height
|
|
32
|
-
*/
|
|
33
|
-
export declare const makeQueryStringWithoutGeoInfo: (imageSource: string) => string;
|
|
34
|
-
/**
|
|
35
|
-
* Sort the imageslist
|
|
36
|
-
* @param imagesList
|
|
37
|
-
* @returns
|
|
38
|
-
*/
|
|
39
|
-
export declare const getSortedListOfImages: (imagesList: CanvasGeoLayer[], bbox: CanvasBBOX) => void;
|
|
40
|
-
export default class WMCanvasBuffer {
|
|
41
|
-
private canvas;
|
|
42
|
-
private _ctx;
|
|
43
|
-
private _imageStore;
|
|
44
|
-
private _ready;
|
|
45
|
-
private _canvasLayers;
|
|
46
|
-
private _currentnewbbox;
|
|
47
|
-
private _width;
|
|
48
|
-
private _height;
|
|
49
|
-
private _webMapJS;
|
|
50
|
-
private _internalCallbacks;
|
|
51
|
-
private _animationFrameRequest;
|
|
52
|
-
private _timerHandle;
|
|
53
|
-
private _errorList;
|
|
54
|
-
private _isBufferLoading;
|
|
55
|
-
private _onLoadReadyFunction;
|
|
56
|
-
private sharedImagesList;
|
|
57
|
-
constructor(webMapJS: IWMJSMap, w: number, h: number, internalCallbacks: CanvasBufferCallbacks);
|
|
58
|
-
/**
|
|
59
|
-
* Triggered by the WMImageStore when an image completes loading
|
|
60
|
-
* @param image
|
|
61
|
-
*/
|
|
62
|
-
private _imageLoadComplete;
|
|
63
|
-
private _drawCanvasGeoLayer;
|
|
64
|
-
private _display;
|
|
65
|
-
private _finishedLoading;
|
|
66
|
-
private _checkIfLoading;
|
|
67
|
-
private _isImageStoreLoading;
|
|
68
|
-
private _getPixelCoordFromGeoCoord;
|
|
69
|
-
/**
|
|
70
|
-
* Made accessible for testing purposes
|
|
71
|
-
* @returns
|
|
72
|
-
*/
|
|
73
|
-
getSharedImagesList(): SharedImageListType;
|
|
74
|
-
/**
|
|
75
|
-
* Function to find the an alternative available image for an image url that is not yet loaded
|
|
76
|
-
* @param imageUrl The image source / url to find an alternative for
|
|
77
|
-
* @param imageStore The imagestore where the other images are located
|
|
78
|
-
* @param bbox The boundingbox to search this image for
|
|
79
|
-
* @param filterUnsuitableAlternatives When true, images which have an overlap or ratio less then given threshold will be discarded as alternative
|
|
80
|
-
* @returns A canvasLayer, containing the new image source with its geo properties
|
|
81
|
-
*/
|
|
82
|
-
getAlternativeImage(imageUrl: string, bbox: CanvasBBOX, filterUnsuitableAlternatives?: boolean): CanvasGeoLayer[];
|
|
83
|
-
/**
|
|
84
|
-
* Removes the image from the alternative imageslist (in case imagestore cache gets cleaned), this used when the imagestore triggers a delete event for an image
|
|
85
|
-
* @param imageUrl The url for the image to remove
|
|
86
|
-
*/
|
|
87
|
-
removeAlternativeImage(imageUrl: string): void;
|
|
88
|
-
/**
|
|
89
|
-
* Add an image to the sharedimages list
|
|
90
|
-
* @param newLayer A canvaslayer object to add.
|
|
91
|
-
*/
|
|
92
|
-
addAlternativeImage(newLayer: CanvasGeoLayer): void;
|
|
93
|
-
/**
|
|
94
|
-
* Used to tell the canvas that the map is resized,
|
|
95
|
-
* @param w
|
|
96
|
-
* @param h
|
|
97
|
-
* @returns
|
|
98
|
-
*/
|
|
99
|
-
resize(w: string, h: string): void;
|
|
100
|
-
/**
|
|
101
|
-
* Reset when a new set of layers have been added
|
|
102
|
-
*/
|
|
103
|
-
initCanvasLayers(): void;
|
|
104
|
-
/**
|
|
105
|
-
* Set's a layer inside the canvasbuffer with given index and imagesource.
|
|
106
|
-
* The image is directly loaded, but if loading is not complete when drawing, an alternative image is search in the alternative images list
|
|
107
|
-
* @param layerIndex The layer index, similar to z-Index, 0 drawn on the bottom, higher numbers on top
|
|
108
|
-
* @param imageSource The url of the image, usually a GetMap url
|
|
109
|
-
* @param linkedInfo A linkedinfo object to track properties for the image and layer, like errors
|
|
110
|
-
* @param opacity Opacity of this layer
|
|
111
|
-
* @param bbox The boundingbox for this layer
|
|
112
|
-
* @returns Void
|
|
113
|
-
*/
|
|
114
|
-
addLayerToCanvas(layerIndex: number, imageSource: string, linkedInfo: LinkedInfoContent, opacity: number, bbox: WMBBOX): void;
|
|
115
|
-
display(): void;
|
|
116
|
-
setBBOX(newbbox: WMBBOX): void;
|
|
117
|
-
/**
|
|
118
|
-
* Used when the map is destroyed
|
|
119
|
-
*/
|
|
120
|
-
destroy(): void;
|
|
121
|
-
getHTMLCanvasElement(): HTMLCanvasElement;
|
|
122
|
-
}
|
|
123
|
-
export {};
|
|
1
|
+
import WMBBOX from './WMBBOX';
|
|
2
|
+
import { LinkedInfo, LinkedInfoContent } from './types';
|
|
3
|
+
import type IWMJSMap from './IWMJSMap';
|
|
4
|
+
export type SharedImageListType = Record<string, CanvasGeoLayer[]>;
|
|
5
|
+
interface CanvasBufferCallbacks {
|
|
6
|
+
beforecanvasstartdraw?: (context: CanvasRenderingContext2D) => void;
|
|
7
|
+
beforecanvasdisplay?: (context: CanvasRenderingContext2D) => void;
|
|
8
|
+
canvasonerror?: (e: LinkedInfo[]) => void;
|
|
9
|
+
aftercanvasdisplay?: (c: CanvasRenderingContext2D) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface CanvasBBOX {
|
|
12
|
+
left: number;
|
|
13
|
+
right: number;
|
|
14
|
+
top: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
}
|
|
17
|
+
export interface CanvasGeoLayer {
|
|
18
|
+
intersect: number;
|
|
19
|
+
areaFractionClosest: number;
|
|
20
|
+
areaFraction: number;
|
|
21
|
+
bbox: CanvasBBOX;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
opacity: number;
|
|
25
|
+
imageAge: number;
|
|
26
|
+
imageSource: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Function to find image url's which are similar to other images, without taking width, height and bbox into account
|
|
30
|
+
* @param imageSource The source / url of the image to check
|
|
31
|
+
* @returns A signature for this image, which is the same for images with different bbox and or width/height
|
|
32
|
+
*/
|
|
33
|
+
export declare const makeQueryStringWithoutGeoInfo: (imageSource: string) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Sort the imageslist
|
|
36
|
+
* @param imagesList
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const getSortedListOfImages: (imagesList: CanvasGeoLayer[], bbox: CanvasBBOX) => void;
|
|
40
|
+
export default class WMCanvasBuffer {
|
|
41
|
+
private canvas;
|
|
42
|
+
private _ctx;
|
|
43
|
+
private _imageStore;
|
|
44
|
+
private _ready;
|
|
45
|
+
private _canvasLayers;
|
|
46
|
+
private _currentnewbbox;
|
|
47
|
+
private _width;
|
|
48
|
+
private _height;
|
|
49
|
+
private _webMapJS;
|
|
50
|
+
private _internalCallbacks;
|
|
51
|
+
private _animationFrameRequest;
|
|
52
|
+
private _timerHandle;
|
|
53
|
+
private _errorList;
|
|
54
|
+
private _isBufferLoading;
|
|
55
|
+
private _onLoadReadyFunction;
|
|
56
|
+
private sharedImagesList;
|
|
57
|
+
constructor(webMapJS: IWMJSMap, w: number, h: number, internalCallbacks: CanvasBufferCallbacks);
|
|
58
|
+
/**
|
|
59
|
+
* Triggered by the WMImageStore when an image completes loading
|
|
60
|
+
* @param image
|
|
61
|
+
*/
|
|
62
|
+
private _imageLoadComplete;
|
|
63
|
+
private _drawCanvasGeoLayer;
|
|
64
|
+
private _display;
|
|
65
|
+
private _finishedLoading;
|
|
66
|
+
private _checkIfLoading;
|
|
67
|
+
private _isImageStoreLoading;
|
|
68
|
+
private _getPixelCoordFromGeoCoord;
|
|
69
|
+
/**
|
|
70
|
+
* Made accessible for testing purposes
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
getSharedImagesList(): SharedImageListType;
|
|
74
|
+
/**
|
|
75
|
+
* Function to find the an alternative available image for an image url that is not yet loaded
|
|
76
|
+
* @param imageUrl The image source / url to find an alternative for
|
|
77
|
+
* @param imageStore The imagestore where the other images are located
|
|
78
|
+
* @param bbox The boundingbox to search this image for
|
|
79
|
+
* @param filterUnsuitableAlternatives When true, images which have an overlap or ratio less then given threshold will be discarded as alternative
|
|
80
|
+
* @returns A canvasLayer, containing the new image source with its geo properties
|
|
81
|
+
*/
|
|
82
|
+
getAlternativeImage(imageUrl: string, bbox: CanvasBBOX, filterUnsuitableAlternatives?: boolean): CanvasGeoLayer[];
|
|
83
|
+
/**
|
|
84
|
+
* Removes the image from the alternative imageslist (in case imagestore cache gets cleaned), this used when the imagestore triggers a delete event for an image
|
|
85
|
+
* @param imageUrl The url for the image to remove
|
|
86
|
+
*/
|
|
87
|
+
removeAlternativeImage(imageUrl: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* Add an image to the sharedimages list
|
|
90
|
+
* @param newLayer A canvaslayer object to add.
|
|
91
|
+
*/
|
|
92
|
+
addAlternativeImage(newLayer: CanvasGeoLayer): void;
|
|
93
|
+
/**
|
|
94
|
+
* Used to tell the canvas that the map is resized,
|
|
95
|
+
* @param w
|
|
96
|
+
* @param h
|
|
97
|
+
* @returns
|
|
98
|
+
*/
|
|
99
|
+
resize(w: string, h: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* Reset when a new set of layers have been added
|
|
102
|
+
*/
|
|
103
|
+
initCanvasLayers(): void;
|
|
104
|
+
/**
|
|
105
|
+
* Set's a layer inside the canvasbuffer with given index and imagesource.
|
|
106
|
+
* The image is directly loaded, but if loading is not complete when drawing, an alternative image is search in the alternative images list
|
|
107
|
+
* @param layerIndex The layer index, similar to z-Index, 0 drawn on the bottom, higher numbers on top
|
|
108
|
+
* @param imageSource The url of the image, usually a GetMap url
|
|
109
|
+
* @param linkedInfo A linkedinfo object to track properties for the image and layer, like errors
|
|
110
|
+
* @param opacity Opacity of this layer
|
|
111
|
+
* @param bbox The boundingbox for this layer
|
|
112
|
+
* @returns Void
|
|
113
|
+
*/
|
|
114
|
+
addLayerToCanvas(layerIndex: number, imageSource: string, linkedInfo: LinkedInfoContent, opacity: number, bbox: WMBBOX): void;
|
|
115
|
+
display(): void;
|
|
116
|
+
setBBOX(newbbox: WMBBOX): void;
|
|
117
|
+
/**
|
|
118
|
+
* Used when the map is destroyed
|
|
119
|
+
*/
|
|
120
|
+
destroy(): void;
|
|
121
|
+
getHTMLCanvasElement(): HTMLCanvasElement;
|
|
122
|
+
}
|
|
123
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type IWMJSMap from './IWMJSMap';
|
|
2
|
-
interface ScaleBarProps {
|
|
3
|
-
width: number;
|
|
4
|
-
mapHeight: number;
|
|
5
|
-
mapunits: number;
|
|
6
|
-
mapSrs: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const drawTextBG: (ctx: CanvasRenderingContext2D, txt: string, x: number, y: number, fontSize: number) => void;
|
|
9
|
-
export declare const getScaleBarProperties: (map: IWMJSMap) => ScaleBarProps;
|
|
10
|
-
export declare const drawScaleBar: (scaleBarProps: ScaleBarProps, ctx: CanvasRenderingContext2D) => void;
|
|
11
|
-
export {};
|
|
1
|
+
import type IWMJSMap from './IWMJSMap';
|
|
2
|
+
interface ScaleBarProps {
|
|
3
|
+
width: number;
|
|
4
|
+
mapHeight: number;
|
|
5
|
+
mapunits: number;
|
|
6
|
+
mapSrs: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const drawTextBG: (ctx: CanvasRenderingContext2D, txt: string, x: number, y: number, fontSize: number) => void;
|
|
9
|
+
export declare const getScaleBarProperties: (map: IWMJSMap) => ScaleBarProps;
|
|
10
|
+
export declare const drawScaleBar: (scaleBarProps: ScaleBarProps, ctx: CanvasRenderingContext2D) => void;
|
|
11
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export declare const WMEmptyLayerName = "empty_layer";
|
|
2
|
-
export declare const WMEmptyLayerTitle = "empty layer";
|
|
3
|
-
export declare const WMDateOutSideRange = "outside range";
|
|
4
|
-
export declare const WMDateTooEarlyString = "date too early";
|
|
5
|
-
export declare const WMDateTooLateString = "date too late";
|
|
6
|
-
export declare const WMSJSMAP_MINIMUM_MAP_WIDTH = 4;
|
|
7
|
-
export declare const WMSJSMAP_MINIMUM_MAP_HEIGHT = 4;
|
|
8
|
-
export declare const WMSVersion: {
|
|
9
|
-
version100: string;
|
|
10
|
-
version111: string;
|
|
11
|
-
version130: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const WMProj4Defs: string[][];
|
|
14
|
-
export declare const mapImageStoreLength = 1000;
|
|
15
|
-
export declare const bgImageStoreLength = 360;
|
|
16
|
-
export declare const legendImageStoreLength = 500;
|
|
17
|
-
export declare const EVENT_GETCAPABILITIES_START = "onstartgetcapabilities";
|
|
18
|
-
export declare const EVENT_GETCAPABILITIES_READY = "onreadygetcapabilities";
|
|
19
|
-
export declare const WMJSMAP_LONLAT_EPSGCODE: "EPSG:4326";
|
|
1
|
+
export declare const WMEmptyLayerName = "empty_layer";
|
|
2
|
+
export declare const WMEmptyLayerTitle = "empty layer";
|
|
3
|
+
export declare const WMDateOutSideRange = "outside range";
|
|
4
|
+
export declare const WMDateTooEarlyString = "date too early";
|
|
5
|
+
export declare const WMDateTooLateString = "date too late";
|
|
6
|
+
export declare const WMSJSMAP_MINIMUM_MAP_WIDTH = 4;
|
|
7
|
+
export declare const WMSJSMAP_MINIMUM_MAP_HEIGHT = 4;
|
|
8
|
+
export declare const WMSVersion: {
|
|
9
|
+
version100: string;
|
|
10
|
+
version111: string;
|
|
11
|
+
version130: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const WMProj4Defs: string[][];
|
|
14
|
+
export declare const mapImageStoreLength = 1000;
|
|
15
|
+
export declare const bgImageStoreLength = 360;
|
|
16
|
+
export declare const legendImageStoreLength = 500;
|
|
17
|
+
export declare const EVENT_GETCAPABILITIES_START = "onstartgetcapabilities";
|
|
18
|
+
export declare const EVENT_GETCAPABILITIES_READY = "onreadygetcapabilities";
|
|
19
|
+
export declare const WMJSMAP_LONLAT_EPSGCODE: "EPSG:4326";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const WMDrawMarker: (context: CanvasRenderingContext2D, coordx: number, coordy: number, fillColor?: string) => void;
|
|
2
|
-
export default WMDrawMarker;
|
|
1
|
+
declare const WMDrawMarker: (context: CanvasRenderingContext2D, coordx: number, coordy: number, fillColor?: string) => void;
|
|
2
|
+
export default WMDrawMarker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { throttle } from 'throttle-debounce';
|
|
2
|
-
import WMBBOX from './WMBBOX';
|
|
3
|
-
import type WMJSMap from './WMJSMap';
|
|
4
|
-
export default class WMFlyToBBox {
|
|
5
|
-
private wmMap;
|
|
6
|
-
private flyZoomToBBOXTimerStart;
|
|
7
|
-
private flyZoomToBBOXTimerSteps;
|
|
8
|
-
private flyZoomToBBOXTimerLoop?;
|
|
9
|
-
private flyZoomToBBOXDebounced;
|
|
10
|
-
private flyZoomToBBOXScaler;
|
|
11
|
-
private flyZoomToBBOXCurrent;
|
|
12
|
-
flyZoomToBBOXFly: WMBBOX;
|
|
13
|
-
private flyZoomToBBOXNew;
|
|
14
|
-
private flyZoomToBBOXContinueNew;
|
|
15
|
-
private flyZoomToBBOXTimerFuncBusy;
|
|
16
|
-
private flyZoomToBBOXTimerFuncBusyAndContinue;
|
|
17
|
-
constructor(wmMap: WMJSMap);
|
|
18
|
-
flyZoomToBBOXTimerFuncReadyDebounced: () => void;
|
|
19
|
-
flyZoomToBBOXTimerFunc: () => void;
|
|
20
|
-
resetBBoxTimer: () => void;
|
|
21
|
-
flyZoomToBBOXStop: () => void;
|
|
22
|
-
flyZoomToBBOXStartZoom: (currentbox: WMBBOX, newbox: WMBBOX) => void;
|
|
23
|
-
startZoomThrottled: throttle<(currentbox: WMBBOX, newbox: WMBBOX) => void>;
|
|
24
|
-
flyZoomToBBOXStartZoomThrottled: (currentbox: WMBBOX, newbox: WMBBOX) => void;
|
|
25
|
-
}
|
|
1
|
+
import { throttle } from 'throttle-debounce';
|
|
2
|
+
import WMBBOX from './WMBBOX';
|
|
3
|
+
import type WMJSMap from './WMJSMap';
|
|
4
|
+
export default class WMFlyToBBox {
|
|
5
|
+
private wmMap;
|
|
6
|
+
private flyZoomToBBOXTimerStart;
|
|
7
|
+
private flyZoomToBBOXTimerSteps;
|
|
8
|
+
private flyZoomToBBOXTimerLoop?;
|
|
9
|
+
private flyZoomToBBOXDebounced;
|
|
10
|
+
private flyZoomToBBOXScaler;
|
|
11
|
+
private flyZoomToBBOXCurrent;
|
|
12
|
+
flyZoomToBBOXFly: WMBBOX;
|
|
13
|
+
private flyZoomToBBOXNew;
|
|
14
|
+
private flyZoomToBBOXContinueNew;
|
|
15
|
+
private flyZoomToBBOXTimerFuncBusy;
|
|
16
|
+
private flyZoomToBBOXTimerFuncBusyAndContinue;
|
|
17
|
+
constructor(wmMap: WMJSMap);
|
|
18
|
+
flyZoomToBBOXTimerFuncReadyDebounced: () => void;
|
|
19
|
+
flyZoomToBBOXTimerFunc: () => void;
|
|
20
|
+
resetBBoxTimer: () => void;
|
|
21
|
+
flyZoomToBBOXStop: () => void;
|
|
22
|
+
flyZoomToBBOXStartZoom: (currentbox: WMBBOX, newbox: WMBBOX) => void;
|
|
23
|
+
startZoomThrottled: throttle<(currentbox: WMBBOX, newbox: WMBBOX) => void>;
|
|
24
|
+
flyZoomToBBOXStartZoomThrottled: (currentbox: WMBBOX, newbox: WMBBOX) => void;
|
|
25
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WMJSService } from './WMJSService';
|
|
2
|
-
declare const WMGetServiceFromStore: (serviceName: string) => WMJSService;
|
|
3
|
-
export default WMGetServiceFromStore;
|
|
1
|
+
import { WMJSService } from './WMJSService';
|
|
2
|
+
declare const WMGetServiceFromStore: (serviceName: string) => WMJSService;
|
|
3
|
+
export default WMGetServiceFromStore;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { WMJSService } from './WMJSService';
|
|
2
|
-
/**
|
|
3
|
-
* Global service store for re-use of services
|
|
4
|
-
*/
|
|
5
|
-
export declare const WMServiceStore: WMJSService[];
|
|
6
|
-
export declare const WMServiceStoreXML2JSONRequest: {
|
|
7
|
-
proxy: string;
|
|
8
|
-
};
|
|
1
|
+
import type { WMJSService } from './WMJSService';
|
|
2
|
+
/**
|
|
3
|
+
* Global service store for re-use of services
|
|
4
|
+
*/
|
|
5
|
+
export declare const WMServiceStore: WMJSService[];
|
|
6
|
+
export declare const WMServiceStoreXML2JSONRequest: {
|
|
7
|
+
proxy: string;
|
|
8
|
+
};
|