@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
|
@@ -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 { CSWCapabilities } from "./lib/parsers/csw/parse-csw-capabilities.js";
|
|
4
3
|
export type { CSWCapabilities };
|
|
@@ -9,5 +8,22 @@ export type CSWLoaderOptions = XMLLoaderOptions & {
|
|
|
9
8
|
/**
|
|
10
9
|
* Loader for the response to the CSW GetCapability request
|
|
11
10
|
*/
|
|
12
|
-
export declare const CSWCapabilitiesLoader:
|
|
11
|
+
export declare const CSWCapabilitiesLoader: {
|
|
12
|
+
readonly dataType: CSWCapabilities;
|
|
13
|
+
readonly batchType: never;
|
|
14
|
+
readonly id: "csw-capabilities";
|
|
15
|
+
readonly name: "CSW Capabilities";
|
|
16
|
+
readonly module: "wms";
|
|
17
|
+
readonly version: any;
|
|
18
|
+
readonly worker: false;
|
|
19
|
+
readonly extensions: ["xml"];
|
|
20
|
+
readonly mimeTypes: ["application/vnd.ogc.csw_xml", "application/xml", "text/xml"];
|
|
21
|
+
readonly testText: typeof testXMLFile;
|
|
22
|
+
readonly options: {
|
|
23
|
+
readonly csw: {};
|
|
24
|
+
};
|
|
25
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) => Promise<CSWCapabilities>;
|
|
26
|
+
readonly parseTextSync: (text: string, options?: CSWLoaderOptions) => CSWCapabilities;
|
|
27
|
+
};
|
|
28
|
+
declare function testXMLFile(text: string): boolean;
|
|
13
29
|
//# sourceMappingURL=csw-capabilities-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-capabilities-loader.d.ts","sourceRoot":"","sources":["../src/csw-capabilities-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"csw-capabilities-loader.d.ts","sourceRoot":"","sources":["../src/csw-capabilities-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,EAAC,oDAAiD;AAQ9E,YAAY,EAAC,eAAe,EAAC,CAAC;AAE9B,yBAAyB;AACzB,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kCAeL,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;CACqB,CAAC;AAEhF,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C"}
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { parseCSWCapabilities } from "./lib/parsers/csw/parse-csw-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 CSW GetCapability request
|
|
10
10
|
*/
|
|
11
11
|
export const CSWCapabilitiesLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
12
14
|
id: 'csw-capabilities',
|
|
13
15
|
name: 'CSW Capabilities',
|
|
14
16
|
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 type { CSWDomain } from "./lib/parsers/csw/parse-csw-domain.js";
|
|
4
3
|
export type { CSWDomain };
|
|
@@ -8,5 +7,22 @@ export type CSWLoaderOptions = XMLLoaderOptions & {
|
|
|
8
7
|
/**
|
|
9
8
|
* Loader for the response to the CSW GetCapability request
|
|
10
9
|
*/
|
|
11
|
-
export declare const CSWDomainLoader:
|
|
10
|
+
export declare const CSWDomainLoader: {
|
|
11
|
+
readonly dataType: CSWDomain;
|
|
12
|
+
readonly batchType: never;
|
|
13
|
+
readonly id: "csw-domain";
|
|
14
|
+
readonly name: "CSW Domain";
|
|
15
|
+
readonly module: "wms";
|
|
16
|
+
readonly version: any;
|
|
17
|
+
readonly worker: false;
|
|
18
|
+
readonly extensions: ["xml"];
|
|
19
|
+
readonly mimeTypes: ["application/vnd.ogc.csw_xml", "application/xml", "text/xml"];
|
|
20
|
+
readonly testText: typeof testXMLFile;
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly csw: {};
|
|
23
|
+
};
|
|
24
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) => Promise<CSWDomain>;
|
|
25
|
+
readonly parseTextSync: (text: string, options?: CSWLoaderOptions) => CSWDomain;
|
|
26
|
+
};
|
|
27
|
+
declare function testXMLFile(text: string): boolean;
|
|
12
28
|
//# sourceMappingURL=csw-domain-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-domain-loader.d.ts","sourceRoot":"","sources":["../src/csw-domain-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"csw-domain-loader.d.ts","sourceRoot":"","sources":["../src/csw-domain-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAC,SAAS,EAAC,8CAA2C;AAOlE,YAAY,EAAC,SAAS,EAAC,CAAC;AAExB,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;kCAgBC,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;CACe,CAAC;AAE1E,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C"}
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { parseCSWDomain } from "./lib/parsers/csw/parse-csw-domain.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 CSW GetCapability request
|
|
10
10
|
*/
|
|
11
11
|
export const CSWDomainLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
12
14
|
id: 'csw-domain',
|
|
13
15
|
name: 'CSW Domain',
|
|
14
16
|
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 type { CSWRecords } from "./lib/parsers/csw/parse-csw-records.js";
|
|
4
3
|
export { CSWRecords };
|
|
@@ -8,5 +7,22 @@ export type CSWLoaderOptions = XMLLoaderOptions & {
|
|
|
8
7
|
/**
|
|
9
8
|
* Loader for the response to the CSW GetCapability request
|
|
10
9
|
*/
|
|
11
|
-
export declare const CSWRecordsLoader:
|
|
10
|
+
export declare const CSWRecordsLoader: {
|
|
11
|
+
readonly dataType: CSWRecords;
|
|
12
|
+
readonly batchType: never;
|
|
13
|
+
readonly id: "csw-records";
|
|
14
|
+
readonly name: "CSW Records";
|
|
15
|
+
readonly module: "wms";
|
|
16
|
+
readonly version: any;
|
|
17
|
+
readonly worker: false;
|
|
18
|
+
readonly extensions: ["xml"];
|
|
19
|
+
readonly mimeTypes: ["application/vnd.ogc.csw_xml", "application/xml", "text/xml"];
|
|
20
|
+
readonly testText: typeof testXMLFile;
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly csw: {};
|
|
23
|
+
};
|
|
24
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) => Promise<CSWRecords>;
|
|
25
|
+
readonly parseTextSync: (text: string, options?: CSWLoaderOptions) => CSWRecords;
|
|
26
|
+
};
|
|
27
|
+
declare function testXMLFile(text: string): boolean;
|
|
12
28
|
//# sourceMappingURL=csw-records-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-records-loader.d.ts","sourceRoot":"","sources":["../src/csw-records-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"csw-records-loader.d.ts","sourceRoot":"","sources":["../src/csw-records-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAC,UAAU,EAAC,+CAA4C;AAOpE,OAAO,EAAC,UAAU,EAAC,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;kCAeA,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;CACgB,CAAC;AAE3E,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C"}
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { parseCSWRecords } from "./lib/parsers/csw/parse-csw-records.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 CSW GetCapability request
|
|
10
10
|
*/
|
|
11
11
|
export const CSWRecordsLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
12
14
|
id: 'csw-records',
|
|
13
15
|
name: 'CSW Records',
|
|
14
16
|
module: 'wms',
|
package/dist/gml-loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
2
|
import type { Geometry } from "./lib/parsers/gml/parse-gml.js";
|
|
3
3
|
export type GMLLoaderOptions = LoaderOptions & {
|
|
4
4
|
gml?: {};
|
|
@@ -6,5 +6,23 @@ export type GMLLoaderOptions = LoaderOptions & {
|
|
|
6
6
|
/**
|
|
7
7
|
* Loader for the response to the GML GetCapability request
|
|
8
8
|
*/
|
|
9
|
-
export declare const GMLLoader:
|
|
9
|
+
export declare const GMLLoader: {
|
|
10
|
+
readonly dataType: Geometry | null;
|
|
11
|
+
readonly batchType: never;
|
|
12
|
+
readonly name: "GML";
|
|
13
|
+
readonly id: "gml";
|
|
14
|
+
readonly module: "wms";
|
|
15
|
+
readonly version: any;
|
|
16
|
+
readonly worker: false;
|
|
17
|
+
readonly extensions: ["xml"];
|
|
18
|
+
readonly mimeTypes: ["application/vnd.ogc.gml", "application/xml", "text/xml"];
|
|
19
|
+
readonly testText: typeof testXMLFile;
|
|
20
|
+
readonly options: {
|
|
21
|
+
readonly gml: {};
|
|
22
|
+
};
|
|
23
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: GMLLoaderOptions) => Promise<Geometry | null>;
|
|
24
|
+
readonly parseTextSync: (text: string, options?: GMLLoaderOptions) => Geometry | null;
|
|
25
|
+
};
|
|
26
|
+
declare function testXMLFile(text: string): boolean;
|
|
27
|
+
export {};
|
|
10
28
|
//# sourceMappingURL=gml-loader.d.ts.map
|
package/dist/gml-loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gml-loader.d.ts","sourceRoot":"","sources":["../src/gml-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"gml-loader.d.ts","sourceRoot":"","sources":["../src/gml-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAmB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,QAAQ,EAAC,uCAAoC;AAO1D,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;kCAgBO,WAAW,YAAY,gBAAgB;mCAE5C,MAAM,YAAY,gBAAgB;CACqB,CAAC;AAEhF,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1C"}
|
package/dist/gml-loader.js
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { parseGML } from "./lib/parsers/gml/parse-gml.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 GML GetCapability request
|
|
10
10
|
*/
|
|
11
11
|
export const GMLLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
12
14
|
name: 'GML',
|
|
13
15
|
id: 'gml',
|
|
14
16
|
module: 'wms',
|
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
9
|
var __export = (target, all) => {
|
|
9
10
|
for (var name in all)
|
|
10
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -26,6 +27,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
27
|
mod
|
|
27
28
|
));
|
|
28
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var __publicField = (obj, key, value) => {
|
|
31
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
32
|
+
return value;
|
|
33
|
+
};
|
|
29
34
|
|
|
30
35
|
// dist/index.js
|
|
31
36
|
var dist_exports = {};
|
|
@@ -82,8 +87,10 @@ function parseCSWCapabilities(text, options) {
|
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
// dist/csw-capabilities-loader.js
|
|
85
|
-
var VERSION = true ? "4.2.0-alpha.
|
|
90
|
+
var VERSION = true ? "4.2.0-alpha.6" : "latest";
|
|
86
91
|
var CSWCapabilitiesLoader = {
|
|
92
|
+
dataType: null,
|
|
93
|
+
batchType: null,
|
|
87
94
|
id: "csw-capabilities",
|
|
88
95
|
name: "CSW Capabilities",
|
|
89
96
|
module: "wms",
|
|
@@ -128,8 +135,10 @@ function parseCSWDomain(text, options) {
|
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
// dist/csw-domain-loader.js
|
|
131
|
-
var VERSION2 = true ? "4.2.0-alpha.
|
|
138
|
+
var VERSION2 = true ? "4.2.0-alpha.6" : "latest";
|
|
132
139
|
var CSWDomainLoader = {
|
|
140
|
+
dataType: null,
|
|
141
|
+
batchType: null,
|
|
133
142
|
id: "csw-domain",
|
|
134
143
|
name: "CSW Domain",
|
|
135
144
|
module: "wms",
|
|
@@ -192,8 +201,10 @@ function parseCSWRecords(text, options) {
|
|
|
192
201
|
}
|
|
193
202
|
|
|
194
203
|
// dist/csw-records-loader.js
|
|
195
|
-
var VERSION3 = true ? "4.2.0-alpha.
|
|
204
|
+
var VERSION3 = true ? "4.2.0-alpha.6" : "latest";
|
|
196
205
|
var CSWRecordsLoader = {
|
|
206
|
+
dataType: null,
|
|
207
|
+
batchType: null,
|
|
197
208
|
id: "csw-records",
|
|
198
209
|
name: "CSW Records",
|
|
199
210
|
module: "wms",
|
|
@@ -223,8 +234,10 @@ function parseWMSError(text, options) {
|
|
|
223
234
|
}
|
|
224
235
|
|
|
225
236
|
// dist/wms-error-loader.js
|
|
226
|
-
var VERSION4 = true ? "4.2.0-alpha.
|
|
237
|
+
var VERSION4 = true ? "4.2.0-alpha.6" : "latest";
|
|
227
238
|
var WMSErrorLoader = {
|
|
239
|
+
dataType: null,
|
|
240
|
+
batchType: null,
|
|
228
241
|
id: "wms-error",
|
|
229
242
|
name: "WMS Error",
|
|
230
243
|
module: "wms",
|
|
@@ -506,8 +519,10 @@ function addInheritedLayerProps(layer, parent) {
|
|
|
506
519
|
}
|
|
507
520
|
|
|
508
521
|
// dist/wms-capabilities-loader.js
|
|
509
|
-
var VERSION5 = true ? "4.2.0-alpha.
|
|
522
|
+
var VERSION5 = true ? "4.2.0-alpha.6" : "latest";
|
|
510
523
|
var WMSCapabilitiesLoader = {
|
|
524
|
+
dataType: null,
|
|
525
|
+
batchType: null,
|
|
511
526
|
id: "wms-capabilities",
|
|
512
527
|
name: "WMS Capabilities",
|
|
513
528
|
module: "wms",
|
|
@@ -555,6 +570,7 @@ function extractFeature(xmlFeature) {
|
|
|
555
570
|
// dist/wip/wms-feature-info-loader.js
|
|
556
571
|
var WMSFeatureInfoLoader = {
|
|
557
572
|
...WMSCapabilitiesLoader,
|
|
573
|
+
dataType: null,
|
|
558
574
|
id: "wms-feature-info",
|
|
559
575
|
name: "WMS FeatureInfo",
|
|
560
576
|
parse: async (arrayBuffer, options) => parseWMSFeatureInfo(new TextDecoder().decode(arrayBuffer), options),
|
|
@@ -572,6 +588,7 @@ function parseWMSLayerDescription(text, options) {
|
|
|
572
588
|
// dist/wip/wms-layer-description-loader.js
|
|
573
589
|
var WMSLayerDescriptionLoader = {
|
|
574
590
|
...WMSCapabilitiesLoader,
|
|
591
|
+
dataType: null,
|
|
575
592
|
id: "wms-layer-description",
|
|
576
593
|
name: "WMS DescribeLayer",
|
|
577
594
|
parse: async (arrayBuffer, options) => parseWMSLayerDescription(new TextDecoder().decode(arrayBuffer), options),
|
|
@@ -592,8 +609,10 @@ function parseWFSCapabilities(text, options) {
|
|
|
592
609
|
}
|
|
593
610
|
|
|
594
611
|
// dist/wip/wfs-capabilities-loader.js
|
|
595
|
-
var VERSION6 = true ? "4.2.0-alpha.
|
|
612
|
+
var VERSION6 = true ? "4.2.0-alpha.6" : "latest";
|
|
596
613
|
var WFSCapabilitiesLoader = {
|
|
614
|
+
dataType: null,
|
|
615
|
+
batchType: null,
|
|
597
616
|
id: "wfs-capabilities",
|
|
598
617
|
name: "WFS Capabilities",
|
|
599
618
|
module: "wms",
|
|
@@ -994,8 +1013,10 @@ function createChildContext(xml, options, context) {
|
|
|
994
1013
|
}
|
|
995
1014
|
|
|
996
1015
|
// dist/gml-loader.js
|
|
997
|
-
var VERSION7 = true ? "4.2.0-alpha.
|
|
1016
|
+
var VERSION7 = true ? "4.2.0-alpha.6" : "latest";
|
|
998
1017
|
var GMLLoader = {
|
|
1018
|
+
dataType: null,
|
|
1019
|
+
batchType: null,
|
|
999
1020
|
name: "GML",
|
|
1000
1021
|
id: "gml",
|
|
1001
1022
|
module: "wms",
|
|
@@ -1053,10 +1074,21 @@ var WMSService = {
|
|
|
1053
1074
|
create: (props) => new WMSSource(props)
|
|
1054
1075
|
};
|
|
1055
1076
|
var WMSSource = class extends import_loader_utils2.ImageSource {
|
|
1077
|
+
/** Base URL to the service */
|
|
1078
|
+
url;
|
|
1079
|
+
data;
|
|
1080
|
+
/** In WMS 1.3.0, replaces references to EPSG:4326 with CRS:84. But not always supported. Default: false */
|
|
1081
|
+
substituteCRS84;
|
|
1082
|
+
/** In WMS 1.3.0, flips x,y (lng, lat) coordinates for the supplied coordinate systems. Default: ['ESPG:4326'] */
|
|
1083
|
+
flipCRS;
|
|
1084
|
+
/** Default static WMS parameters */
|
|
1085
|
+
wmsParameters;
|
|
1086
|
+
/** Default static vendor parameters */
|
|
1087
|
+
vendorParameters;
|
|
1088
|
+
capabilities = null;
|
|
1056
1089
|
/** Create a WMSSource */
|
|
1057
1090
|
constructor(props) {
|
|
1058
1091
|
super(props);
|
|
1059
|
-
this.capabilities = null;
|
|
1060
1092
|
this.url = props.url;
|
|
1061
1093
|
this.data = props.url;
|
|
1062
1094
|
this.substituteCRS84 = props.substituteCRS84 ?? false;
|
|
@@ -1183,6 +1215,8 @@ var WMSSource = class extends import_loader_utils2.ImageSource {
|
|
|
1183
1215
|
/** Generate a URL for the GetFeatureInfo request */
|
|
1184
1216
|
getFeatureInfoURL(wmsParameters, vendorParameters) {
|
|
1185
1217
|
wmsParameters = this._getWMS130Parameters(wmsParameters);
|
|
1218
|
+
const { boundingBox, bbox } = wmsParameters;
|
|
1219
|
+
wmsParameters.bbox = boundingBox ? [...boundingBox[0], ...boundingBox[1]] : bbox;
|
|
1186
1220
|
const options = {
|
|
1187
1221
|
version: this.wmsParameters.version,
|
|
1188
1222
|
// query_layers: [],
|
|
@@ -1283,6 +1317,16 @@ var WMSSource = class extends import_loader_utils2.ImageSource {
|
|
|
1283
1317
|
value = bbox;
|
|
1284
1318
|
}
|
|
1285
1319
|
break;
|
|
1320
|
+
case "x":
|
|
1321
|
+
if (wmsParameters.version === "1.3.0") {
|
|
1322
|
+
key = "i";
|
|
1323
|
+
}
|
|
1324
|
+
break;
|
|
1325
|
+
case "y":
|
|
1326
|
+
if (wmsParameters.version === "1.3.0") {
|
|
1327
|
+
key = "j";
|
|
1328
|
+
}
|
|
1329
|
+
break;
|
|
1286
1330
|
default:
|
|
1287
1331
|
}
|
|
1288
1332
|
key = key.toUpperCase();
|
|
@@ -1363,11 +1407,12 @@ var ImageService = class extends import_loader_utils3.ImageSource {
|
|
|
1363
1407
|
return url;
|
|
1364
1408
|
}
|
|
1365
1409
|
};
|
|
1366
|
-
ImageService
|
|
1367
|
-
ImageService
|
|
1410
|
+
__publicField(ImageService, "type", "template");
|
|
1411
|
+
__publicField(ImageService, "testURL", (url) => url.toLowerCase().includes("{"));
|
|
1368
1412
|
|
|
1369
1413
|
// dist/services/arcgis/arcgis-image-service.js
|
|
1370
1414
|
var ArcGISImageSource = class extends ImageService {
|
|
1415
|
+
data;
|
|
1371
1416
|
constructor(props) {
|
|
1372
1417
|
super(props);
|
|
1373
1418
|
this.data = props.url;
|
|
@@ -1452,11 +1497,14 @@ function createImageSource(props) {
|
|
|
1452
1497
|
// dist/services/ogc/csw-service.js
|
|
1453
1498
|
var import_loader_utils4 = require("@loaders.gl/loader-utils");
|
|
1454
1499
|
var CSWService = class extends import_loader_utils4.DataSource {
|
|
1500
|
+
capabilities = null;
|
|
1501
|
+
data;
|
|
1502
|
+
url;
|
|
1503
|
+
/** A list of loaders used by the CSWService methods */
|
|
1504
|
+
loaders = [WMSErrorLoader, CSWCapabilitiesLoader];
|
|
1455
1505
|
/** Create a CSWService */
|
|
1456
1506
|
constructor(props) {
|
|
1457
1507
|
super(props);
|
|
1458
|
-
this.capabilities = null;
|
|
1459
|
-
this.loaders = [WMSErrorLoader, CSWCapabilitiesLoader];
|
|
1460
1508
|
this.url = props.url;
|
|
1461
1509
|
this.data = props.url;
|
|
1462
1510
|
}
|
|
@@ -1603,8 +1651,8 @@ var CSWService = class extends import_loader_utils4.DataSource {
|
|
|
1603
1651
|
return new Error(error);
|
|
1604
1652
|
}
|
|
1605
1653
|
};
|
|
1606
|
-
CSWService
|
|
1607
|
-
CSWService
|
|
1654
|
+
__publicField(CSWService, "type", "csw");
|
|
1655
|
+
__publicField(CSWService, "testURL", (url) => url.toLowerCase().includes("csw"));
|
|
1608
1656
|
|
|
1609
1657
|
// dist/services/arcgis/arcgis-server.js
|
|
1610
1658
|
async function getArcGISServices(url, fetchFile = fetch) {
|