@opengeoweb/webmap 19.1.0 → 19.1.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/dist/README.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +7036 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/lib/components/LoadDurationCounter.d.ts +17 -0
- package/dist/src/lib/components/WMBBOX.d.ts +32 -0
- package/dist/src/lib/components/WMConstants.d.ts +32 -0
- package/dist/src/lib/components/WMImage.d.ts +116 -0
- package/dist/src/lib/components/WMImageStore.d.ts +61 -0
- package/dist/src/lib/components/WMJSDimension.d.ts +126 -0
- package/dist/src/lib/components/WMJSDimensionModes.d.ts +15 -0
- package/dist/src/lib/components/WMJSTools.d.ts +62 -0
- package/dist/src/lib/components/WMLayer.d.ts +117 -0
- package/dist/src/lib/components/WMLayerTypes.d.ts +66 -0
- package/dist/src/lib/components/WMLayerUtils.d.ts +22 -0
- package/dist/src/lib/components/WMLegend.d.ts +6 -0
- package/dist/src/lib/components/WMListener.d.ts +57 -0
- package/dist/src/lib/components/WMProjection.d.ts +17 -0
- package/dist/src/lib/components/WMTime.d.ts +44 -0
- package/dist/src/lib/components/WMTimeTypes.d.ts +19 -0
- package/dist/src/lib/components/WMXMLParser.d.ts +9 -0
- package/dist/src/lib/components/index.d.ts +25 -0
- package/dist/src/lib/components/makeHashUrlForGeoReferencedImage.d.ts +6 -0
- package/dist/src/lib/components/types.d.ts +231 -0
- package/dist/src/lib/index.d.ts +5 -0
- package/dist/src/lib/query/fakeApiWmtsQueries.d.ts +208 -0
- package/dist/src/lib/query/queryConstants.d.ts +7 -0
- package/dist/src/lib/query/queryWMS.d.ts +69 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +1 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesHarmN25.d.ts +2 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithInheritAndReplaceLayerprops.d.ts +2 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithInheritLayerprops.d.ts +2 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithInheritLayerpropsToLayerTree.d.ts +76 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithoutInheritLayerprops.d.ts +2 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMSGetCapabilitiesMissingLegend.d.ts +1 -0
- package/dist/src/lib/specs/getCapabilitySpecs/WMSSmartMet.d.ts +2 -0
- package/dist/src/lib/specs/getCapabilitySpecs/radarGetCapabilities.d.ts +244 -0
- package/dist/src/lib/specs/index.d.ts +93 -0
- package/dist/src/lib/specs/layerSpecs.d.ts +34 -0
- package/dist/src/lib/specs/mockGetCapabilities.d.ts +90 -0
- package/dist/src/lib/utils/consoleErrorMessages.d.ts +12 -0
- package/dist/src/lib/utils/fakeMaxAgeResponses.d.ts +1 -0
- package/dist/src/lib/utils/getCapabilities/getWMSServiceId.d.ts +10 -0
- package/dist/src/lib/utils/getCapabilities/index.d.ts +4 -0
- package/dist/src/lib/utils/getCapabilities/utils.d.ts +64 -0
- package/dist/src/lib/utils/getCapabilities/wmsQueryClient.d.ts +7 -0
- package/dist/src/lib/utils/i18n.d.ts +6 -0
- package/dist/src/lib/utils/index.d.ts +3 -0
- package/dist/src/lib/utils/tilesettings.d.ts +27 -0
- package/dist/src/lib/utils/utils.d.ts +31 -0
- package/package.json +2 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LayerProps } from './types';
|
|
2
|
+
import type WMLayer from './WMLayer';
|
|
3
|
+
/**
|
|
4
|
+
* Helper function to figure out the dimensions from the WMS layer object (From WMS GetCapabilities). Parses both WMS 1.1.1 and WMS 1.3.0.
|
|
5
|
+
* @param layerObjectFromWMS The corresponding layer object from the WMS GetCapabilities.
|
|
6
|
+
* @param layer THe WMLayer to configure
|
|
7
|
+
* @param layerDimNamesToRemove A set of dimensions names which are flagged for removal, this function removes the dimension from the set if found in the layer.
|
|
8
|
+
*/
|
|
9
|
+
export declare const addDimsForLayer: (layerProps: LayerProps, layer: WMLayer, layerDimNamesToRemove: Set<string>) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Helper function to configure the WMS Styles from the WMS GetCapabilities document.
|
|
12
|
+
* @param nestedLayerPath Array of WMS Layers from `[Root WMS Layer] => [Parent(s) WMS Layer] => [This WMS layer]`.
|
|
13
|
+
* @param wmLayer The WMLayer object to configure
|
|
14
|
+
*/
|
|
15
|
+
export declare const configureStyles: (layerProps: LayerProps, wmLayer: WMLayer) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Helper function to configure the dimensions for this layer from the WMS GetCapabilities document.
|
|
18
|
+
* @param nestedLayerPath Array of WMS Layers from `[Root WMS Layer] => [Parent(s) WMS Layer] => [This WMS layer]`.
|
|
19
|
+
* @param wmLayer The WMLayer object to configure
|
|
20
|
+
*/
|
|
21
|
+
export declare const configureDimensions: (layerProps: LayerProps, wmLayer: WMLayer) => void;
|
|
22
|
+
export declare const configureGeographicBoundingBox: (layerProps: LayerProps, wmLayer: WMLayer) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import WMImageStore from './WMImageStore';
|
|
2
|
+
import type WMLayer from './WMLayer';
|
|
3
|
+
export declare const legendImageStore: WMImageStore;
|
|
4
|
+
export declare const getLegendGraphicURLForLayer: (layer: WMLayer, width?: number, height?: number) => string;
|
|
5
|
+
export declare const getLegendImageStore: () => WMImageStore;
|
|
6
|
+
export declare const drawLegend: (canvasContext: CanvasRenderingContext2D, width: number, height: number, layers: WMLayer[]) => void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default class WMListener {
|
|
2
|
+
private registeredEvents;
|
|
3
|
+
private _suspendedEvents;
|
|
4
|
+
private _suspendAllEvents;
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* Remove events by name and function.
|
|
8
|
+
* @param name Event name
|
|
9
|
+
* @param fn Function pointer to check
|
|
10
|
+
*/
|
|
11
|
+
removeEventListener(name: string, fn: (param?: unknown) => unknown): number;
|
|
12
|
+
/**
|
|
13
|
+
* Remove all events by name
|
|
14
|
+
* @param name Event name
|
|
15
|
+
*/
|
|
16
|
+
removeEventListeners(name: string): number;
|
|
17
|
+
/**
|
|
18
|
+
* Add multiple functions which will be called after the event with the same name is triggered
|
|
19
|
+
* @param name: The name of the event to register
|
|
20
|
+
* @param function: The function to trigger
|
|
21
|
+
* @param keepOnCall: When false, this event name and function combination is removed once triggered.
|
|
22
|
+
* When true Otherwise keep the event and allow it to be triggered multiple times
|
|
23
|
+
* @return: true if the event is registerd, false if it already was registered
|
|
24
|
+
*/
|
|
25
|
+
addEventListener(name: string, functionpointer: (param: unknown) => void, keepOnCall?: boolean): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Destroys this listener, deregistering all events
|
|
28
|
+
*/
|
|
29
|
+
destroy(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Suspend a specific event by name, triggers will not be called
|
|
32
|
+
* @param name
|
|
33
|
+
*/
|
|
34
|
+
suspendEvent(name: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Resume a specific event by name, resuming normal operation
|
|
37
|
+
* @param name
|
|
38
|
+
*/
|
|
39
|
+
resumeEvent(name: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* This listener will not listen to any triggers
|
|
42
|
+
*/
|
|
43
|
+
suspendEvents(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Resume event listening
|
|
46
|
+
*/
|
|
47
|
+
resumeEvents(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Trigger an event with custom parameters
|
|
50
|
+
* @param name The name of the event to trigger
|
|
51
|
+
* @param param The parameters to provide to the associated function
|
|
52
|
+
* @returns The results of the function.
|
|
53
|
+
*/
|
|
54
|
+
triggerEvent(name: string, param?: unknown): unknown[];
|
|
55
|
+
private removeFinishedEvents;
|
|
56
|
+
removeEvents(name: string, fn?: (param?: unknown) => unknown): number;
|
|
57
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Bbox } from './WMBBOX';
|
|
2
|
+
import WMBBOX from './WMBBOX';
|
|
3
|
+
/**
|
|
4
|
+
* WMProjection Class
|
|
5
|
+
* Keep all projection information, by a bbox and an srs value.
|
|
6
|
+
*/
|
|
7
|
+
export default class WMProjection {
|
|
8
|
+
bbox: WMBBOX;
|
|
9
|
+
srs: string;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export interface WMProjectionWH {
|
|
13
|
+
bbox: Bbox;
|
|
14
|
+
srs: string;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { TimeInterval } from './types';
|
|
2
|
+
import type { CustomDate } from './WMTimeTypes';
|
|
3
|
+
/** ************************************************ */
|
|
4
|
+
/** ************************************************ */
|
|
5
|
+
export declare class DateInterval implements TimeInterval {
|
|
6
|
+
year: number;
|
|
7
|
+
month: number;
|
|
8
|
+
day: number;
|
|
9
|
+
hour: number;
|
|
10
|
+
minute: number;
|
|
11
|
+
second: number;
|
|
12
|
+
isRegularInterval: boolean;
|
|
13
|
+
constructor(year: string, month: string, day: string, hour: string, minute: string, second: string);
|
|
14
|
+
getTime(): number;
|
|
15
|
+
toISO8601(): string;
|
|
16
|
+
}
|
|
17
|
+
export declare const isValidISOTime: (isotime: string) => boolean;
|
|
18
|
+
export declare const parseTimeValue: (value: string) => number;
|
|
19
|
+
export declare const getTimeValues: (isotime: string) => number[];
|
|
20
|
+
/** ************************************************* */
|
|
21
|
+
/** ************************************************* */
|
|
22
|
+
export declare const parseISO8601DateToDate: (unvalidatedIsotime: string) => CustomDate;
|
|
23
|
+
/** ****************************************************** */
|
|
24
|
+
/** ****************************************************** */
|
|
25
|
+
export declare const parseISO8601IntervalToDateInterval: (_isotime: string) => DateInterval;
|
|
26
|
+
export declare function isTimeOnIntervalStep(time: Date, intervalStart: Date, interval: DateInterval): boolean;
|
|
27
|
+
/** ******************************************************* */
|
|
28
|
+
/** ******************************************************* */
|
|
29
|
+
export declare function getNumberOfTimeSteps(starttime: CustomDate, stoptime: CustomDate, interval: DateInterval): number;
|
|
30
|
+
export declare class ParseISOTimeRangeDuration {
|
|
31
|
+
private initialized;
|
|
32
|
+
startTime: CustomDate;
|
|
33
|
+
stopTime: CustomDate;
|
|
34
|
+
timeInterval: DateInterval;
|
|
35
|
+
timeSteps: number;
|
|
36
|
+
constructor(isoTimeRangeDuration: string, defaultInterval?: string);
|
|
37
|
+
getTimeSteps(): number;
|
|
38
|
+
getDateAtTimeStep(currentStep: number): CustomDate;
|
|
39
|
+
getTimeStepFromISODate(currentISODate: string, throwIfOutsideRange: boolean): number;
|
|
40
|
+
getTimeStepFromDate(wantedDate: CustomDate, throwIfOutsideRange?: boolean): number;
|
|
41
|
+
getTimeStepFromDateWithinRange(currentDate: CustomDate): number;
|
|
42
|
+
getTimeStepFromDateClipped(currentDate: CustomDate): number;
|
|
43
|
+
}
|
|
44
|
+
export declare function calculateTimeIntervalFromList(dateStrings: string[]): DateInterval;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface DateInterval {
|
|
2
|
+
year: number;
|
|
3
|
+
month: number;
|
|
4
|
+
day: number;
|
|
5
|
+
hour: number;
|
|
6
|
+
minute: number;
|
|
7
|
+
second: number;
|
|
8
|
+
isRegularInterval: boolean;
|
|
9
|
+
getTime: () => number;
|
|
10
|
+
}
|
|
11
|
+
export interface CustomDate extends Date {
|
|
12
|
+
add: (dateInterval: DateInterval) => void;
|
|
13
|
+
substract: (dateInterval: DateInterval) => void;
|
|
14
|
+
addMultipleTimes: (dateInterval: DateInterval, times: number) => void;
|
|
15
|
+
substractMultipleTimes: (dateInterval: DateInterval, times: number) => void;
|
|
16
|
+
toISO8601: () => string;
|
|
17
|
+
clone: () => CustomDate;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type WMJSONDocument = any;
|
|
2
|
+
export declare const WMXMLStringToXMLDocument: (xmlString: string) => XMLDocument;
|
|
3
|
+
export declare const WMXMLtoJSON: (xmlDocument: XMLDocument) => WMJSONDocument;
|
|
4
|
+
export declare const WMXMLStringToJson: (xmlString: string) => WMJSONDocument;
|
|
5
|
+
declare const WMXMLParser: (url: string, headers: {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[]) => Promise<Record<string, unknown>>;
|
|
9
|
+
export default WMXMLParser;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WMImageStoreLoadType } from './LoadDurationCounter';
|
|
2
|
+
import WMImage from './WMImage';
|
|
3
|
+
import { WMImageEventType } from './WMImageStore';
|
|
4
|
+
import { wmDetermineDimensionMode } from './WMJSDimensionModes';
|
|
5
|
+
import { isDefined, toArray, debugLogger, DebugType, getUriWithParam, getMapDimURL } from './WMJSTools';
|
|
6
|
+
import { LayerType } from './WMLayerTypes';
|
|
7
|
+
import { getLegendGraphicURLForLayer, legendImageStore } from './WMLegend';
|
|
8
|
+
import WMListener from './WMListener';
|
|
9
|
+
import WMProjection from './WMProjection';
|
|
10
|
+
import { parseISO8601DateToDate, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration } from './WMTime';
|
|
11
|
+
import { WMXMLStringToJson } from './WMXMLParser';
|
|
12
|
+
export { default as WMJSDimension, handleDateUtilsISOString, } from './WMJSDimension';
|
|
13
|
+
export { default as WMLayer } from './WMLayer';
|
|
14
|
+
export type { LayerOptions, LayerFoundation, EDRFeatureLayerOptions, } from './WMLayerTypes';
|
|
15
|
+
export { LayerType };
|
|
16
|
+
export { default as WMBBOX } from './WMBBOX';
|
|
17
|
+
export type { Bbox } from './WMBBOX';
|
|
18
|
+
export type { WMProjectionWH } from './WMProjection';
|
|
19
|
+
export { WMProjection };
|
|
20
|
+
export { DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, getUriWithParam, getMapDimURL, WMListener, WMXMLStringToJson, WMImageStoreLoadType, wmDetermineDimensionMode, };
|
|
21
|
+
export type * from './types';
|
|
22
|
+
export type * from './WMTimeTypes';
|
|
23
|
+
export * from './WMConstants';
|
|
24
|
+
declare const wmServiceListener: WMListener;
|
|
25
|
+
export { wmServiceListener };
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import type { Bbox } from './WMBBOX';
|
|
2
|
+
import type WMImage from './WMImage';
|
|
3
|
+
import type WMJSDimension from './WMJSDimension';
|
|
4
|
+
import type WMLayer from './WMLayer';
|
|
5
|
+
export interface AnimationStep {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
requests?: {
|
|
9
|
+
url: string;
|
|
10
|
+
headers: Headers[];
|
|
11
|
+
}[];
|
|
12
|
+
imagesInPrefetch?: WMImage[];
|
|
13
|
+
}
|
|
14
|
+
export interface WMPosition {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}
|
|
18
|
+
export interface LinkedInfoContent {
|
|
19
|
+
layer: WMLayer;
|
|
20
|
+
message?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LinkedInfo {
|
|
23
|
+
linkedInfo: LinkedInfoContent;
|
|
24
|
+
}
|
|
25
|
+
export interface TimeInterval {
|
|
26
|
+
year: number;
|
|
27
|
+
month: number;
|
|
28
|
+
day: number;
|
|
29
|
+
hour: number;
|
|
30
|
+
minute: number;
|
|
31
|
+
second: number;
|
|
32
|
+
isRegularInterval: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface Dimension {
|
|
35
|
+
name?: string;
|
|
36
|
+
units?: string;
|
|
37
|
+
currentValue: string;
|
|
38
|
+
maxValue?: string;
|
|
39
|
+
minValue?: string;
|
|
40
|
+
timeInterval?: TimeInterval;
|
|
41
|
+
synced?: boolean;
|
|
42
|
+
values?: string;
|
|
43
|
+
unitSymbol?: string;
|
|
44
|
+
validSyncSelection?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface Style {
|
|
47
|
+
title: string;
|
|
48
|
+
name: string;
|
|
49
|
+
legendURL: string;
|
|
50
|
+
abstract: string;
|
|
51
|
+
}
|
|
52
|
+
export interface GeographicBoundingBox {
|
|
53
|
+
west: string;
|
|
54
|
+
east: string;
|
|
55
|
+
north: string;
|
|
56
|
+
south: string;
|
|
57
|
+
}
|
|
58
|
+
export interface WMLayerType {
|
|
59
|
+
setDimension: (name: string, value: string, updateMapDimensions: boolean) => void;
|
|
60
|
+
getDimension: (name: string) => WMJSDimension;
|
|
61
|
+
dimensions?: WMJSDimension[];
|
|
62
|
+
title?: string;
|
|
63
|
+
headers?: Headers[];
|
|
64
|
+
}
|
|
65
|
+
export interface CoordinateReferenceSystem {
|
|
66
|
+
name?: string;
|
|
67
|
+
bbox?: Bbox;
|
|
68
|
+
}
|
|
69
|
+
export interface LayerProps {
|
|
70
|
+
name: string | null;
|
|
71
|
+
leaf: boolean;
|
|
72
|
+
path: string[];
|
|
73
|
+
title?: string;
|
|
74
|
+
abstract?: string;
|
|
75
|
+
keywords?: string[];
|
|
76
|
+
styles?: Style[];
|
|
77
|
+
dimensions?: Dimension[];
|
|
78
|
+
geographicBoundingBox?: GeographicBoundingBox | undefined;
|
|
79
|
+
queryable?: boolean;
|
|
80
|
+
crs?: CoordinateReferenceSystem[];
|
|
81
|
+
ogctype?: OGCTYPE;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Represents the layers as advertised in the WMS GetCapabilities document
|
|
85
|
+
*/
|
|
86
|
+
export interface LayerTree extends LayerProps {
|
|
87
|
+
children: LayerTree[];
|
|
88
|
+
}
|
|
89
|
+
export interface WMSBoundingBox {
|
|
90
|
+
attr: {
|
|
91
|
+
SRS?: string;
|
|
92
|
+
CRS?: string;
|
|
93
|
+
maxy: string;
|
|
94
|
+
miny: string;
|
|
95
|
+
maxx: string;
|
|
96
|
+
minx: string;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* This interface is for reading from the WMS GetCapabilities document, which can have different structures for V1.1.1 and V1.3.0
|
|
101
|
+
*/
|
|
102
|
+
export interface WMSLayerFromGetCapabilities {
|
|
103
|
+
attr: {
|
|
104
|
+
queryable: string;
|
|
105
|
+
opaque: string;
|
|
106
|
+
cascaded: string;
|
|
107
|
+
};
|
|
108
|
+
Name: {
|
|
109
|
+
attr: Record<string, unknown>;
|
|
110
|
+
value: string;
|
|
111
|
+
};
|
|
112
|
+
Title: {
|
|
113
|
+
attr: Record<string, unknown>;
|
|
114
|
+
value: string;
|
|
115
|
+
};
|
|
116
|
+
Dimension: unknown;
|
|
117
|
+
Style: unknown;
|
|
118
|
+
Extent: unknown;
|
|
119
|
+
ScaleHint: unknown;
|
|
120
|
+
Abstract: {
|
|
121
|
+
value: string;
|
|
122
|
+
};
|
|
123
|
+
KeywordList: {
|
|
124
|
+
Keyword: unknown;
|
|
125
|
+
};
|
|
126
|
+
Layer: WMSLayerFromGetCapabilities | WMSLayerFromGetCapabilities[];
|
|
127
|
+
EX_GeographicBoundingBox?: {
|
|
128
|
+
northBoundLatitude: {
|
|
129
|
+
attr: Record<string, unknown>;
|
|
130
|
+
value: string;
|
|
131
|
+
};
|
|
132
|
+
southBoundLatitude: {
|
|
133
|
+
attr: Record<string, unknown>;
|
|
134
|
+
value: string;
|
|
135
|
+
};
|
|
136
|
+
westBoundLongitude: {
|
|
137
|
+
attr: Record<string, unknown>;
|
|
138
|
+
value: string;
|
|
139
|
+
};
|
|
140
|
+
eastBoundLongitude: {
|
|
141
|
+
attr: Record<string, unknown>;
|
|
142
|
+
value: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
LatLonBoundingBox?: {
|
|
146
|
+
attr: {
|
|
147
|
+
maxy: string;
|
|
148
|
+
miny: string;
|
|
149
|
+
maxx: string;
|
|
150
|
+
minx: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
BoundingBox?: WMSBoundingBox[];
|
|
154
|
+
SRS?: {
|
|
155
|
+
value: string;
|
|
156
|
+
}[];
|
|
157
|
+
}
|
|
158
|
+
export interface WMSGetCapabilities {
|
|
159
|
+
WMS_Capabilities?: any;
|
|
160
|
+
WMT_MS_Capabilities?: any;
|
|
161
|
+
ServiceExceptionReport?: any;
|
|
162
|
+
}
|
|
163
|
+
export interface WMSServiceInfo {
|
|
164
|
+
id?: string;
|
|
165
|
+
version: string;
|
|
166
|
+
abstract: string;
|
|
167
|
+
title: string;
|
|
168
|
+
onlineresource: string;
|
|
169
|
+
getmapURL: string;
|
|
170
|
+
getCapabilitiesJson: OGCWMSWMTSGetCapabilities;
|
|
171
|
+
}
|
|
172
|
+
export interface Capability {
|
|
173
|
+
Layer: WMSLayerFromGetCapabilities;
|
|
174
|
+
Request: any;
|
|
175
|
+
}
|
|
176
|
+
export interface XLINK {
|
|
177
|
+
'xlink:href': string;
|
|
178
|
+
}
|
|
179
|
+
export interface Header {
|
|
180
|
+
name: string;
|
|
181
|
+
value: string;
|
|
182
|
+
}
|
|
183
|
+
export interface WMTDimension {
|
|
184
|
+
Identifier?: {
|
|
185
|
+
value: string;
|
|
186
|
+
};
|
|
187
|
+
Default?: {
|
|
188
|
+
value: string;
|
|
189
|
+
};
|
|
190
|
+
Value?: {
|
|
191
|
+
value: string;
|
|
192
|
+
} | {
|
|
193
|
+
value: string;
|
|
194
|
+
}[];
|
|
195
|
+
}
|
|
196
|
+
export interface WMTLayer {
|
|
197
|
+
Abstract: {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
Dimension?: WMTDimension[];
|
|
201
|
+
Identifier: {
|
|
202
|
+
value: string;
|
|
203
|
+
};
|
|
204
|
+
Title: {
|
|
205
|
+
value: string;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
export interface WMTSGetCapabilities {
|
|
209
|
+
Capabilities?: {
|
|
210
|
+
ServiceIdentification?: {
|
|
211
|
+
Title?: {
|
|
212
|
+
value: string;
|
|
213
|
+
};
|
|
214
|
+
Abstract?: {
|
|
215
|
+
value: string;
|
|
216
|
+
};
|
|
217
|
+
ServiceType?: {
|
|
218
|
+
value: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
Contents?: {
|
|
222
|
+
Layer?: WMTLayer | WMTLayer[];
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
export declare enum OGCTYPE {
|
|
227
|
+
WMTS = "WMTS",
|
|
228
|
+
WMS = "WMS"
|
|
229
|
+
}
|
|
230
|
+
export interface OGCWMSWMTSGetCapabilities extends WMSGetCapabilities, WMTSGetCapabilities {
|
|
231
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
export declare const wmtsResponseGetCapabilities: {
|
|
2
|
+
Capabilities: {
|
|
3
|
+
attr: {
|
|
4
|
+
xmlns: string;
|
|
5
|
+
'xmlns:ows': string;
|
|
6
|
+
'xmlns:xlink': string;
|
|
7
|
+
'xmlns:xsi': string;
|
|
8
|
+
'xmlns:gml': string;
|
|
9
|
+
'xsi:schemaLocation': string;
|
|
10
|
+
version: string;
|
|
11
|
+
};
|
|
12
|
+
ServiceIdentification: {
|
|
13
|
+
attr: {};
|
|
14
|
+
Title: {
|
|
15
|
+
attr: {};
|
|
16
|
+
};
|
|
17
|
+
Abstract: {
|
|
18
|
+
attr: {};
|
|
19
|
+
};
|
|
20
|
+
ServiceType: {
|
|
21
|
+
attr: {};
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
ServiceTypeVersion: {
|
|
25
|
+
attr: {};
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
Fees: {
|
|
29
|
+
attr: {};
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
AccessConstraints: {
|
|
33
|
+
attr: {};
|
|
34
|
+
value: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
OperationsMetadata: {
|
|
38
|
+
attr: {};
|
|
39
|
+
Operation: {
|
|
40
|
+
attr: {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
DCP: {
|
|
44
|
+
attr: {};
|
|
45
|
+
HTTP: {
|
|
46
|
+
attr: {};
|
|
47
|
+
Get: {
|
|
48
|
+
attr: {
|
|
49
|
+
'xlink:href': string;
|
|
50
|
+
};
|
|
51
|
+
Constraint: {
|
|
52
|
+
attr: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
AllowedValues: {
|
|
56
|
+
attr: {};
|
|
57
|
+
Value: {
|
|
58
|
+
attr: {};
|
|
59
|
+
value: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
Contents: {
|
|
69
|
+
attr: {};
|
|
70
|
+
Layer: {
|
|
71
|
+
attr: {};
|
|
72
|
+
Title: {
|
|
73
|
+
attr: {};
|
|
74
|
+
value: string;
|
|
75
|
+
};
|
|
76
|
+
Abstract: {
|
|
77
|
+
attr: {};
|
|
78
|
+
};
|
|
79
|
+
WGS84BoundingBox: {
|
|
80
|
+
attr: {};
|
|
81
|
+
LowerCorner: {
|
|
82
|
+
attr: {};
|
|
83
|
+
value: string;
|
|
84
|
+
};
|
|
85
|
+
UpperCorner: {
|
|
86
|
+
attr: {};
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
Identifier: {
|
|
91
|
+
attr: {};
|
|
92
|
+
value: string;
|
|
93
|
+
};
|
|
94
|
+
Style: {
|
|
95
|
+
attr: {
|
|
96
|
+
isDefault: string;
|
|
97
|
+
};
|
|
98
|
+
Identifier: {
|
|
99
|
+
attr: {};
|
|
100
|
+
value: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
Format: {
|
|
104
|
+
attr: {};
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
Dimension: {
|
|
108
|
+
attr: {};
|
|
109
|
+
Identifier: {
|
|
110
|
+
attr: {};
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
113
|
+
Default: {
|
|
114
|
+
attr: {};
|
|
115
|
+
value: string;
|
|
116
|
+
};
|
|
117
|
+
Value: {
|
|
118
|
+
attr: {};
|
|
119
|
+
value: string;
|
|
120
|
+
}[];
|
|
121
|
+
};
|
|
122
|
+
TileMatrixSetLink: {
|
|
123
|
+
attr: {};
|
|
124
|
+
TileMatrixSet: {
|
|
125
|
+
attr: {};
|
|
126
|
+
value: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
ResourceURL: {
|
|
130
|
+
attr: {
|
|
131
|
+
format: string;
|
|
132
|
+
resourceType: string;
|
|
133
|
+
template: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
TileMatrixSet: {
|
|
138
|
+
attr: {};
|
|
139
|
+
Identifier: {
|
|
140
|
+
attr: {};
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
143
|
+
SupportedCRS: {
|
|
144
|
+
attr: {};
|
|
145
|
+
value: string;
|
|
146
|
+
};
|
|
147
|
+
TileMatrix: {
|
|
148
|
+
attr: {};
|
|
149
|
+
Identifier: {
|
|
150
|
+
attr: {};
|
|
151
|
+
value: string;
|
|
152
|
+
};
|
|
153
|
+
ScaleDenominator: {
|
|
154
|
+
attr: {};
|
|
155
|
+
value: string;
|
|
156
|
+
};
|
|
157
|
+
TopLeftCorner: {
|
|
158
|
+
attr: {};
|
|
159
|
+
value: string;
|
|
160
|
+
};
|
|
161
|
+
TileWidth: {
|
|
162
|
+
attr: {};
|
|
163
|
+
value: string;
|
|
164
|
+
};
|
|
165
|
+
TileHeight: {
|
|
166
|
+
attr: {};
|
|
167
|
+
value: string;
|
|
168
|
+
};
|
|
169
|
+
MatrixWidth: {
|
|
170
|
+
attr: {};
|
|
171
|
+
value: string;
|
|
172
|
+
};
|
|
173
|
+
MatrixHeight: {
|
|
174
|
+
attr: {};
|
|
175
|
+
value: string;
|
|
176
|
+
};
|
|
177
|
+
}[];
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
ServiceMetadataURL: {
|
|
181
|
+
attr: {
|
|
182
|
+
'xlink:href': string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export declare const wmtsResponseLayerList: {
|
|
188
|
+
abstract: string;
|
|
189
|
+
dimensions: {
|
|
190
|
+
currentValue: string;
|
|
191
|
+
defaultValue: string;
|
|
192
|
+
name: string;
|
|
193
|
+
units: string;
|
|
194
|
+
values: string;
|
|
195
|
+
}[];
|
|
196
|
+
leaf: boolean;
|
|
197
|
+
name: string;
|
|
198
|
+
path: never[];
|
|
199
|
+
ogctype: string;
|
|
200
|
+
styles: {
|
|
201
|
+
abstract: string;
|
|
202
|
+
legendURL: string;
|
|
203
|
+
name: string;
|
|
204
|
+
title: string;
|
|
205
|
+
}[];
|
|
206
|
+
title: string;
|
|
207
|
+
}[];
|
|
208
|
+
export declare const fakeWMTSLayerApiHandlers: import("msw").HttpHandler[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const QUERYWMS_GETCAPABILITIES = "QUERYWMS_GETCAPABILITIES";
|
|
2
|
+
export declare const QUERYWMS_LAYERSTREE = "QUERYWMS_LAYERSTREE";
|
|
3
|
+
export declare const QUERYWMS_SERVICEINFO = "QUERYWMS_SERVICEINFO";
|
|
4
|
+
export declare const QUERYWMS_LAYERS = "QUERYWMS_LAYERS";
|
|
5
|
+
export declare const QUERYWMS_LAYER = "QUERYWMS_LAYER";
|
|
6
|
+
export declare const QUERYWMS_OGCTYPE = "QUERYWMS_OGCTYPE";
|
|
7
|
+
export declare const queryWMSKeys: string[];
|