@loaders.gl/wms 3.4.2 → 3.4.3
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/es5/csw-capabilities-loader.js +1 -1
- package/dist/es5/csw-domain-loader.js +1 -1
- package/dist/es5/csw-records-loader.js +1 -1
- package/dist/es5/gml-loader.js +1 -1
- package/dist/es5/lerc-loader.js +1 -1
- package/dist/es5/lib/sources/image-source.js.map +1 -1
- package/dist/es5/wip/wcs-capabilities-loader.js +1 -1
- package/dist/es5/wip/wfs-capabilities-loader.js +1 -1
- package/dist/es5/wip/wmts-capabilities-loader.js +1 -1
- package/dist/es5/wms-capabilities-loader.js +1 -1
- package/dist/es5/wms-error-loader.js +1 -1
- package/dist/esm/csw-capabilities-loader.js +1 -1
- package/dist/esm/csw-domain-loader.js +1 -1
- package/dist/esm/csw-records-loader.js +1 -1
- package/dist/esm/gml-loader.js +1 -1
- package/dist/esm/lerc-loader.js +1 -1
- package/dist/esm/lib/sources/image-source.js.map +1 -1
- package/dist/esm/wip/wcs-capabilities-loader.js +1 -1
- package/dist/esm/wip/wfs-capabilities-loader.js +1 -1
- package/dist/esm/wip/wmts-capabilities-loader.js +1 -1
- package/dist/esm/wms-capabilities-loader.js +1 -1
- package/dist/esm/wms-error-loader.js +1 -1
- package/dist/lib/sources/image-source.d.ts +12 -3
- package/dist/lib/sources/image-source.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/lib/sources/image-source.ts +13 -3
|
@@ -8,7 +8,7 @@ exports._typecheckCSWCapabilitiesLoader = exports.CSWCapabilitiesLoader = void 0
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseCswCapabilities = require("./lib/parsers/csw/parse-csw-capabilities");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var CSWCapabilitiesLoader = {
|
|
13
13
|
id: 'csw-capabilities',
|
|
14
14
|
name: 'CSW Capabilities',
|
|
@@ -8,7 +8,7 @@ exports._typecheckCSWDomainLoader = exports.CSWDomainLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseCswDomain = require("./lib/parsers/csw/parse-csw-domain");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var CSWDomainLoader = {
|
|
13
13
|
id: 'csw-domain',
|
|
14
14
|
name: 'CSW Domain',
|
|
@@ -8,7 +8,7 @@ exports.CSWRecordsLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseCswRecords = require("./lib/parsers/csw/parse-csw-records");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var CSWRecordsLoader = {
|
|
13
13
|
id: 'csw-records',
|
|
14
14
|
name: 'CSW Domain',
|
package/dist/es5/gml-loader.js
CHANGED
|
@@ -8,7 +8,7 @@ exports._typecheckGMLLoader = exports.GMLLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseGml = require("./lib/parsers/gml/parse-gml");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var GMLLoader = {
|
|
13
13
|
name: 'GML',
|
|
14
14
|
id: 'gml',
|
package/dist/es5/lerc-loader.js
CHANGED
|
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
var Lerc = _interopRequireWildcard(require("lerc"));
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
var VERSION = typeof "3.4.
|
|
14
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
15
15
|
var LERCLoader = {
|
|
16
16
|
id: 'lerc',
|
|
17
17
|
name: 'LERC',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-source.js","names":["_dataSource","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ImageSource","_DataSource","_inherits2","_super","_classCallCheck2","_createClass2","DataSource","exports"],"sources":["../../../../src/lib/sources/image-source.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {ImageType} from '@loaders.gl/images';\nimport type {DataSourceProps} from './data-source';\nimport {DataSource} from './data-source';\n\n/**\n * Normalized capabilities of an Image service\n * @example\n * The WMSService will normalize the response to the WMS `GetCapabilities
|
|
1
|
+
{"version":3,"file":"image-source.js","names":["_dataSource","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ImageSource","_DataSource","_inherits2","_super","_classCallCheck2","_createClass2","DataSource","exports"],"sources":["../../../../src/lib/sources/image-source.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {ImageType} from '@loaders.gl/images';\nimport type {DataSourceProps} from './data-source';\nimport {DataSource} from './data-source';\n\n/**\n * Normalized capabilities of an Image service\n * @example\n * The WMSService will normalize the response to the WMS `GetCapabilities`\n * data structure extracted from WMS XML response into an ImageSourceMetadata.\n */\nexport type ImageSourceMetadata = {\n name: string;\n title?: string;\n abstract?: string;\n keywords: string[];\n layers: ImageSourceLayer[];\n};\n\n/** Description of one data layer in the image source */\nexport type ImageSourceLayer = {\n /** Name of this layer */\n name?: string;\n /** Human readable title of this layer */\n title?: string;\n /** Coordinate systems supported by this layer */\n crs?: string[];\n /** layer limits in unspecified CRS:84-like lng/lat, for quick access w/o CRS calculations. */\n geographicBoundingBox?: [min: [x: number, y: number], max: [x: number, y: number]];\n /** Sub layers of this layer */\n layers?: ImageSourceLayer[];\n\n /** @deprecated from v3.4: non-vis.gl style bounding box. Use `.geographicBoundingBox` instead */\n boundingBox?: [number, number, number, number];\n};\n\n/** Generic parameters for requesting an image from an image source */\nexport type GetImageParameters = {\n /** Layers to render */\n layers: string | string[];\n /** Styling */\n styles?: unknown;\n /** bounding box of the requested map image */\n bbox: [number, number, number, number];\n /** pixel width of returned image */\n width: number;\n /** pixels */\n height: number;\n /** crs for the image (not the bounding box) */\n crs?: string;\n /** requested format for the return image */\n format?: 'image/png';\n};\n\n// Attempt to break down GetImageParameters\nexport type ImageFilters = {\n /** Layers to render */\n layers: string | string[];\n /** Styling */\n styles?: unknown;\n};\n\nexport type ImageRegion = {\n /** bounding box of the requested map image */\n bbox: [number, number, number, number];\n};\n\nexport type ImageFormat = {\n /** pixel width of returned image */\n width: number;\n /** pixels */\n height: number;\n /** crs for the image (not the bounding box) */\n crs?: string;\n /** requested format for the return image */\n format?: 'image/png';\n};\n\nexport type ImageSourceProps = DataSourceProps;\n\n/**\n * MapImageSource - data sources that allow data to be queried by (geospatial) extents\n * @note\n * - If geospatial, bounding box is expected to be in web mercator coordinates\n */\nexport abstract class ImageSource<\n PropsT extends ImageSourceProps = ImageSourceProps\n> extends DataSource<PropsT> {\n abstract getMetadata(): Promise<ImageSourceMetadata>;\n abstract getImage(parameters: GetImageParameters): Promise<ImageType>;\n}\n"],"mappings":";;;;;;;;;;;;AAIA,IAAAA,WAAA,GAAAC,OAAA;AAAyC,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAP,KAAA,EAAAQ,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAS,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAR,OAAA,QAAAC,MAAA;AAAA,SAAAL,0BAAA,eAAAQ,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA;AAAA,IAkFnBC,WAAW,aAAAC,WAAA;EAAA,IAAAC,UAAA,CAAAlB,OAAA,EAAAgB,WAAA,EAAAC,WAAA;EAAA,IAAAE,MAAA,GAAA1B,YAAA,CAAAuB,WAAA;EAAA,SAAAA,YAAA;IAAA,IAAAI,gBAAA,CAAApB,OAAA,QAAAgB,WAAA;IAAA,OAAAG,MAAA,CAAAZ,KAAA,OAAAD,SAAA;EAAA;EAAA,WAAAe,aAAA,CAAArB,OAAA,EAAAgB,WAAA;AAAA,EAEvBM,sBAAU;AAAAC,OAAA,CAAAP,WAAA,GAAAA,WAAA"}
|
|
@@ -8,7 +8,7 @@ exports._typecheckWFSCapabilitiesLoader = exports.WCSCapabilitiesLoader = void 0
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseWcsCapabilities = require("./lib/wcs/parse-wcs-capabilities");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var WCSCapabilitiesLoader = {
|
|
13
13
|
id: 'wcs-capabilities',
|
|
14
14
|
name: 'WFS Capabilities',
|
|
@@ -8,7 +8,7 @@ exports._typecheckWFSCapabilitiesLoader = exports.WFSCapabilitiesLoader = void 0
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseWfsCapabilities = require("./lib/wfs/parse-wfs-capabilities");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var WFSCapabilitiesLoader = {
|
|
13
13
|
id: 'wfs-capabilities',
|
|
14
14
|
name: 'WFS Capabilities',
|
|
@@ -8,7 +8,7 @@ exports._typecheckWMTSCapabilitiesLoader = exports.WMTSCapabilitiesLoader = void
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseWmtsCapabilities = require("./lib/wmts/parse-wmts-capabilities");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var WMTSCapabilitiesLoader = {
|
|
13
13
|
id: 'wmts-capabilities',
|
|
14
14
|
name: 'WMTS Capabilities',
|
|
@@ -8,7 +8,7 @@ exports._typecheckWMSCapabilitiesLoader = exports.WMSCapabilitiesLoader = void 0
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseWmsCapabilities = require("./lib/parsers/wms/parse-wms-capabilities");
|
|
11
|
-
var VERSION = typeof "3.4.
|
|
11
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
12
12
|
var WMSCapabilitiesLoader = {
|
|
13
13
|
id: 'wms-capabilities',
|
|
14
14
|
name: 'WMS Capabilities',
|
|
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
var _parseWmsError = require("./lib/parsers/wms/parse-wms-error");
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
-
var VERSION = typeof "3.4.
|
|
14
|
+
var VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
15
15
|
var WMSErrorLoader = {
|
|
16
16
|
id: 'wms-error',
|
|
17
17
|
name: 'WMS Error',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseCSWCapabilities } from './lib/parsers/csw/parse-csw-capabilities';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const CSWCapabilitiesLoader = {
|
|
4
4
|
id: 'csw-capabilities',
|
|
5
5
|
name: 'CSW Capabilities',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseCSWDomain } from './lib/parsers/csw/parse-csw-domain';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const CSWDomainLoader = {
|
|
4
4
|
id: 'csw-domain',
|
|
5
5
|
name: 'CSW Domain',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseCSWRecords } from './lib/parsers/csw/parse-csw-records';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const CSWRecordsLoader = {
|
|
4
4
|
id: 'csw-records',
|
|
5
5
|
name: 'CSW Domain',
|
package/dist/esm/gml-loader.js
CHANGED
package/dist/esm/lerc-loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-source.js","names":["DataSource","ImageSource"],"sources":["../../../../src/lib/sources/image-source.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {ImageType} from '@loaders.gl/images';\nimport type {DataSourceProps} from './data-source';\nimport {DataSource} from './data-source';\n\n/**\n * Normalized capabilities of an Image service\n * @example\n * The WMSService will normalize the response to the WMS `GetCapabilities
|
|
1
|
+
{"version":3,"file":"image-source.js","names":["DataSource","ImageSource"],"sources":["../../../../src/lib/sources/image-source.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {ImageType} from '@loaders.gl/images';\nimport type {DataSourceProps} from './data-source';\nimport {DataSource} from './data-source';\n\n/**\n * Normalized capabilities of an Image service\n * @example\n * The WMSService will normalize the response to the WMS `GetCapabilities`\n * data structure extracted from WMS XML response into an ImageSourceMetadata.\n */\nexport type ImageSourceMetadata = {\n name: string;\n title?: string;\n abstract?: string;\n keywords: string[];\n layers: ImageSourceLayer[];\n};\n\n/** Description of one data layer in the image source */\nexport type ImageSourceLayer = {\n /** Name of this layer */\n name?: string;\n /** Human readable title of this layer */\n title?: string;\n /** Coordinate systems supported by this layer */\n crs?: string[];\n /** layer limits in unspecified CRS:84-like lng/lat, for quick access w/o CRS calculations. */\n geographicBoundingBox?: [min: [x: number, y: number], max: [x: number, y: number]];\n /** Sub layers of this layer */\n layers?: ImageSourceLayer[];\n\n /** @deprecated from v3.4: non-vis.gl style bounding box. Use `.geographicBoundingBox` instead */\n boundingBox?: [number, number, number, number];\n};\n\n/** Generic parameters for requesting an image from an image source */\nexport type GetImageParameters = {\n /** Layers to render */\n layers: string | string[];\n /** Styling */\n styles?: unknown;\n /** bounding box of the requested map image */\n bbox: [number, number, number, number];\n /** pixel width of returned image */\n width: number;\n /** pixels */\n height: number;\n /** crs for the image (not the bounding box) */\n crs?: string;\n /** requested format for the return image */\n format?: 'image/png';\n};\n\n// Attempt to break down GetImageParameters\nexport type ImageFilters = {\n /** Layers to render */\n layers: string | string[];\n /** Styling */\n styles?: unknown;\n};\n\nexport type ImageRegion = {\n /** bounding box of the requested map image */\n bbox: [number, number, number, number];\n};\n\nexport type ImageFormat = {\n /** pixel width of returned image */\n width: number;\n /** pixels */\n height: number;\n /** crs for the image (not the bounding box) */\n crs?: string;\n /** requested format for the return image */\n format?: 'image/png';\n};\n\nexport type ImageSourceProps = DataSourceProps;\n\n/**\n * MapImageSource - data sources that allow data to be queried by (geospatial) extents\n * @note\n * - If geospatial, bounding box is expected to be in web mercator coordinates\n */\nexport abstract class ImageSource<\n PropsT extends ImageSourceProps = ImageSourceProps\n> extends DataSource<PropsT> {\n abstract getMetadata(): Promise<ImageSourceMetadata>;\n abstract getImage(parameters: GetImageParameters): Promise<ImageType>;\n}\n"],"mappings":"AAIA,SAAQA,UAAU,QAAO,eAAe;AAkFxC,OAAO,MAAeC,WAAW,SAEvBD,UAAU,CAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseWCSCapabilities } from './lib/wcs/parse-wcs-capabilities';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const WCSCapabilitiesLoader = {
|
|
4
4
|
id: 'wcs-capabilities',
|
|
5
5
|
name: 'WFS Capabilities',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseWFSCapabilities } from './lib/wfs/parse-wfs-capabilities';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const WFSCapabilitiesLoader = {
|
|
4
4
|
id: 'wfs-capabilities',
|
|
5
5
|
name: 'WFS Capabilities',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseWMTSCapabilities } from './lib/wmts/parse-wmts-capabilities';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const WMTSCapabilitiesLoader = {
|
|
4
4
|
id: 'wmts-capabilities',
|
|
5
5
|
name: 'WMTS Capabilities',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseWMSCapabilities } from './lib/parsers/wms/parse-wms-capabilities';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const WMSCapabilitiesLoader = {
|
|
4
4
|
id: 'wms-capabilities',
|
|
5
5
|
name: 'WMS Capabilities',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseWMSError } from './lib/parsers/wms/parse-wms-error';
|
|
2
|
-
const VERSION = typeof "3.4.
|
|
2
|
+
const VERSION = typeof "3.4.3" !== 'undefined' ? "3.4.3" : 'latest';
|
|
3
3
|
export const WMSErrorLoader = {
|
|
4
4
|
id: 'wms-error',
|
|
5
5
|
name: 'WMS Error',
|
|
@@ -4,8 +4,8 @@ import { DataSource } from './data-source';
|
|
|
4
4
|
/**
|
|
5
5
|
* Normalized capabilities of an Image service
|
|
6
6
|
* @example
|
|
7
|
-
* The WMSService will normalize the response to the WMS `GetCapabilities`
|
|
8
|
-
* into an ImageSourceMetadata.
|
|
7
|
+
* The WMSService will normalize the response to the WMS `GetCapabilities`
|
|
8
|
+
* data structure extracted from WMS XML response into an ImageSourceMetadata.
|
|
9
9
|
*/
|
|
10
10
|
export type ImageSourceMetadata = {
|
|
11
11
|
name: string;
|
|
@@ -14,13 +14,22 @@ export type ImageSourceMetadata = {
|
|
|
14
14
|
keywords: string[];
|
|
15
15
|
layers: ImageSourceLayer[];
|
|
16
16
|
};
|
|
17
|
+
/** Description of one data layer in the image source */
|
|
17
18
|
export type ImageSourceLayer = {
|
|
19
|
+
/** Name of this layer */
|
|
18
20
|
name?: string;
|
|
21
|
+
/** Human readable title of this layer */
|
|
19
22
|
title?: string;
|
|
23
|
+
/** Coordinate systems supported by this layer */
|
|
20
24
|
crs?: string[];
|
|
21
|
-
|
|
25
|
+
/** layer limits in unspecified CRS:84-like lng/lat, for quick access w/o CRS calculations. */
|
|
26
|
+
geographicBoundingBox?: [min: [x: number, y: number], max: [x: number, y: number]];
|
|
27
|
+
/** Sub layers of this layer */
|
|
22
28
|
layers?: ImageSourceLayer[];
|
|
29
|
+
/** @deprecated from v3.4: non-vis.gl style bounding box. Use `.geographicBoundingBox` instead */
|
|
30
|
+
boundingBox?: [number, number, number, number];
|
|
23
31
|
};
|
|
32
|
+
/** Generic parameters for requesting an image from an image source */
|
|
24
33
|
export type GetImageParameters = {
|
|
25
34
|
/** Layers to render */
|
|
26
35
|
layers: string | string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-source.d.ts","sourceRoot":"","sources":["../../../src/lib/sources/image-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,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|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Framework-independent loaders for the WMS (Web Map Service) standard",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@babel/runtime": "^7.3.1",
|
|
42
|
-
"@loaders.gl/images": "3.4.
|
|
43
|
-
"@loaders.gl/loader-utils": "3.4.
|
|
44
|
-
"@loaders.gl/schema": "3.4.
|
|
45
|
-
"@loaders.gl/xml": "3.4.
|
|
42
|
+
"@loaders.gl/images": "3.4.3",
|
|
43
|
+
"@loaders.gl/loader-utils": "3.4.3",
|
|
44
|
+
"@loaders.gl/schema": "3.4.3",
|
|
45
|
+
"@loaders.gl/xml": "3.4.3",
|
|
46
46
|
"@turf/rewind": "^5.1.5",
|
|
47
47
|
"deep-strict-equal": "^0.2.0",
|
|
48
48
|
"lerc": "^4.0.1"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"xmldom": "0.6.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e60626daeaec1e08eae0009668736f85410f8323"
|
|
54
54
|
}
|
|
@@ -7,8 +7,8 @@ import {DataSource} from './data-source';
|
|
|
7
7
|
/**
|
|
8
8
|
* Normalized capabilities of an Image service
|
|
9
9
|
* @example
|
|
10
|
-
* The WMSService will normalize the response to the WMS `GetCapabilities`
|
|
11
|
-
* into an ImageSourceMetadata.
|
|
10
|
+
* The WMSService will normalize the response to the WMS `GetCapabilities`
|
|
11
|
+
* data structure extracted from WMS XML response into an ImageSourceMetadata.
|
|
12
12
|
*/
|
|
13
13
|
export type ImageSourceMetadata = {
|
|
14
14
|
name: string;
|
|
@@ -18,14 +18,24 @@ export type ImageSourceMetadata = {
|
|
|
18
18
|
layers: ImageSourceLayer[];
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
/** Description of one data layer in the image source */
|
|
21
22
|
export type ImageSourceLayer = {
|
|
23
|
+
/** Name of this layer */
|
|
22
24
|
name?: string;
|
|
25
|
+
/** Human readable title of this layer */
|
|
23
26
|
title?: string;
|
|
27
|
+
/** Coordinate systems supported by this layer */
|
|
24
28
|
crs?: string[];
|
|
25
|
-
|
|
29
|
+
/** layer limits in unspecified CRS:84-like lng/lat, for quick access w/o CRS calculations. */
|
|
30
|
+
geographicBoundingBox?: [min: [x: number, y: number], max: [x: number, y: number]];
|
|
31
|
+
/** Sub layers of this layer */
|
|
26
32
|
layers?: ImageSourceLayer[];
|
|
33
|
+
|
|
34
|
+
/** @deprecated from v3.4: non-vis.gl style bounding box. Use `.geographicBoundingBox` instead */
|
|
35
|
+
boundingBox?: [number, number, number, number];
|
|
27
36
|
};
|
|
28
37
|
|
|
38
|
+
/** Generic parameters for requesting an image from an image source */
|
|
29
39
|
export type GetImageParameters = {
|
|
30
40
|
/** Layers to render */
|
|
31
41
|
layers: string | string[];
|