@opengeoweb/webmap 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 +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,220 +1,222 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private
|
|
32
|
-
private
|
|
33
|
-
private
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
private
|
|
38
|
-
private
|
|
39
|
-
private
|
|
40
|
-
private
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
private
|
|
52
|
-
private
|
|
53
|
-
private
|
|
54
|
-
private
|
|
55
|
-
private
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
private
|
|
64
|
-
private
|
|
65
|
-
private
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private
|
|
69
|
-
private
|
|
70
|
-
private
|
|
71
|
-
private
|
|
72
|
-
private
|
|
73
|
-
private
|
|
74
|
-
private
|
|
75
|
-
private
|
|
76
|
-
private
|
|
77
|
-
private
|
|
78
|
-
private
|
|
79
|
-
private
|
|
80
|
-
private
|
|
81
|
-
private
|
|
82
|
-
private
|
|
83
|
-
private
|
|
84
|
-
private
|
|
85
|
-
private
|
|
86
|
-
private
|
|
87
|
-
private
|
|
88
|
-
private
|
|
89
|
-
private
|
|
90
|
-
private
|
|
91
|
-
private
|
|
92
|
-
private
|
|
93
|
-
private
|
|
94
|
-
private
|
|
95
|
-
private
|
|
96
|
-
private
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import WMImageStore from './WMImageStore';
|
|
3
|
+
import WMBBOX, { Bbox } from './WMBBOX';
|
|
4
|
+
import { WMProjectionWH } from './WMProjection';
|
|
5
|
+
import WMListener from './WMListener';
|
|
6
|
+
import { CanvasBBOX, CanvasGeoLayer } from './WMCanvasBuffer';
|
|
7
|
+
import WMJSDimension from './WMJSDimension';
|
|
8
|
+
import MapPin from './WMMapPin';
|
|
9
|
+
import WMLayer from './WMLayer';
|
|
10
|
+
import { AnimationStep, IWMProj4, IWMJSMapMouseCoordinates } from './types';
|
|
11
|
+
import { WMMemo } from './WMMemo';
|
|
12
|
+
import { type TileServerDefinition, type TileServerSettings } from '../utils';
|
|
13
|
+
import type IWMJSMap from './IWMJSMap';
|
|
14
|
+
export declare const bgMapImageStore: WMImageStore;
|
|
15
|
+
/**
|
|
16
|
+
* WMJSMap class
|
|
17
|
+
*/
|
|
18
|
+
export default class WMJSMap implements IWMJSMap {
|
|
19
|
+
private _mouseX;
|
|
20
|
+
private _mouseDownX;
|
|
21
|
+
private _mouseY;
|
|
22
|
+
private _mouseDownY;
|
|
23
|
+
private _enableAutoPrefetching;
|
|
24
|
+
private _WebMapJSMapVersion;
|
|
25
|
+
private _mainElement;
|
|
26
|
+
private _srs;
|
|
27
|
+
private _width;
|
|
28
|
+
private _height;
|
|
29
|
+
private _layers;
|
|
30
|
+
private _baseLayers;
|
|
31
|
+
private _numBaseLayers;
|
|
32
|
+
private _divZoomBox;
|
|
33
|
+
private _divBoundingBox;
|
|
34
|
+
private _divDimInfo;
|
|
35
|
+
private _displayLegendInMap;
|
|
36
|
+
private _mapHeader;
|
|
37
|
+
private _currentCursor;
|
|
38
|
+
private _mapIsActivated;
|
|
39
|
+
private _isMapHeaderEnabled;
|
|
40
|
+
private _showScaleBarInMap;
|
|
41
|
+
private _showCursorCoordinates;
|
|
42
|
+
private _wmEventListener;
|
|
43
|
+
private canvasLayerBuffer;
|
|
44
|
+
private internalMapId;
|
|
45
|
+
private activeLayer;
|
|
46
|
+
private setTimeOffsetValue;
|
|
47
|
+
private setMessageValue;
|
|
48
|
+
private canvasErrors;
|
|
49
|
+
private resizeWidth;
|
|
50
|
+
private resizeHeight;
|
|
51
|
+
private wmAnimate;
|
|
52
|
+
private wmTileRenderer;
|
|
53
|
+
private mouseWheelBusy;
|
|
54
|
+
private wMFlyToBBox;
|
|
55
|
+
private _mouseWheelEventBBOXCurrent;
|
|
56
|
+
private _mouseWheelEventBBOXNew;
|
|
57
|
+
private mouseUpX;
|
|
58
|
+
private mouseUpY;
|
|
59
|
+
private mouseDragging;
|
|
60
|
+
private mouseDownPressed;
|
|
61
|
+
private mapMode;
|
|
62
|
+
private oldMapMode;
|
|
63
|
+
private resizingBBOXCursor;
|
|
64
|
+
private resizingBBOXEnabled;
|
|
65
|
+
private mouseGeoCoordXY;
|
|
66
|
+
private mouseUpdateCoordinates;
|
|
67
|
+
private mapPanning;
|
|
68
|
+
private mapPanStartGeoCoords;
|
|
69
|
+
private previousMouseButtonState;
|
|
70
|
+
private tileRenderSettings;
|
|
71
|
+
private needsRedraw;
|
|
72
|
+
private _pixelCoordinatesToXY;
|
|
73
|
+
private _makeComponentId;
|
|
74
|
+
private _adagucBeforeDraw;
|
|
75
|
+
private _adagucBeforeCanvasDisplay;
|
|
76
|
+
private _init;
|
|
77
|
+
private _rebuildMapDimensions;
|
|
78
|
+
private _checkInvalidMouseAction;
|
|
79
|
+
private _updateMouseCursorCoordinates;
|
|
80
|
+
private _setActive;
|
|
81
|
+
private _setActiveLayer;
|
|
82
|
+
private _calculateNumBaseLayers;
|
|
83
|
+
private _setSize;
|
|
84
|
+
private _abort;
|
|
85
|
+
private _makeInfoHTML;
|
|
86
|
+
private _draw;
|
|
87
|
+
private _drawReady;
|
|
88
|
+
private _drawAndLoad;
|
|
89
|
+
private _mouseDragStart;
|
|
90
|
+
private _mouseDrag;
|
|
91
|
+
private _mouseDragEnd;
|
|
92
|
+
private _mapPan;
|
|
93
|
+
private _mapPanPercentageEnd;
|
|
94
|
+
private _mapZoomStart;
|
|
95
|
+
private _showBoundingBox;
|
|
96
|
+
private _hideBoundingBox;
|
|
97
|
+
private _animFrameRedraw;
|
|
98
|
+
constructor(_element: HTMLElement);
|
|
99
|
+
_resizeBBOX: WMBBOX;
|
|
100
|
+
_defaultBBOX: WMBBOX;
|
|
101
|
+
_bbox: WMBBOX;
|
|
102
|
+
_updateBBOX: WMBBOX;
|
|
103
|
+
_drawnBBOX: WMBBOX;
|
|
104
|
+
_loadingDiv: HTMLElement;
|
|
105
|
+
_baseDiv: HTMLElement;
|
|
106
|
+
_mapZooming: 0 | 1;
|
|
107
|
+
_initialized: boolean;
|
|
108
|
+
_animationList: AnimationStep[] | string | undefined;
|
|
109
|
+
getLayerByServiceAndName(layerService: string, layerName: string): WMLayer;
|
|
110
|
+
redrawBuffer(): void;
|
|
111
|
+
addLayersToCanvasAndDisplayThem(): void;
|
|
112
|
+
_mouseDownEvent(e: MouseEvent): void;
|
|
113
|
+
_mouseMoveEvent(e: MouseEvent): void;
|
|
114
|
+
_mouseUpEvent(e: MouseEvent): void;
|
|
115
|
+
_display(): void;
|
|
116
|
+
_updateBoundingBox(_mapbbox: WMBBOX, triggerEvent?: boolean): void;
|
|
117
|
+
_mouseWheelEvent(event: WheelEvent): void;
|
|
118
|
+
_detachEvents(): void;
|
|
119
|
+
_attachEvents(): void;
|
|
120
|
+
_onContextMenu: () => boolean;
|
|
121
|
+
_mapPanStart(x: number, y: number): void;
|
|
122
|
+
_mapPanEnd(x: number, y: number): void;
|
|
123
|
+
_mapZoom(): void;
|
|
124
|
+
_mapZoomEnd(): void;
|
|
125
|
+
_getMouseCoordinatesForDocument(e: MouseEvent | TouchEvent): {
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
};
|
|
129
|
+
_setMouseCoordinates: (x: number, y: number) => void;
|
|
130
|
+
_getMouseCoordsForElement(e: MouseEvent | TouchEvent): {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
};
|
|
134
|
+
prefetchLayerImagesForTimeMemo: WMMemo;
|
|
135
|
+
shouldPrefetch: boolean;
|
|
136
|
+
mapPin: MapPin;
|
|
137
|
+
mapdimensions: WMJSDimension[];
|
|
138
|
+
timestepInMinutes: number | undefined;
|
|
139
|
+
showLayerInfo: boolean;
|
|
140
|
+
stopAnimating: () => void;
|
|
141
|
+
isAnimating: boolean;
|
|
142
|
+
animationList: AnimationStep[] | string | undefined;
|
|
143
|
+
animationDelay: number;
|
|
144
|
+
currentAnimationStep: number;
|
|
145
|
+
initialAnimationStep: number;
|
|
146
|
+
setAnimationDelay: (delay: number) => void;
|
|
147
|
+
isDestroyed: boolean;
|
|
148
|
+
getMapImageStore: WMImageStore;
|
|
149
|
+
holdShiftToScroll: boolean;
|
|
150
|
+
t: TFunction | undefined;
|
|
151
|
+
getMapMouseCoordinates(): IWMJSMapMouseCoordinates;
|
|
152
|
+
setWMTileRendererTileSettings(tileRenderSettings: TileServerSettings): void;
|
|
153
|
+
addWMTileRendererTileSetting(tileRenderSetting: TileServerDefinition): void;
|
|
154
|
+
setMessage(message: string): void;
|
|
155
|
+
setTimeOffset(message: string): void;
|
|
156
|
+
getLayers(reverseOrder?: boolean): WMLayer[];
|
|
157
|
+
hasLayer(layer: WMLayer): boolean;
|
|
158
|
+
setLayer(layer: WMLayer): Promise<IWMJSMap>;
|
|
159
|
+
displayLayer(layer: WMLayer, enabled: boolean): void;
|
|
160
|
+
removeAllLayers(): void;
|
|
161
|
+
deleteLayer(layerToDelete: WMLayer): void;
|
|
162
|
+
/**
|
|
163
|
+
* Reorder layers according to an index array with indices on how the layers should be reordered.
|
|
164
|
+
*/
|
|
165
|
+
reorderLayers(order: number[]): boolean;
|
|
166
|
+
configureMapDimensions(layer: WMLayer): void;
|
|
167
|
+
addLayer(layer: WMLayer): Promise<IWMJSMap>;
|
|
168
|
+
getActiveLayer(): WMLayer;
|
|
169
|
+
/**
|
|
170
|
+
* setProjection
|
|
171
|
+
* Set the projection of the current webmap object
|
|
172
|
+
*_srs also accepts a projectionProperty object
|
|
173
|
+
*/
|
|
174
|
+
setProjection(_srs: string | {
|
|
175
|
+
srs: string;
|
|
176
|
+
bbox: Bbox;
|
|
177
|
+
}, _bbox?: Bbox): void;
|
|
178
|
+
getDrawBBOX(): WMBBOX;
|
|
179
|
+
getBBOX(): WMBBOX;
|
|
180
|
+
getProjection(): WMProjectionWH;
|
|
181
|
+
getSize(): {
|
|
182
|
+
width: number;
|
|
183
|
+
height: number;
|
|
184
|
+
};
|
|
185
|
+
getMapPin(): MapPin;
|
|
186
|
+
private _repositionLegendGraphic;
|
|
187
|
+
setSize(w: number, h: number): void;
|
|
188
|
+
hideMouseCursorProperties(): void;
|
|
189
|
+
displayScaleBarInMap(display: boolean): void;
|
|
190
|
+
draw(animationList?: AnimationStep[] | string | undefined): void;
|
|
191
|
+
getAlternativeImage(imageUrl: string, bbox: CanvasBBOX, filterBad?: boolean): CanvasGeoLayer[];
|
|
192
|
+
setBaseLayers(layer: WMLayer[]): void;
|
|
193
|
+
getBaseLayers(): WMLayer[];
|
|
194
|
+
getNumLayers(): number;
|
|
195
|
+
getBaseElement(): HTMLElement;
|
|
196
|
+
destroy(): void;
|
|
197
|
+
mouseDown(mouseCoordX: number, mouseCoordY: number, event?: MouseEvent): void;
|
|
198
|
+
mouseMove(mouseCoordX: number, mouseCoordY: number, event?: MouseEvent): void;
|
|
199
|
+
mouseUp(mouseCoordX: number, mouseCoordY: number, e: MouseEvent): void;
|
|
200
|
+
mapPanPercentage(percentageDiffX: number, percentageDiffY: number): void;
|
|
201
|
+
setCursor(cursor?: string): void;
|
|
202
|
+
getId(): string;
|
|
203
|
+
zoomTo(_newbbox: Bbox): void;
|
|
204
|
+
getProj4(): IWMProj4;
|
|
205
|
+
calculateBoundingBoxAndZoom(lat: number, lng: number): void;
|
|
206
|
+
addListener(name: string, f: (param?: any) => void, keep?: boolean): boolean;
|
|
207
|
+
removeListener(name: string, f: (param?: any) => void): void;
|
|
208
|
+
getListener(): WMListener;
|
|
209
|
+
suspendEvent(name: string): void;
|
|
210
|
+
resumeEvent(name: string): void;
|
|
211
|
+
getDimensionList(): WMJSDimension[];
|
|
212
|
+
getDimension(name: string): WMJSDimension;
|
|
213
|
+
setDimension(name: string, value: string, triggerEvent?: boolean, adjustLayerDims?: boolean): void;
|
|
214
|
+
zoomToLayer(_layer: WMLayer): void;
|
|
215
|
+
setDefaultBBOX(bbox: WMBBOX): void;
|
|
216
|
+
setBBOX(left: number | Bbox, bottom?: number, right?: number, top?: number): boolean;
|
|
217
|
+
zoomOut(ratio?: number): void;
|
|
218
|
+
zoomIn(ratio: number): void;
|
|
219
|
+
displayLegendInMap(_displayLegendInMap: boolean): void;
|
|
220
|
+
getImageStore(): WMImageStore;
|
|
221
|
+
clearImageCache(): void;
|
|
222
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
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
|
-
export declare const
|
|
58
|
-
export declare const
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import type WMLayer from './WMLayer';
|
|
3
|
+
import type { Dimension, LinkedInfo, WMPosition } from './types';
|
|
4
|
+
import type IWMJSMap from './IWMJSMap';
|
|
5
|
+
import { WMProjectionWH } from './WMProjection';
|
|
6
|
+
import { Bbox } from './WMBBOX';
|
|
7
|
+
export declare const getBBOXandProjString: (layer: WMLayer, projection: WMProjectionWH) => string;
|
|
8
|
+
export declare const buildWMSGetMapRequest: (layer: WMLayer, projection: WMProjectionWH, dimensionOverride?: Dimension[]) => {
|
|
9
|
+
url: string;
|
|
10
|
+
headers: Headers[];
|
|
11
|
+
} | undefined;
|
|
12
|
+
export declare const isProjectionSupported: (srs: string, proj4Defintions?: string[][]) => boolean;
|
|
13
|
+
export declare const getWMSRequests: (map: IWMJSMap, dimensionOverride?: Dimension[]) => {
|
|
14
|
+
url: string;
|
|
15
|
+
headers: Headers[];
|
|
16
|
+
}[];
|
|
17
|
+
export declare const getLayerIndex: (layer: WMLayer, layers: WMLayer[]) => number;
|
|
18
|
+
export declare const buildMapLayerDims: (map: IWMJSMap) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Makes a valid getfeatureinfoURL for each layer
|
|
21
|
+
* @param layer
|
|
22
|
+
* @param x
|
|
23
|
+
* @param y
|
|
24
|
+
* @param format
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare const getWMSGetFeatureInfoRequestURL: (layer: WMLayer, x: number, y: number, format?: string) => string;
|
|
28
|
+
export declare const getGeoCoordFromPixelCoord: (coordinates: WMPosition, bbox: Bbox, width: number, height: number) => WMPosition;
|
|
29
|
+
export declare const getPixelCoordFromLatLong: (map: IWMJSMap, coordinates: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}) => {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
};
|
|
36
|
+
export declare const getGeoCoordFromLatLong: (map: IWMJSMap, coordinates: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}) => {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
export declare const getLatLongFromPixelCoord: (map: IWMJSMap, coordinates: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
}) => {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
};
|
|
50
|
+
export declare const getPixelCoordFromGeoCoord: (map: IWMJSMap, coordinates: {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
}, _bbox?: Bbox, _width?: number, _height?: number) => {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
};
|
|
57
|
+
export declare const getErrorsToDisplay: (canvasErrors: LinkedInfo[], getLayerByServiceAndName: (layerservice: string, layername: string) => WMLayer, t: TFunction | undefined) => string[];
|
|
58
|
+
export declare const detectLeftButton: (evt?: MouseEvent) => boolean;
|
|
59
|
+
export declare const detectRightButton: (evt?: MouseEvent) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|