@loaders.gl/wms 4.2.0-alpha.5 → 4.2.0-beta.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/csw-capabilities-loader.d.ts +18 -2
- package/dist/csw-capabilities-loader.d.ts.map +1 -1
- package/dist/csw-capabilities-loader.js +3 -1
- package/dist/csw-domain-loader.d.ts +18 -2
- package/dist/csw-domain-loader.d.ts.map +1 -1
- package/dist/csw-domain-loader.js +3 -1
- package/dist/csw-records-loader.d.ts +18 -2
- package/dist/csw-records-loader.d.ts.map +1 -1
- package/dist/csw-records-loader.js +3 -1
- package/dist/gml-loader.d.ts +20 -2
- package/dist/gml-loader.d.ts.map +1 -1
- package/dist/gml-loader.js +3 -1
- package/dist/index.cjs +62 -14
- package/dist/index.cjs.map +2 -2
- package/dist/lib/services/image-service.js +2 -2
- package/dist/services/arcgis/arcgis-image-service.js +1 -0
- package/dist/services/ogc/csw-service.d.ts +36 -1
- package/dist/services/ogc/csw-service.d.ts.map +1 -1
- package/dist/services/ogc/csw-service.js +7 -5
- package/dist/services/ogc/wms-service.d.ts.map +1 -1
- package/dist/services/ogc/wms-service.js +29 -1
- package/dist/wip/services/arcgis-feature-service.js +3 -0
- package/dist/wip/wcs-capabilities-loader.d.ts +14 -12
- package/dist/wip/wcs-capabilities-loader.d.ts.map +1 -1
- package/dist/wip/wcs-capabilities-loader.js +3 -1
- package/dist/wip/wfs-capabilities-loader.d.ts +18 -1
- package/dist/wip/wfs-capabilities-loader.d.ts.map +1 -1
- package/dist/wip/wfs-capabilities-loader.js +3 -1
- package/dist/wip/wms-feature-info-loader.d.ts +17 -3
- package/dist/wip/wms-feature-info-loader.d.ts.map +1 -1
- package/dist/wip/wms-feature-info-loader.js +4 -3
- package/dist/wip/wms-layer-description-loader.d.ts +15 -29
- package/dist/wip/wms-layer-description-loader.d.ts.map +1 -1
- package/dist/wip/wms-layer-description-loader.js +1 -1
- package/dist/wip/wmts-capabilities-loader.d.ts +15 -12
- package/dist/wip/wmts-capabilities-loader.d.ts.map +1 -1
- package/dist/wip/wmts-capabilities-loader.js +3 -1
- package/dist/wms-capabilities-loader.d.ts +18 -2
- package/dist/wms-capabilities-loader.d.ts.map +1 -1
- package/dist/wms-capabilities-loader.js +3 -1
- package/dist/wms-error-loader.d.ts +23 -2
- package/dist/wms-error-loader.d.ts.map +1 -1
- package/dist/wms-error-loader.js +3 -1
- package/package.json +6 -6
- package/src/csw-capabilities-loader.ts +5 -2
- package/src/csw-domain-loader.ts +5 -2
- package/src/csw-records-loader.ts +5 -2
- package/src/gml-loader.ts +5 -2
- package/src/services/ogc/wms-service.ts +21 -0
- package/src/wip/wcs-capabilities-loader.ts +4 -1
- package/src/wip/wfs-capabilities-loader.ts +5 -2
- package/src/wip/wms-feature-info-loader.ts +6 -6
- package/src/wip/wms-layer-description-loader.ts +2 -3
- package/src/wip/wmts-capabilities-loader.ts +5 -2
- package/src/wms-capabilities-loader.ts +5 -6
- package/src/wms-error-loader.ts +5 -2
|
@@ -49,7 +49,42 @@ export declare class CSWService extends DataSource<CSWServiceProps> {
|
|
|
49
49
|
data: string;
|
|
50
50
|
url: string;
|
|
51
51
|
/** A list of loaders used by the CSWService methods */
|
|
52
|
-
readonly loaders: (
|
|
52
|
+
readonly loaders: ({
|
|
53
|
+
readonly dataType: CSWCapabilities;
|
|
54
|
+
readonly batchType: never;
|
|
55
|
+
readonly id: "csw-capabilities";
|
|
56
|
+
readonly name: "CSW Capabilities";
|
|
57
|
+
readonly module: "wms";
|
|
58
|
+
readonly version: any;
|
|
59
|
+
readonly worker: false;
|
|
60
|
+
readonly extensions: ["xml"];
|
|
61
|
+
readonly mimeTypes: ["application/vnd.ogc.csw_xml", "application/xml", "text/xml"];
|
|
62
|
+
readonly testText: (text: string) => boolean;
|
|
63
|
+
readonly options: {
|
|
64
|
+
readonly csw: {};
|
|
65
|
+
};
|
|
66
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: import("../../csw-capabilities-loader").CSWLoaderOptions | undefined) => Promise<CSWCapabilities>;
|
|
67
|
+
readonly parseTextSync: (text: string, options?: import("../../csw-capabilities-loader").CSWLoaderOptions | undefined) => CSWCapabilities;
|
|
68
|
+
} | {
|
|
69
|
+
readonly dataType: string;
|
|
70
|
+
readonly batchType: never;
|
|
71
|
+
readonly id: "wms-error";
|
|
72
|
+
readonly name: "WMS Error";
|
|
73
|
+
readonly module: "wms";
|
|
74
|
+
readonly version: any;
|
|
75
|
+
readonly worker: false;
|
|
76
|
+
readonly extensions: ["xml"];
|
|
77
|
+
readonly mimeTypes: ["application/vnd.ogc.se_xml", "application/xml", "text/xml"];
|
|
78
|
+
readonly testText: (text: string) => boolean;
|
|
79
|
+
readonly options: {
|
|
80
|
+
readonly wms: {
|
|
81
|
+
readonly throwOnError: false;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: import("../../wms-error-loader").WMSLoaderOptions | undefined) => Promise<string>;
|
|
85
|
+
readonly parseSync: (arrayBuffer: ArrayBuffer, options?: import("../../wms-error-loader").WMSLoaderOptions | undefined) => string;
|
|
86
|
+
readonly parseTextSync: (text: string, options?: import("../../wms-error-loader").WMSLoaderOptions | undefined) => string;
|
|
87
|
+
})[];
|
|
53
88
|
/** Create a CSWService */
|
|
54
89
|
constructor(props: CSWServiceProps);
|
|
55
90
|
getMetadata(): Promise<CSWCapabilities>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-service.d.ts","sourceRoot":"","sources":["../../../src/services/ogc/csw-service.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAC,eAAe,EAAC,yCAAsC;AAGnE,OAAO,KAAK,EAAC,UAAU,EAAC,oCAAiC;AAGzD,OAAO,KAAK,EAAC,SAAS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,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACzC,MAAM;IAWT,qDAAqD;IACrD,aAAa,CACX,aAAa,CAAC,EAAE,uBAAuB,EACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACzC,MAAM;IAYT,qDAAqD;IACrD,YAAY,CACV,aAAa,CAAC,EAAE,sBAAsB,EACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACzC,MAAM;IAaT;;SAEK;IACL,SAAS,CAAC,UAAU,CAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACzC,MAAM;IAeT,qFAAqF;IACrF,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IAQ5E,+BAA+B;IAC/B,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,KAAK;CAIvD"}
|
|
@@ -13,12 +13,16 @@ import { WMSErrorLoader as CSWErrorLoader } from "../../wms-error-loader.js";
|
|
|
13
13
|
* @note Only the URL parameter conversion is supported. XML posts are not supported.
|
|
14
14
|
*/
|
|
15
15
|
export class CSWService extends DataSource {
|
|
16
|
+
static type = 'csw';
|
|
17
|
+
static testURL = (url) => url.toLowerCase().includes('csw');
|
|
18
|
+
capabilities = null;
|
|
19
|
+
data;
|
|
20
|
+
url;
|
|
21
|
+
/** A list of loaders used by the CSWService methods */
|
|
22
|
+
loaders = [CSWErrorLoader, CSWCapabilitiesLoader];
|
|
16
23
|
/** Create a CSWService */
|
|
17
24
|
constructor(props) {
|
|
18
25
|
super(props);
|
|
19
|
-
this.capabilities = null;
|
|
20
|
-
/** A list of loaders used by the CSWService methods */
|
|
21
|
-
this.loaders = [CSWErrorLoader, CSWCapabilitiesLoader];
|
|
22
26
|
this.url = props.url;
|
|
23
27
|
this.data = props.url;
|
|
24
28
|
}
|
|
@@ -164,5 +168,3 @@ export class CSWService extends DataSource {
|
|
|
164
168
|
return new Error(error);
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
|
-
CSWService.type = 'csw';
|
|
168
|
-
CSWService.testURL = (url) => url.toLowerCase().includes('csw');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms-service.d.ts","sourceRoot":"","sources":["../../../src/services/ogc/wms-service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAIlD,OAAO,KAAK,EAAC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAC,iBAAiB,EAAC,4CAAyC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,yCAAsC;AACnE,OAAO,KAAK,EAAC,cAAc,EAAC,6CAA0C;AACtE,OAAO,KAAK,EAAC,mBAAmB,EAAC,kDAA+C;AAShF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,SAAS,EAAE,cAAc,CAIzD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB,6EAA6E;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,oEAAoE;IACpE,WAAW,CAAC,EAAE,YAAY,GAAG,qBAAqB,GAAG,yBAAyB,CAAC;IAC/E,kCAAkC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACj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AAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAkB1C,8EAA8E;cAC9D,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAOpE,qFAAqF;IACrF,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IAY5E,+BAA+B;IAC/B,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,KAAK;CAIvD"}
|
|
@@ -21,10 +21,21 @@ export const WMSService = {
|
|
|
21
21
|
* @note Only the URL parameter conversion is supported. XML posts are not supported.
|
|
22
22
|
*/
|
|
23
23
|
export class WMSSource extends ImageSource {
|
|
24
|
+
/** Base URL to the service */
|
|
25
|
+
url;
|
|
26
|
+
data;
|
|
27
|
+
/** In WMS 1.3.0, replaces references to EPSG:4326 with CRS:84. But not always supported. Default: false */
|
|
28
|
+
substituteCRS84;
|
|
29
|
+
/** In WMS 1.3.0, flips x,y (lng, lat) coordinates for the supplied coordinate systems. Default: ['ESPG:4326'] */
|
|
30
|
+
flipCRS;
|
|
31
|
+
/** Default static WMS parameters */
|
|
32
|
+
wmsParameters;
|
|
33
|
+
/** Default static vendor parameters */
|
|
34
|
+
vendorParameters;
|
|
35
|
+
capabilities = null;
|
|
24
36
|
/** Create a WMSSource */
|
|
25
37
|
constructor(props) {
|
|
26
38
|
super(props);
|
|
27
|
-
this.capabilities = null;
|
|
28
39
|
// TODO - defaults such as version, layers etc could be extracted from a base URL with parameters
|
|
29
40
|
// This would make pasting in any WMS URL more likely to make this class just work.
|
|
30
41
|
// const {baseUrl, parameters} = this._parseWMSUrl(props.url);
|
|
@@ -157,6 +168,9 @@ export class WMSSource extends ImageSource {
|
|
|
157
168
|
/** Generate a URL for the GetFeatureInfo request */
|
|
158
169
|
getFeatureInfoURL(wmsParameters, vendorParameters) {
|
|
159
170
|
wmsParameters = this._getWMS130Parameters(wmsParameters);
|
|
171
|
+
// Replace the GetImage `boundingBox` parameter with the WMS flat `bbox` parameter.
|
|
172
|
+
const { boundingBox, bbox } = wmsParameters;
|
|
173
|
+
wmsParameters.bbox = boundingBox ? [...boundingBox[0], ...boundingBox[1]] : bbox;
|
|
160
174
|
const options = {
|
|
161
175
|
version: this.wmsParameters.version,
|
|
162
176
|
// query_layers: [],
|
|
@@ -267,6 +281,20 @@ export class WMSSource extends ImageSource {
|
|
|
267
281
|
value = bbox;
|
|
268
282
|
}
|
|
269
283
|
break;
|
|
284
|
+
case 'x':
|
|
285
|
+
// i is the parameter used in WMS 1.3
|
|
286
|
+
// TODO - change parameter to `i` and convert to `x` if not 1.3
|
|
287
|
+
if (wmsParameters.version === '1.3.0') {
|
|
288
|
+
key = 'i';
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
291
|
+
case 'y':
|
|
292
|
+
// j is the parameter used in WMS 1.3
|
|
293
|
+
// TODO - change parameter to `j` and convert to `y` if not 1.3
|
|
294
|
+
if (wmsParameters.version === '1.3.0') {
|
|
295
|
+
key = 'j';
|
|
296
|
+
}
|
|
297
|
+
break;
|
|
270
298
|
default:
|
|
271
299
|
// do nothing
|
|
272
300
|
}
|
|
@@ -8,19 +8,21 @@ export type WCSLoaderOptions = LoaderOptions & {
|
|
|
8
8
|
* Loader for the response to the WCS GetCapability request
|
|
9
9
|
*/
|
|
10
10
|
export declare const WCSCapabilitiesLoader: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
readonly dataType: WCSCapabilities;
|
|
12
|
+
readonly batchType: never;
|
|
13
|
+
readonly id: "wcs-capabilities";
|
|
14
|
+
readonly name: "WFS Capabilities";
|
|
15
|
+
readonly module: "wms";
|
|
16
|
+
readonly version: any;
|
|
17
|
+
readonly worker: false;
|
|
18
|
+
readonly extensions: ["xml"];
|
|
19
|
+
readonly mimeTypes: ["application/vnd.ogc.wcs_xml", "application/xml", "text/xml"];
|
|
20
|
+
readonly testText: typeof testXMLFile;
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly wms: {};
|
|
21
23
|
};
|
|
22
|
-
parse: (arrayBuffer: ArrayBuffer, options?: WCSLoaderOptions) => Promise<WCSCapabilities>;
|
|
23
|
-
parseTextSync: (text: string, options?: WCSLoaderOptions) => WCSCapabilities;
|
|
24
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: WCSLoaderOptions) => Promise<WCSCapabilities>;
|
|
25
|
+
readonly parseTextSync: (text: string, options?: WCSLoaderOptions) => WCSCapabilities;
|
|
24
26
|
};
|
|
25
27
|
declare function testXMLFile(text: string): boolean;
|
|
26
28
|
export declare const _typecheckWFSCapabilitiesLoader: LoaderWithParser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wcs-capabilities-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wcs-capabilities-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,eAAe,EAAC,4CAAyC;AAOtE,OAAO,EAAC,eAAe,EAAC,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"wcs-capabilities-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wcs-capabilities-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,eAAe,EAAC,4CAAyC;AAOtE,OAAO,EAAC,eAAe,EAAC,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kCAgBL,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;CACqB,CAAC;AAEhF,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C;AAED,eAAO,MAAM,+BAA+B,EAAE,gBAAwC,CAAC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import { parseWCSCapabilities } from "./lib/wcs/parse-wcs-capabilities.js";
|
|
3
3
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
4
4
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
5
|
-
const VERSION = typeof "4.2.0-alpha.
|
|
5
|
+
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
|
|
6
6
|
/**
|
|
7
7
|
* Loader for the response to the WCS GetCapability request
|
|
8
8
|
*/
|
|
9
9
|
export const WCSCapabilitiesLoader = {
|
|
10
|
+
dataType: null,
|
|
11
|
+
batchType: null,
|
|
10
12
|
id: 'wcs-capabilities',
|
|
11
13
|
name: 'WFS Capabilities',
|
|
12
14
|
module: 'wms',
|
|
@@ -7,6 +7,23 @@ export type WFSLoaderOptions = LoaderOptions & {
|
|
|
7
7
|
/**
|
|
8
8
|
* Loader for the response to the WFS GetCapability request
|
|
9
9
|
*/
|
|
10
|
-
export declare const WFSCapabilitiesLoader:
|
|
10
|
+
export declare const WFSCapabilitiesLoader: {
|
|
11
|
+
readonly dataType: WFSCapabilities;
|
|
12
|
+
readonly batchType: never;
|
|
13
|
+
readonly id: "wfs-capabilities";
|
|
14
|
+
readonly name: "WFS Capabilities";
|
|
15
|
+
readonly module: "wms";
|
|
16
|
+
readonly version: any;
|
|
17
|
+
readonly worker: false;
|
|
18
|
+
readonly extensions: ["xml"];
|
|
19
|
+
readonly mimeTypes: ["application/vnd.ogc.wfs_xml", "application/xml", "text/xml"];
|
|
20
|
+
readonly testText: typeof testXMLFile;
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly wfs: {};
|
|
23
|
+
};
|
|
24
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: WFSLoaderOptions) => Promise<WFSCapabilities>;
|
|
25
|
+
readonly parseTextSync: (text: string, options?: WFSLoaderOptions) => WFSCapabilities;
|
|
26
|
+
};
|
|
27
|
+
declare function testXMLFile(text: string): boolean;
|
|
11
28
|
export declare const _typecheckWFSCapabilitiesLoader: LoaderWithParser;
|
|
12
29
|
//# sourceMappingURL=wfs-capabilities-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wfs-capabilities-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wfs-capabilities-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,eAAe,EAAC,4CAAyC;AAOtE,YAAY,EAAC,eAAe,EAAC,CAAC;AAE9B,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"wfs-capabilities-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wfs-capabilities-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,eAAe,EAAC,4CAAyC;AAOtE,YAAY,EAAC,eAAe,EAAC,CAAC;AAE9B,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kCAgBL,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;CACqB,CAAC;AAEhF,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C;AAED,eAAO,MAAM,+BAA+B,EAAE,gBAAwC,CAAC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import { parseWFSCapabilities } from "./lib/wfs/parse-wfs-capabilities.js";
|
|
3
3
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
4
4
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
5
|
-
const VERSION = typeof "4.2.0-alpha.
|
|
5
|
+
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
|
|
6
6
|
/**
|
|
7
7
|
* Loader for the response to the WFS GetCapability request
|
|
8
8
|
*/
|
|
9
9
|
export const WFSCapabilitiesLoader = {
|
|
10
|
+
dataType: null,
|
|
11
|
+
batchType: null,
|
|
10
12
|
id: 'wfs-capabilities',
|
|
11
13
|
name: 'WFS Capabilities',
|
|
12
14
|
module: 'wms',
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import type { LoaderWithParser } from '@loaders.gl/loader-utils';
|
|
2
1
|
import type { XMLLoaderOptions } from '@loaders.gl/xml';
|
|
3
2
|
import type { WMSFeatureInfo } from "../lib/parsers/wms/parse-wms-features.js";
|
|
4
3
|
export { WMSFeatureInfo };
|
|
5
4
|
/**
|
|
6
5
|
* Loader for the response to the WMS GetFeatureInfo request
|
|
7
6
|
*/
|
|
8
|
-
export declare const WMSFeatureInfoLoader:
|
|
9
|
-
|
|
7
|
+
export declare const WMSFeatureInfoLoader: {
|
|
8
|
+
readonly dataType: WMSFeatureInfo;
|
|
9
|
+
readonly id: "wms-feature-info";
|
|
10
|
+
readonly name: "WMS FeatureInfo";
|
|
11
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: XMLLoaderOptions) => Promise<WMSFeatureInfo>;
|
|
12
|
+
readonly parseTextSync: (text: string, options?: XMLLoaderOptions) => WMSFeatureInfo;
|
|
13
|
+
readonly batchType: never;
|
|
14
|
+
readonly module: "wms";
|
|
15
|
+
readonly version: any;
|
|
16
|
+
readonly worker: false;
|
|
17
|
+
readonly extensions: ["xml"];
|
|
18
|
+
readonly mimeTypes: ["application/vnd.ogc.wms_xml", "application/xml", "text/xml"];
|
|
19
|
+
readonly testText: (text: string) => boolean;
|
|
20
|
+
readonly options: {
|
|
21
|
+
readonly wms: {};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
10
24
|
//# sourceMappingURL=wms-feature-info-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms-feature-info-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wms-feature-info-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wms-feature-info-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wms-feature-info-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAGtD,OAAO,KAAK,EAAC,cAAc,EAAC,iDAA8C;AAG1E,OAAO,EAAC,cAAc,EAAC,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;kCAOJ,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;;;;;;;;;;;CACoB,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
// loaders.gl
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright vis.gl contributors
|
|
2
4
|
import { WMSCapabilitiesLoader } from "../wms-capabilities-loader.js";
|
|
3
5
|
import { parseWMSFeatureInfo } from "../lib/parsers/wms/parse-wms-features.js";
|
|
4
6
|
/**
|
|
5
7
|
* Loader for the response to the WMS GetFeatureInfo request
|
|
6
8
|
*/
|
|
7
|
-
// @ts-expect-error
|
|
8
9
|
export const WMSFeatureInfoLoader = {
|
|
9
10
|
...WMSCapabilitiesLoader,
|
|
11
|
+
dataType: null,
|
|
10
12
|
id: 'wms-feature-info',
|
|
11
13
|
name: 'WMS FeatureInfo',
|
|
12
14
|
parse: async (arrayBuffer, options) => parseWMSFeatureInfo(new TextDecoder().decode(arrayBuffer), options),
|
|
13
15
|
parseTextSync: (text, options) => parseWMSFeatureInfo(text, options)
|
|
14
16
|
};
|
|
15
|
-
export const _typecheckWMSFeatureInfoLoader = WMSFeatureInfoLoader;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LoaderWithParser } from '@loaders.gl/loader-utils';
|
|
2
1
|
import type { XMLLoaderOptions } from '@loaders.gl/xml';
|
|
3
2
|
import type { WMSLayerDescription } from "../lib/parsers/wms/parse-wms-layer-description.js";
|
|
4
3
|
export { WMSLayerDescription };
|
|
@@ -6,33 +5,20 @@ export { WMSLayerDescription };
|
|
|
6
5
|
* Loader for the response to the WMS DescribeLayer request
|
|
7
6
|
*/
|
|
8
7
|
export declare const WMSLayerDescriptionLoader: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
batchType
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
text?: boolean | undefined;
|
|
25
|
-
tests?: (string | ArrayBuffer | ((ArrayBuffer: ArrayBuffer) => boolean))[] | undefined;
|
|
26
|
-
supported?: boolean | undefined;
|
|
27
|
-
testText?: ((string: string) => boolean) | undefined;
|
|
28
|
-
preload?: ((url: string, options?: {
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
} | undefined) => any) | undefined;
|
|
31
|
-
parseFile?: ((file: import("@loaders.gl/loader-utils").ReadableFile, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => Promise<import("../wms-capabilities-loader").WMSCapabilities>) | undefined;
|
|
32
|
-
parseSync?: ((arrayBuffer: ArrayBuffer, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => import("../wms-capabilities-loader").WMSCapabilities) | undefined;
|
|
33
|
-
parseInBatches?: ((iterator: AsyncIterable<ArrayBuffer> | Iterable<ArrayBuffer>, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => AsyncIterable<never>) | undefined;
|
|
34
|
-
parseFileInBatches?: ((file: import("@loaders.gl/loader-utils").ReadableFile, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => AsyncIterable<never>) | undefined;
|
|
35
|
-
parseText?: ((text: string, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => Promise<import("../wms-capabilities-loader").WMSCapabilities>) | undefined;
|
|
8
|
+
readonly dataType: WMSLayerDescription;
|
|
9
|
+
readonly id: "wms-layer-description";
|
|
10
|
+
readonly name: "WMS DescribeLayer";
|
|
11
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: XMLLoaderOptions) => Promise<WMSLayerDescription>;
|
|
12
|
+
readonly parseTextSync: (text: string, options?: XMLLoaderOptions) => WMSLayerDescription;
|
|
13
|
+
readonly batchType: never;
|
|
14
|
+
readonly module: "wms";
|
|
15
|
+
readonly version: any;
|
|
16
|
+
readonly worker: false;
|
|
17
|
+
readonly extensions: ["xml"];
|
|
18
|
+
readonly mimeTypes: ["application/vnd.ogc.wms_xml", "application/xml", "text/xml"];
|
|
19
|
+
readonly testText: (text: string) => boolean;
|
|
20
|
+
readonly options: {
|
|
21
|
+
readonly wms: {};
|
|
22
|
+
};
|
|
36
23
|
};
|
|
37
|
-
export declare const _typecheckWMSFeatureInfoLoader: LoaderWithParser;
|
|
38
24
|
//# sourceMappingURL=wms-layer-description-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms-layer-description-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wms-layer-description-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wms-layer-description-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wms-layer-description-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAGtD,OAAO,KAAK,EAAC,mBAAmB,EAAC,0DAAuD;AAGxF,OAAO,EAAC,mBAAmB,EAAC,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;kCAOT,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;;;;;;;;;;;CACyB,CAAC"}
|
|
@@ -6,9 +6,9 @@ import { parseWMSLayerDescription } from "../lib/parsers/wms/parse-wms-layer-des
|
|
|
6
6
|
*/
|
|
7
7
|
export const WMSLayerDescriptionLoader = {
|
|
8
8
|
...WMSCapabilitiesLoader,
|
|
9
|
+
dataType: null,
|
|
9
10
|
id: 'wms-layer-description',
|
|
10
11
|
name: 'WMS DescribeLayer',
|
|
11
12
|
parse: async (arrayBuffer, options) => parseWMSLayerDescription(new TextDecoder().decode(arrayBuffer), options),
|
|
12
13
|
parseTextSync: (text, options) => parseWMSLayerDescription(text, options)
|
|
13
14
|
};
|
|
14
|
-
export const _typecheckWMSFeatureInfoLoader = WMSLayerDescriptionLoader;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LoaderWithParser } from '@loaders.gl/loader-utils';
|
|
2
2
|
import type { XMLLoaderOptions } from '@loaders.gl/xml';
|
|
3
|
+
import { WMTSCapabilities } from "./lib/wmts/parse-wmts-capabilities.js";
|
|
3
4
|
export type WMTSLoaderOptions = XMLLoaderOptions & {
|
|
4
5
|
wmts?: {};
|
|
5
6
|
};
|
|
@@ -7,19 +8,21 @@ export type WMTSLoaderOptions = XMLLoaderOptions & {
|
|
|
7
8
|
* Loader for the response to the WMTS GetCapability request
|
|
8
9
|
*/
|
|
9
10
|
export declare const WMTSCapabilitiesLoader: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
readonly dataType: WMTSCapabilities;
|
|
12
|
+
readonly batchType: never;
|
|
13
|
+
readonly id: "wmts-capabilities";
|
|
14
|
+
readonly name: "WMTS Capabilities";
|
|
15
|
+
readonly module: "wms";
|
|
16
|
+
readonly version: any;
|
|
17
|
+
readonly worker: false;
|
|
18
|
+
readonly extensions: ["xml"];
|
|
19
|
+
readonly mimeTypes: ["application/vnd.ogc.wmts_xml", "application/xml", "text/xml"];
|
|
20
|
+
readonly testText: typeof testXMLFile;
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly wms: {};
|
|
20
23
|
};
|
|
21
|
-
parse: (arrayBuffer: ArrayBuffer, options?: WMTSLoaderOptions) => Promise<
|
|
22
|
-
parseTextSync: (text: string, options?: WMTSLoaderOptions) =>
|
|
24
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: WMTSLoaderOptions) => Promise<WMTSCapabilities>;
|
|
25
|
+
readonly parseTextSync: (text: string, options?: WMTSLoaderOptions) => WMTSCapabilities;
|
|
23
26
|
};
|
|
24
27
|
declare function testXMLFile(text: string): boolean;
|
|
25
28
|
export declare const _typecheckWMTSCapabilitiesLoader: LoaderWithParser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wmts-capabilities-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wmts-capabilities-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"wmts-capabilities-loader.d.ts","sourceRoot":"","sources":["../../src/wip/wmts-capabilities-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAwB,gBAAgB,EAAC,8CAA2C;AAQ3F,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IACjD,IAAI,CAAC,EAAE,EAAE,CAAC;CACX,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;kCAgBN,WAAW,YAAY,iBAAiB;mCAE7C,MAAM,YAAY,iBAAiB;CACsB,CAAC;AAElF,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C;AAED,eAAO,MAAM,gCAAgC,EAAE,gBAAyC,CAAC"}
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
import { parseWMTSCapabilities } from "./lib/wmts/parse-wmts-capabilities.js";
|
|
4
4
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
5
5
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
6
|
-
const VERSION = typeof "4.2.0-alpha.
|
|
6
|
+
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
|
|
7
7
|
/**
|
|
8
8
|
* Loader for the response to the WMTS GetCapability request
|
|
9
9
|
*/
|
|
10
10
|
export const WMTSCapabilitiesLoader = {
|
|
11
|
+
dataType: null,
|
|
12
|
+
batchType: null,
|
|
11
13
|
id: 'wmts-capabilities',
|
|
12
14
|
name: 'WMTS Capabilities',
|
|
13
15
|
module: 'wms',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LoaderWithParser } from '@loaders.gl/loader-utils';
|
|
2
1
|
import type { XMLLoaderOptions } from '@loaders.gl/xml';
|
|
3
2
|
import { WMSCapabilities } from "./lib/parsers/wms/parse-wms-capabilities.js";
|
|
4
3
|
export type { WMSCapabilities, WMSLayer, WMSBoundingBox, WMSDimension, WMSRequest, WMSExceptions } from "./lib/parsers/wms/parse-wms-capabilities.js";
|
|
@@ -15,5 +14,22 @@ export type WMSCapabilitiesLoaderOptions = XMLLoaderOptions & {
|
|
|
15
14
|
/**
|
|
16
15
|
* Loader for the response to the WMS GetCapability request
|
|
17
16
|
*/
|
|
18
|
-
export declare const WMSCapabilitiesLoader:
|
|
17
|
+
export declare const WMSCapabilitiesLoader: {
|
|
18
|
+
readonly dataType: WMSCapabilities;
|
|
19
|
+
readonly batchType: never;
|
|
20
|
+
readonly id: "wms-capabilities";
|
|
21
|
+
readonly name: "WMS Capabilities";
|
|
22
|
+
readonly module: "wms";
|
|
23
|
+
readonly version: any;
|
|
24
|
+
readonly worker: false;
|
|
25
|
+
readonly extensions: ["xml"];
|
|
26
|
+
readonly mimeTypes: ["application/vnd.ogc.wms_xml", "application/xml", "text/xml"];
|
|
27
|
+
readonly testText: typeof testXMLFile;
|
|
28
|
+
readonly options: {
|
|
29
|
+
readonly wms: {};
|
|
30
|
+
};
|
|
31
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: WMSCapabilitiesLoaderOptions) => Promise<WMSCapabilities>;
|
|
32
|
+
readonly parseTextSync: (text: string, options?: WMSCapabilitiesLoaderOptions) => WMSCapabilities;
|
|
33
|
+
};
|
|
34
|
+
declare function testXMLFile(text: string): boolean;
|
|
19
35
|
//# sourceMappingURL=wms-capabilities-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms-capabilities-loader.d.ts","sourceRoot":"","sources":["../src/wms-capabilities-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wms-capabilities-loader.d.ts","sourceRoot":"","sources":["../src/wms-capabilities-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAC,eAAe,EAAuB,oDAAiD;AAO/F,YAAY,EACV,eAAe,EACf,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACd,oDAAiD;AAElD,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,GAAG;IAC5D,GAAG,CAAC,EAAE;QACJ,oDAAoD;QACpD,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,kGAAkG;QAClG,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,kFAAkF;QAClF,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kCAgBL,WAAW,YAAY,4BAA4B;mCAGxD,MAAM,YAAY,4BAA4B;CAGqB,CAAC;AAE5F,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C"}
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { parseWMSCapabilities } from "./lib/parsers/wms/parse-wms-capabilities.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "4.2.0-alpha.
|
|
7
|
+
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
|
|
8
8
|
/**
|
|
9
9
|
* Loader for the response to the WMS GetCapability request
|
|
10
10
|
*/
|
|
11
11
|
export const WMSCapabilitiesLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
12
14
|
id: 'wms-capabilities',
|
|
13
15
|
name: 'WMS Capabilities',
|
|
14
16
|
module: 'wms',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
2
|
export type WMSLoaderOptions = LoaderOptions & {
|
|
3
3
|
wms?: {
|
|
4
4
|
/** By default the error loader will throw an error with the parsed error message */
|
|
@@ -10,5 +10,26 @@ export type WMSLoaderOptions = LoaderOptions & {
|
|
|
10
10
|
/**
|
|
11
11
|
* Loader for the response to the WMS GetCapability request
|
|
12
12
|
*/
|
|
13
|
-
export declare const WMSErrorLoader:
|
|
13
|
+
export declare const WMSErrorLoader: {
|
|
14
|
+
readonly dataType: string;
|
|
15
|
+
readonly batchType: never;
|
|
16
|
+
readonly id: "wms-error";
|
|
17
|
+
readonly name: "WMS Error";
|
|
18
|
+
readonly module: "wms";
|
|
19
|
+
readonly version: any;
|
|
20
|
+
readonly worker: false;
|
|
21
|
+
readonly extensions: ["xml"];
|
|
22
|
+
readonly mimeTypes: ["application/vnd.ogc.se_xml", "application/xml", "text/xml"];
|
|
23
|
+
readonly testText: typeof testXMLFile;
|
|
24
|
+
readonly options: {
|
|
25
|
+
readonly wms: {
|
|
26
|
+
readonly throwOnError: false;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: WMSLoaderOptions) => Promise<string>;
|
|
30
|
+
readonly parseSync: (arrayBuffer: ArrayBuffer, options?: WMSLoaderOptions) => string;
|
|
31
|
+
readonly parseTextSync: (text: string, options?: WMSLoaderOptions) => string;
|
|
32
|
+
};
|
|
33
|
+
declare function testXMLFile(text: string): boolean;
|
|
34
|
+
export {};
|
|
14
35
|
//# sourceMappingURL=wms-error-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms-error-loader.d.ts","sourceRoot":"","sources":["../src/wms-error-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"wms-error-loader.d.ts","sourceRoot":"","sources":["../src/wms-error-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAmB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAO9E,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE;QACJ,oFAAoF;QACpF,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,oCAAoC;QACpC,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;kCAkBE,WAAW,YAAY,gBAAgB,KAAG,QAAQ,MAAM,CAAC;sCAE3D,WAAW,YAAY,gBAAgB,KAAG,MAAM;mCAEnD,MAAM,YAAY,gBAAgB,KAAG,MAAM;CACG,CAAC;AAEvE,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C"}
|
package/dist/wms-error-loader.js
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { parseWMSError } from "./lib/parsers/wms/parse-wms-error.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "4.2.0-alpha.
|
|
7
|
+
const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
|
|
8
8
|
/**
|
|
9
9
|
* Loader for the response to the WMS GetCapability request
|
|
10
10
|
*/
|
|
11
11
|
export const WMSErrorLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
12
14
|
id: 'wms-error',
|
|
13
15
|
name: 'WMS Error',
|
|
14
16
|
module: 'wms',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/wms",
|
|
3
|
-
"version": "4.2.0-
|
|
3
|
+
"version": "4.2.0-beta.1",
|
|
4
4
|
"description": "Framework-independent loaders for the WMS (Web Map Service) standard",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"path": false
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@loaders.gl/images": "4.2.0-
|
|
54
|
-
"@loaders.gl/loader-utils": "4.2.0-
|
|
55
|
-
"@loaders.gl/schema": "4.2.0-
|
|
56
|
-
"@loaders.gl/xml": "4.2.0-
|
|
53
|
+
"@loaders.gl/images": "4.2.0-beta.1",
|
|
54
|
+
"@loaders.gl/loader-utils": "4.2.0-beta.1",
|
|
55
|
+
"@loaders.gl/schema": "4.2.0-beta.1",
|
|
56
|
+
"@loaders.gl/xml": "4.2.0-beta.1",
|
|
57
57
|
"@turf/rewind": "^5.1.5",
|
|
58
58
|
"deep-strict-equal": "^0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@loaders.gl/core": "^4.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "c386a9196516fe3ff24847b40e6c77be039cf905"
|
|
64
64
|
}
|