@loaders.gl/wms
Advanced tools
Comparing version 4.0.0-alpha.22 to 4.0.0-alpha.23
@@ -12,19 +12,3 @@ import type { LoaderWithParser } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const CSWCapabilitiesLoader: { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: typeof testXMLFile; | ||
options: { | ||
csw: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) => Promise<CSWCapabilities>; | ||
parseTextSync: (text: string, options?: CSWLoaderOptions) => CSWCapabilities; | ||
}; | ||
declare function testXMLFile(text: string): boolean; | ||
export declare const _typecheckCSWCapabilitiesLoader: LoaderWithParser; | ||
export declare const CSWCapabilitiesLoader: LoaderWithParser<CSWCapabilities, never, CSWLoaderOptions>; | ||
//# sourceMappingURL=csw-capabilities-loader.d.ts.map |
"use strict"; | ||
// loaders.gl, MIT license | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._typecheckCSWCapabilitiesLoader = exports.CSWCapabilitiesLoader = void 0; | ||
exports.CSWCapabilitiesLoader = void 0; | ||
const parse_csw_capabilities_1 = require("./lib/parsers/csw/parse-csw-capabilities"); | ||
@@ -31,2 +31,1 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
} | ||
exports._typecheckCSWCapabilitiesLoader = exports.CSWCapabilitiesLoader; |
@@ -11,19 +11,3 @@ import type { LoaderWithParser } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const CSWDomainLoader: { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: typeof testXMLFile; | ||
options: { | ||
csw: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) => Promise<CSWDomain>; | ||
parseTextSync: (text: string, options?: CSWLoaderOptions) => CSWDomain; | ||
}; | ||
declare function testXMLFile(text: string): boolean; | ||
export declare const _typecheckCSWDomainLoader: LoaderWithParser; | ||
export declare const CSWDomainLoader: LoaderWithParser<CSWDomain, never, CSWLoaderOptions>; | ||
//# sourceMappingURL=csw-domain-loader.d.ts.map |
"use strict"; | ||
// loaders.gl, MIT license | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._typecheckCSWDomainLoader = exports.CSWDomainLoader = void 0; | ||
exports.CSWDomainLoader = void 0; | ||
const parse_csw_domain_1 = require("./lib/parsers/csw/parse-csw-domain"); | ||
@@ -31,2 +31,1 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
} | ||
exports._typecheckCSWDomainLoader = exports.CSWDomainLoader; |
@@ -11,3 +11,3 @@ import type { LoaderWithParser } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const CSWRecordsLoader: LoaderWithParser; | ||
export declare const CSWRecordsLoader: LoaderWithParser<CSWRecords, never, CSWLoaderOptions>; | ||
//# sourceMappingURL=csw-records-loader.d.ts.map |
@@ -14,3 +14,3 @@ "use strict"; | ||
id: 'csw-records', | ||
name: 'CSW Domain', | ||
name: 'CSW Records', | ||
module: 'wms', | ||
@@ -17,0 +17,0 @@ version: VERSION, |
@@ -7,7 +7,7 @@ "use strict"; | ||
}); | ||
exports._typecheckCSWCapabilitiesLoader = exports.CSWCapabilitiesLoader = void 0; | ||
exports.CSWCapabilitiesLoader = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
var _parseCswCapabilities = require("./lib/parsers/csw/parse-csw-capabilities"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var CSWCapabilitiesLoader = { | ||
@@ -50,4 +50,2 @@ id: 'csw-capabilities', | ||
} | ||
var _typecheckCSWCapabilitiesLoader = CSWCapabilitiesLoader; | ||
exports._typecheckCSWCapabilitiesLoader = _typecheckCSWCapabilitiesLoader; | ||
//# sourceMappingURL=csw-capabilities-loader.js.map |
@@ -7,7 +7,7 @@ "use strict"; | ||
}); | ||
exports._typecheckCSWDomainLoader = exports.CSWDomainLoader = void 0; | ||
exports.CSWDomainLoader = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
var _parseCswDomain = require("./lib/parsers/csw/parse-csw-domain"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var CSWDomainLoader = { | ||
@@ -50,4 +50,2 @@ id: 'csw-domain', | ||
} | ||
var _typecheckCSWDomainLoader = CSWDomainLoader; | ||
exports._typecheckCSWDomainLoader = _typecheckCSWDomainLoader; | ||
//# sourceMappingURL=csw-domain-loader.js.map |
@@ -11,6 +11,6 @@ "use strict"; | ||
var _parseCswRecords = require("./lib/parsers/csw/parse-csw-records"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var CSWRecordsLoader = { | ||
id: 'csw-records', | ||
name: 'CSW Domain', | ||
name: 'CSW Records', | ||
module: 'wms', | ||
@@ -17,0 +17,0 @@ version: VERSION, |
@@ -7,7 +7,7 @@ "use strict"; | ||
}); | ||
exports._typecheckGMLLoader = exports.GMLLoader = void 0; | ||
exports.GMLLoader = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
var _parseGml = require("./lib/parsers/gml/parse-gml"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var GMLLoader = { | ||
@@ -50,4 +50,2 @@ name: 'GML', | ||
} | ||
var _typecheckGMLLoader = GMLLoader; | ||
exports._typecheckGMLLoader = _typecheckGMLLoader; | ||
//# sourceMappingURL=gml-loader.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
}); | ||
exports._typecheckLERCLoader = exports.LERCLoader = void 0; | ||
exports.LERCLoader = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
@@ -15,3 +15,3 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
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; } | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var LERCLoader = { | ||
@@ -69,4 +69,2 @@ id: 'lerc', | ||
} | ||
var _typecheckLERCLoader = LERCLoader; | ||
exports._typecheckLERCLoader = _typecheckLERCLoader; | ||
//# sourceMappingURL=lerc-loader.js.map |
@@ -339,3 +339,4 @@ "use strict"; | ||
if (!response.ok || _wmsErrorLoader.WMSErrorLoader.mimeTypes.includes(contentType)) { | ||
var error = _wmsErrorLoader.WMSErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
var _CSWErrorLoader$parse; | ||
var error = (_CSWErrorLoader$parse = _wmsErrorLoader.WMSErrorLoader.parseSync) === null || _CSWErrorLoader$parse === void 0 ? void 0 : _CSWErrorLoader$parse.call(_wmsErrorLoader.WMSErrorLoader, arrayBuffer, this.props.loadOptions); | ||
throw new Error(error); | ||
@@ -347,3 +348,4 @@ } | ||
value: function _parseError(arrayBuffer) { | ||
var error = _wmsErrorLoader.WMSErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
var _CSWErrorLoader$parse2; | ||
var error = (_CSWErrorLoader$parse2 = _wmsErrorLoader.WMSErrorLoader.parseSync) === null || _CSWErrorLoader$parse2 === void 0 ? void 0 : _CSWErrorLoader$parse2.call(_wmsErrorLoader.WMSErrorLoader, arrayBuffer, this.props.loadOptions); | ||
return new Error(error); | ||
@@ -350,0 +352,0 @@ } |
@@ -46,3 +46,2 @@ "use strict"; | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "capabilities", null); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "loaders", [_images.ImageLoader, _wmsErrorLoader.WMSErrorLoader, _wmsCapabilitiesLoader.WMSCapabilitiesLoader, _wmsFeatureInfoLoader.WMSFeatureInfoLoader, _wmsLayerDescriptionLoader.WMSLayerDescriptionLoader]); | ||
_this.url = props.url; | ||
@@ -511,2 +510,3 @@ _this.substituteCRS84 = (_props$substituteCRS = props.substituteCRS84) !== null && _props$substituteCRS !== void 0 ? _props$substituteCRS : false; | ||
if (!response.ok || _wmsErrorLoader.WMSErrorLoader.mimeTypes.includes(contentType)) { | ||
var _WMSErrorLoader$parse; | ||
var loadOptions = (0, _loaderUtils.mergeLoaderOptions)(this.loadOptions, { | ||
@@ -517,3 +517,3 @@ wms: { | ||
}); | ||
var error = _wmsErrorLoader.WMSErrorLoader.parseSync(arrayBuffer, loadOptions); | ||
var error = (_WMSErrorLoader$parse = _wmsErrorLoader.WMSErrorLoader.parseSync) === null || _WMSErrorLoader$parse === void 0 ? void 0 : _WMSErrorLoader$parse.call(_wmsErrorLoader.WMSErrorLoader, arrayBuffer, loadOptions); | ||
throw new Error(error); | ||
@@ -525,3 +525,4 @@ } | ||
value: function _parseError(arrayBuffer) { | ||
var error = _wmsErrorLoader.WMSErrorLoader.parseSync(arrayBuffer, this.loadOptions); | ||
var _WMSErrorLoader$parse2; | ||
var error = (_WMSErrorLoader$parse2 = _wmsErrorLoader.WMSErrorLoader.parseSync) === null || _WMSErrorLoader$parse2 === void 0 ? void 0 : _WMSErrorLoader$parse2.call(_wmsErrorLoader.WMSErrorLoader, arrayBuffer, this.loadOptions); | ||
return new Error(error); | ||
@@ -528,0 +529,0 @@ } |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseWcsCapabilities = require("./lib/wcs/parse-wcs-capabilities"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var WCSCapabilitiesLoader = { | ||
@@ -14,0 +14,0 @@ id: 'wcs-capabilities', |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseWfsCapabilities = require("./lib/wfs/parse-wfs-capabilities"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var WFSCapabilitiesLoader = { | ||
@@ -23,3 +23,3 @@ id: 'wfs-capabilities', | ||
options: { | ||
wms: {} | ||
wfs: {} | ||
}, | ||
@@ -26,0 +26,0 @@ parse: function () { |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseWmtsCapabilities = require("./lib/wmts/parse-wmts-capabilities"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var WMTSCapabilitiesLoader = { | ||
@@ -14,0 +14,0 @@ id: 'wmts-capabilities', |
@@ -7,7 +7,7 @@ "use strict"; | ||
}); | ||
exports._typecheckWMSCapabilitiesLoader = exports.WMSCapabilitiesLoader = void 0; | ||
exports.WMSCapabilitiesLoader = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
var _parseWmsCapabilities = require("./lib/parsers/wms/parse-wms-capabilities"); | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var WMSCapabilitiesLoader = { | ||
@@ -50,4 +50,2 @@ id: 'wms-capabilities', | ||
} | ||
var _typecheckWMSCapabilitiesLoader = WMSCapabilitiesLoader; | ||
exports._typecheckWMSCapabilitiesLoader = _typecheckWMSCapabilitiesLoader; | ||
//# sourceMappingURL=wms-capabilities-loader.js.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
}); | ||
exports._typecheckWMSErrorLoader = exports.WMSErrorLoader = void 0; | ||
exports.WMSErrorLoader = void 0; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
@@ -15,3 +15,3 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
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; } | ||
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
var WMSErrorLoader = { | ||
@@ -68,4 +68,2 @@ id: 'wms-error', | ||
} | ||
var _typecheckWMSErrorLoader = WMSErrorLoader; | ||
exports._typecheckWMSErrorLoader = _typecheckWMSErrorLoader; | ||
//# sourceMappingURL=wms-error-loader.js.map |
import { parseCSWCapabilities } from './lib/parsers/csw/parse-csw-capabilities'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const CSWCapabilitiesLoader = { | ||
@@ -21,3 +21,2 @@ id: 'csw-capabilities', | ||
} | ||
export const _typecheckCSWCapabilitiesLoader = CSWCapabilitiesLoader; | ||
//# sourceMappingURL=csw-capabilities-loader.js.map |
import { parseCSWDomain } from './lib/parsers/csw/parse-csw-domain'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const CSWDomainLoader = { | ||
@@ -21,3 +21,2 @@ id: 'csw-domain', | ||
} | ||
export const _typecheckCSWDomainLoader = CSWDomainLoader; | ||
//# sourceMappingURL=csw-domain-loader.js.map |
import { parseCSWRecords } from './lib/parsers/csw/parse-csw-records'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const CSWRecordsLoader = { | ||
id: 'csw-records', | ||
name: 'CSW Domain', | ||
name: 'CSW Records', | ||
module: 'wms', | ||
@@ -7,0 +7,0 @@ version: VERSION, |
import { parseGML } from './lib/parsers/gml/parse-gml'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const GMLLoader = { | ||
@@ -21,3 +21,2 @@ name: 'GML', | ||
} | ||
export const _typecheckGMLLoader = GMLLoader; | ||
//# sourceMappingURL=gml-loader.js.map |
import * as Lerc from 'lerc'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const LERCLoader = { | ||
@@ -21,3 +21,2 @@ id: 'lerc', | ||
} | ||
export const _typecheckLERCLoader = LERCLoader; | ||
//# sourceMappingURL=lerc-loader.js.map |
@@ -138,3 +138,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
if (!response.ok || CSWErrorLoader.mimeTypes.includes(contentType)) { | ||
const error = CSWErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
var _CSWErrorLoader$parse; | ||
const error = (_CSWErrorLoader$parse = CSWErrorLoader.parseSync) === null || _CSWErrorLoader$parse === void 0 ? void 0 : _CSWErrorLoader$parse.call(CSWErrorLoader, arrayBuffer, this.props.loadOptions); | ||
throw new Error(error); | ||
@@ -144,3 +145,4 @@ } | ||
_parseError(arrayBuffer) { | ||
const error = CSWErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
var _CSWErrorLoader$parse2; | ||
const error = (_CSWErrorLoader$parse2 = CSWErrorLoader.parseSync) === null || _CSWErrorLoader$parse2 === void 0 ? void 0 : _CSWErrorLoader$parse2.call(CSWErrorLoader, arrayBuffer, this.props.loadOptions); | ||
return new Error(error); | ||
@@ -147,0 +149,0 @@ } |
@@ -19,3 +19,2 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
_defineProperty(this, "capabilities", null); | ||
_defineProperty(this, "loaders", [ImageLoader, WMSErrorLoader, WMSCapabilitiesLoader, WMSFeatureInfoLoader, WMSLayerDescriptionLoader]); | ||
this.url = props.url; | ||
@@ -235,2 +234,3 @@ this.substituteCRS84 = (_props$substituteCRS = props.substituteCRS84) !== null && _props$substituteCRS !== void 0 ? _props$substituteCRS : false; | ||
if (!response.ok || WMSErrorLoader.mimeTypes.includes(contentType)) { | ||
var _WMSErrorLoader$parse; | ||
const loadOptions = mergeLoaderOptions(this.loadOptions, { | ||
@@ -241,3 +241,3 @@ wms: { | ||
}); | ||
const error = WMSErrorLoader.parseSync(arrayBuffer, loadOptions); | ||
const error = (_WMSErrorLoader$parse = WMSErrorLoader.parseSync) === null || _WMSErrorLoader$parse === void 0 ? void 0 : _WMSErrorLoader$parse.call(WMSErrorLoader, arrayBuffer, loadOptions); | ||
throw new Error(error); | ||
@@ -247,3 +247,4 @@ } | ||
_parseError(arrayBuffer) { | ||
const error = WMSErrorLoader.parseSync(arrayBuffer, this.loadOptions); | ||
var _WMSErrorLoader$parse2; | ||
const error = (_WMSErrorLoader$parse2 = WMSErrorLoader.parseSync) === null || _WMSErrorLoader$parse2 === void 0 ? void 0 : _WMSErrorLoader$parse2.call(WMSErrorLoader, arrayBuffer, this.loadOptions); | ||
return new Error(error); | ||
@@ -250,0 +251,0 @@ } |
import { parseWCSCapabilities } from './lib/wcs/parse-wcs-capabilities'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const WCSCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wcs-capabilities', |
import { parseWFSCapabilities } from './lib/wfs/parse-wfs-capabilities'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const WFSCapabilitiesLoader = { | ||
@@ -13,3 +13,3 @@ id: 'wfs-capabilities', | ||
options: { | ||
wms: {} | ||
wfs: {} | ||
}, | ||
@@ -16,0 +16,0 @@ parse: async (arrayBuffer, options) => parseWFSCapabilities(new TextDecoder().decode(arrayBuffer), options), |
import { parseWMTSCapabilities } from './lib/wmts/parse-wmts-capabilities'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const WMTSCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wmts-capabilities', |
import { parseWMSCapabilities } from './lib/parsers/wms/parse-wms-capabilities'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const WMSCapabilitiesLoader = { | ||
@@ -21,3 +21,2 @@ id: 'wms-capabilities', | ||
} | ||
export const _typecheckWMSCapabilitiesLoader = WMSCapabilitiesLoader; | ||
//# sourceMappingURL=wms-capabilities-loader.js.map |
import { parseWMSError } from './lib/parsers/wms/parse-wms-error'; | ||
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.23" !== 'undefined' ? "4.0.0-alpha.23" : 'latest'; | ||
export const WMSErrorLoader = { | ||
@@ -36,3 +36,2 @@ id: 'wms-error', | ||
} | ||
export const _typecheckWMSErrorLoader = WMSErrorLoader; | ||
//# sourceMappingURL=wms-error-loader.js.map |
@@ -8,20 +8,3 @@ import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const GMLLoader: { | ||
name: string; | ||
id: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: typeof testXMLFile; | ||
options: { | ||
gml: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: GMLLoaderOptions) => Promise<import("geojson").Geometry | null>; | ||
parseTextSync: (text: string, options?: GMLLoaderOptions) => import("geojson").Geometry | null; | ||
}; | ||
declare function testXMLFile(text: string): boolean; | ||
export declare const _typecheckGMLLoader: LoaderWithParser; | ||
export {}; | ||
export declare const GMLLoader: LoaderWithParser; | ||
//# sourceMappingURL=gml-loader.d.ts.map |
"use strict"; | ||
// loaders.gl, MIT license | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._typecheckGMLLoader = exports.GMLLoader = void 0; | ||
exports.GMLLoader = void 0; | ||
const parse_gml_1 = require("./lib/parsers/gml/parse-gml"); | ||
@@ -31,2 +31,1 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
} | ||
exports._typecheckGMLLoader = exports.GMLLoader; |
import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils'; | ||
import type { LERCData } from './lib/parsers/lerc/lerc-types'; | ||
export type LERCLoaderOptions = LoaderOptions & { | ||
@@ -16,16 +15,3 @@ lerc?: { | ||
*/ | ||
export declare const LERCLoader: { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
options: { | ||
wms: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions) => Promise<LERCData>; | ||
}; | ||
export declare const _typecheckLERCLoader: LoaderWithParser; | ||
export declare const LERCLoader: LoaderWithParser; | ||
//# sourceMappingURL=lerc-loader.d.ts.map |
@@ -27,3 +27,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._typecheckLERCLoader = exports.LERCLoader = void 0; | ||
exports.LERCLoader = void 0; | ||
const Lerc = __importStar(require("lerc")); | ||
@@ -57,2 +57,1 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
} | ||
exports._typecheckLERCLoader = exports.LERCLoader; |
@@ -50,35 +50,3 @@ import type { DataSourceProps } from '../../sources/data-source'; | ||
/** A list of loaders used by the CSWService methods */ | ||
readonly loaders: ({ | ||
/** In case the endpoint supports multiple CSW versions */ | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
csw: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: import("../../../csw-capabilities-loader").CSWLoaderOptions | undefined) => Promise<CSWCapabilities>; | ||
parseTextSync: (text: string, options?: import("../../../csw-capabilities-loader").CSWLoaderOptions | undefined) => CSWCapabilities; | ||
} | { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: { | ||
throwOnError: boolean; | ||
}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: import("../../../wms-error-loader").WMSLoaderOptions | undefined) => Promise<string>; | ||
parseSync: (arrayBuffer: ArrayBuffer, options?: import("../../../wms-error-loader").WMSLoaderOptions | undefined) => string; | ||
parseTextSync: (text: string, options?: import("../../../wms-error-loader").WMSLoaderOptions | undefined) => string; | ||
})[]; | ||
readonly loaders: (import("@loaders.gl/loader-utils").LoaderWithParser<CSWCapabilities, never, import("../../../csw-capabilities-loader").CSWLoaderOptions> | import("@loaders.gl/loader-utils").LoaderWithParser<string, never, import("../../../wms-error-loader").WMSLoaderOptions>)[]; | ||
/** Create a CSWService */ | ||
@@ -85,0 +53,0 @@ constructor(props: CSWServiceProps); |
@@ -156,3 +156,3 @@ "use strict"; | ||
if (!response.ok || wms_error_loader_1.WMSErrorLoader.mimeTypes.includes(contentType)) { | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync?.(arrayBuffer, this.props.loadOptions); | ||
throw new Error(error); | ||
@@ -163,3 +163,3 @@ } | ||
_parseError(arrayBuffer) { | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync?.(arrayBuffer, this.props.loadOptions); | ||
return new Error(error); | ||
@@ -166,0 +166,0 @@ } |
@@ -8,3 +8,2 @@ import type { ImageType } from '@loaders.gl/images'; | ||
import type { WMSLayerDescription } from '../../../wip/wms-layer-description-loader'; | ||
import type { WMSLoaderOptions } from '../../../wms-error-loader'; | ||
/** | ||
@@ -162,66 +161,2 @@ * "Static" WMS parameters (not viewport or selected pixel dependent) | ||
capabilities: WMSCapabilities | null; | ||
/** A list of loaders used by the WMSService methods */ | ||
readonly loaders: ({ | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: { | ||
throwOnError: boolean; | ||
}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: WMSLoaderOptions | undefined) => Promise<string>; | ||
parseSync: (arrayBuffer: ArrayBuffer, options?: WMSLoaderOptions | undefined) => string; | ||
parseTextSync: (text: string, options?: WMSLoaderOptions | undefined) => string; | ||
} | { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
/** list of layers to query.. (GetFeatureInfo) */ | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: import("../../../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined) => Promise<WMSCapabilities>; | ||
parseTextSync: (text: string, options?: import("../../../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined) => WMSCapabilities; | ||
} | { | ||
id: string; | ||
name: string; | ||
parse: (arrayBuffer: ArrayBuffer, options?: import("@loaders.gl/xml").XMLLoaderOptions | undefined) => Promise<WMSFeatureInfo>; | ||
parseTextSync: (text: string, options?: import("@loaders.gl/xml").XMLLoaderOptions | undefined) => WMSFeatureInfo; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
/** list of layers to query.. (GetFeatureInfo) */ | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: {}; | ||
}; | ||
} | { | ||
id: string; | ||
name: string; | ||
parse: (arrayBuffer: ArrayBuffer, options?: import("@loaders.gl/xml").XMLLoaderOptions | undefined) => Promise<WMSLayerDescription>; | ||
parseTextSync: (text: string, options?: import("@loaders.gl/xml").XMLLoaderOptions | undefined) => WMSLayerDescription; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
/** list of layers to query.. (GetFeatureInfo) */ | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: {}; | ||
}; | ||
} | import("@loaders.gl/loader-utils").LoaderWithParser<ImageType, never, import("@loaders.gl/images").ImageLoaderOptions>)[]; | ||
/** Create a WMSService */ | ||
@@ -228,0 +163,0 @@ constructor(props: WMSServiceProps); |
@@ -24,10 +24,2 @@ "use strict"; | ||
this.capabilities = null; | ||
/** A list of loaders used by the WMSService methods */ | ||
this.loaders = [ | ||
images_1.ImageLoader, | ||
wms_error_loader_1.WMSErrorLoader, | ||
wms_capabilities_loader_1.WMSCapabilitiesLoader, | ||
wms_feature_info_loader_1.WMSFeatureInfoLoader, | ||
wms_layer_description_loader_1.WMSLayerDescriptionLoader | ||
]; | ||
// TODO - defaults such as version, layers etc could be extracted from a base URL with parameters | ||
@@ -306,3 +298,3 @@ // This would make pasting in any WMS URL more likely to make this class just work. | ||
}); | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync(arrayBuffer, loadOptions); | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync?.(arrayBuffer, loadOptions); | ||
throw new Error(error); | ||
@@ -313,3 +305,3 @@ } | ||
_parseError(arrayBuffer) { | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync(arrayBuffer, this.loadOptions); | ||
const error = wms_error_loader_1.WMSErrorLoader.parseSync?.(arrayBuffer, this.loadOptions); | ||
return new Error(error); | ||
@@ -316,0 +308,0 @@ } |
@@ -10,19 +10,4 @@ import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const WFSCapabilitiesLoader: { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: typeof testXMLFile; | ||
options: { | ||
wms: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: WFSLoaderOptions) => Promise<WFSCapabilities>; | ||
parseTextSync: (text: string, options?: WFSLoaderOptions) => WFSCapabilities; | ||
}; | ||
declare function testXMLFile(text: string): boolean; | ||
export declare const WFSCapabilitiesLoader: LoaderWithParser<WFSCapabilities, never, WFSLoaderOptions>; | ||
export declare const _typecheckWFSCapabilitiesLoader: LoaderWithParser; | ||
//# sourceMappingURL=wfs-capabilities-loader.d.ts.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
options: { | ||
wms: {} | ||
wfs: {} | ||
}, | ||
@@ -25,0 +25,0 @@ parse: async (arrayBuffer, options) => (0, parse_wfs_capabilities_1.parseWFSCapabilities)(new TextDecoder().decode(arrayBuffer), options), |
@@ -8,18 +8,4 @@ import type { LoaderWithParser } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const WMSFeatureInfoLoader: { | ||
id: string; | ||
name: string; | ||
parse: (arrayBuffer: ArrayBuffer, options?: XMLLoaderOptions) => Promise<WMSFeatureInfo>; | ||
parseTextSync: (text: string, options?: XMLLoaderOptions) => WMSFeatureInfo; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: {}; | ||
}; | ||
}; | ||
export declare const WMSFeatureInfoLoader: LoaderWithParser<WMSFeatureInfo, never, XMLLoaderOptions>; | ||
export declare const _typecheckWMSFeatureInfoLoader: LoaderWithParser; | ||
//# sourceMappingURL=wms-feature-info-loader.d.ts.map |
@@ -10,2 +10,3 @@ "use strict"; | ||
*/ | ||
// @ts-expect-error | ||
exports.WMSFeatureInfoLoader = { | ||
@@ -12,0 +13,0 @@ ...wms_capabilities_loader_1.WMSCapabilitiesLoader, |
@@ -13,13 +13,26 @@ import type { LoaderWithParser } from '@loaders.gl/loader-utils'; | ||
parseTextSync: (text: string, options?: XMLLoaderOptions) => WMSLayerDescription; | ||
dataType?: import("../wms-capabilities-loader").WMSCapabilities | undefined; | ||
batchType?: undefined; | ||
options: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions; | ||
deprecatedOptions?: Record<string, string | Record<string, string>> | undefined; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
version: string; | ||
worker?: string | boolean | undefined; | ||
category?: string | undefined; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: (text: string) => boolean; | ||
options: { | ||
wms: {}; | ||
}; | ||
binary?: boolean | undefined; | ||
text?: boolean | undefined; | ||
tests?: (string | ArrayBuffer | ((ArrayBuffer: ArrayBuffer) => boolean))[] | undefined; | ||
supported?: boolean | undefined; | ||
testText?: ((string: string) => boolean) | undefined; | ||
preload?: ((url: string, options?: { | ||
[key: string]: unknown; | ||
} | undefined) => any) | undefined; | ||
parseSync?: ((arrayBuffer: ArrayBuffer, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => import("../wms-capabilities-loader").WMSCapabilities) | undefined; | ||
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; | ||
parseInBatches?: ((iterator: AsyncIterable<ArrayBuffer> | Iterable<ArrayBuffer>, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => AsyncIterable<never>) | undefined; | ||
parseFileInBatches?: ((file: Blob, options?: import("../wms-capabilities-loader").WMSCapabilitiesLoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => AsyncIterable<never>) | undefined; | ||
}; | ||
export declare const _typecheckWMSFeatureInfoLoader: LoaderWithParser; | ||
//# sourceMappingURL=wms-layer-description-loader.d.ts.map |
import type { LoaderWithParser } from '@loaders.gl/loader-utils'; | ||
import type { XMLLoaderOptions } from '@loaders.gl/xml'; | ||
import { WMSCapabilities } from './lib/parsers/wms/parse-wms-capabilities'; | ||
export type { WMSCapabilities, WMSLayer, WMSBoundingBox, WMSDimension, WMSRequest, WMSExceptions } from './lib/parsers/wms/parse-wms-capabilities'; | ||
@@ -19,19 +20,3 @@ export type WMSCapabilitiesLoaderOptions = XMLLoaderOptions & { | ||
*/ | ||
export declare const WMSCapabilitiesLoader: { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: typeof testXMLFile; | ||
options: { | ||
wms: {}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: WMSCapabilitiesLoaderOptions) => Promise<import("./lib/parsers/wms/parse-wms-capabilities").WMSCapabilities>; | ||
parseTextSync: (text: string, options?: WMSCapabilitiesLoaderOptions) => import("./lib/parsers/wms/parse-wms-capabilities").WMSCapabilities; | ||
}; | ||
declare function testXMLFile(text: string): boolean; | ||
export declare const _typecheckWMSCapabilitiesLoader: LoaderWithParser; | ||
export declare const WMSCapabilitiesLoader: LoaderWithParser<WMSCapabilities, never, WMSCapabilitiesLoaderOptions>; | ||
//# sourceMappingURL=wms-capabilities-loader.d.ts.map |
"use strict"; | ||
// loaders.gl, MIT license | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._typecheckWMSCapabilitiesLoader = exports.WMSCapabilitiesLoader = void 0; | ||
exports.WMSCapabilitiesLoader = void 0; | ||
const parse_wms_capabilities_1 = require("./lib/parsers/wms/parse-wms-capabilities"); | ||
@@ -35,2 +35,1 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
} | ||
exports._typecheckWMSCapabilitiesLoader = exports.WMSCapabilitiesLoader; |
@@ -13,23 +13,3 @@ import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils'; | ||
*/ | ||
export declare const WMSErrorLoader: { | ||
id: string; | ||
name: string; | ||
module: string; | ||
version: any; | ||
worker: boolean; | ||
extensions: string[]; | ||
mimeTypes: string[]; | ||
testText: typeof testXMLFile; | ||
options: { | ||
wms: { | ||
throwOnError: boolean; | ||
}; | ||
}; | ||
parse: (arrayBuffer: ArrayBuffer, options?: WMSLoaderOptions) => Promise<string>; | ||
parseSync: (arrayBuffer: ArrayBuffer, options?: WMSLoaderOptions) => string; | ||
parseTextSync: (text: string, options?: WMSLoaderOptions) => string; | ||
}; | ||
declare function testXMLFile(text: string): boolean; | ||
export declare const _typecheckWMSErrorLoader: LoaderWithParser; | ||
export {}; | ||
export declare const WMSErrorLoader: LoaderWithParser<string, never, WMSLoaderOptions>; | ||
//# sourceMappingURL=wms-error-loader.d.ts.map |
"use strict"; | ||
// loaders.gl, MIT license | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._typecheckWMSErrorLoader = exports.WMSErrorLoader = void 0; | ||
exports.WMSErrorLoader = void 0; | ||
const parse_wms_error_1 = require("./lib/parsers/wms/parse-wms-error"); | ||
@@ -43,2 +43,1 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
} | ||
exports._typecheckWMSErrorLoader = exports.WMSErrorLoader; |
{ | ||
"name": "@loaders.gl/wms", | ||
"version": "4.0.0-alpha.22", | ||
"version": "4.0.0-alpha.23", | ||
"description": "Framework-independent loaders for the WMS (Web Map Service) standard", | ||
@@ -42,6 +42,6 @@ "license": "MIT", | ||
"@babel/runtime": "^7.3.1", | ||
"@loaders.gl/images": "4.0.0-alpha.22", | ||
"@loaders.gl/loader-utils": "4.0.0-alpha.22", | ||
"@loaders.gl/schema": "4.0.0-alpha.22", | ||
"@loaders.gl/xml": "4.0.0-alpha.22", | ||
"@loaders.gl/images": "4.0.0-alpha.23", | ||
"@loaders.gl/loader-utils": "4.0.0-alpha.23", | ||
"@loaders.gl/schema": "4.0.0-alpha.23", | ||
"@loaders.gl/xml": "4.0.0-alpha.23", | ||
"@turf/rewind": "^5.1.5", | ||
@@ -51,3 +51,3 @@ "deep-strict-equal": "^0.2.0", | ||
}, | ||
"gitHead": "0da838c506d1275383f2fd3d244d9c72b25397d2" | ||
"gitHead": "e212f2a0c0e342f7cb65ce84fa2ff39f64b7d94b" | ||
} |
@@ -23,6 +23,5 @@ // loaders.gl, MIT license | ||
*/ | ||
export const CSWCapabilitiesLoader = { | ||
export const CSWCapabilitiesLoader: LoaderWithParser<CSWCapabilities, never, CSWLoaderOptions> = { | ||
id: 'csw-capabilities', | ||
name: 'CSW Capabilities', | ||
module: 'wms', | ||
@@ -46,3 +45,1 @@ version: VERSION, | ||
} | ||
export const _typecheckCSWCapabilitiesLoader: LoaderWithParser = CSWCapabilitiesLoader; |
@@ -21,3 +21,3 @@ // loaders.gl, MIT license | ||
*/ | ||
export const CSWDomainLoader = { | ||
export const CSWDomainLoader: LoaderWithParser<CSWDomain, never, CSWLoaderOptions> = { | ||
id: 'csw-domain', | ||
@@ -44,3 +44,1 @@ name: 'CSW Domain', | ||
} | ||
export const _typecheckCSWDomainLoader: LoaderWithParser = CSWDomainLoader; |
@@ -21,6 +21,5 @@ // loaders.gl, MIT license | ||
*/ | ||
export const CSWRecordsLoader: LoaderWithParser = { | ||
export const CSWRecordsLoader: LoaderWithParser<CSWRecords, never, CSWLoaderOptions> = { | ||
id: 'csw-records', | ||
name: 'CSW Domain', | ||
name: 'CSW Records', | ||
module: 'wms', | ||
@@ -27,0 +26,0 @@ version: VERSION, |
@@ -17,3 +17,3 @@ // loaders.gl, MIT license | ||
*/ | ||
export const GMLLoader = { | ||
export const GMLLoader: LoaderWithParser = { | ||
name: 'GML', | ||
@@ -40,3 +40,1 @@ id: 'gml', | ||
} | ||
export const _typecheckGMLLoader: LoaderWithParser = GMLLoader; |
@@ -25,3 +25,3 @@ // loaders.gl, MIT license | ||
*/ | ||
export const LERCLoader = { | ||
export const LERCLoader: LoaderWithParser = { | ||
id: 'lerc', | ||
@@ -50,3 +50,1 @@ name: 'LERC', | ||
} | ||
export const _typecheckLERCLoader: LoaderWithParser = LERCLoader; |
@@ -247,3 +247,3 @@ // loaders.gl, MIT license | ||
if (!response.ok || CSWErrorLoader.mimeTypes.includes(contentType)) { | ||
const error = CSWErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
const error = CSWErrorLoader.parseSync?.(arrayBuffer, this.props.loadOptions); | ||
throw new Error(error); | ||
@@ -255,5 +255,5 @@ } | ||
protected _parseError(arrayBuffer: ArrayBuffer): Error { | ||
const error = CSWErrorLoader.parseSync(arrayBuffer, this.props.loadOptions); | ||
const error = CSWErrorLoader.parseSync?.(arrayBuffer, this.props.loadOptions); | ||
return new Error(error); | ||
} | ||
} |
@@ -193,11 +193,2 @@ // loaders.gl, MIT license | ||
/** A list of loaders used by the WMSService methods */ | ||
readonly loaders = [ | ||
ImageLoader, | ||
WMSErrorLoader, | ||
WMSCapabilitiesLoader, | ||
WMSFeatureInfoLoader, | ||
WMSLayerDescriptionLoader | ||
]; | ||
/** Create a WMSService */ | ||
@@ -559,3 +550,3 @@ constructor(props: WMSServiceProps) { | ||
}); | ||
const error = WMSErrorLoader.parseSync(arrayBuffer, loadOptions); | ||
const error = WMSErrorLoader.parseSync?.(arrayBuffer, loadOptions); | ||
throw new Error(error); | ||
@@ -567,5 +558,5 @@ } | ||
protected _parseError(arrayBuffer: ArrayBuffer): Error { | ||
const error = WMSErrorLoader.parseSync(arrayBuffer, this.loadOptions); | ||
const error = WMSErrorLoader.parseSync?.(arrayBuffer, this.loadOptions); | ||
return new Error(error); | ||
} | ||
} |
@@ -20,3 +20,3 @@ // loaders.gl, MIT license | ||
*/ | ||
export const WFSCapabilitiesLoader = { | ||
export const WFSCapabilitiesLoader: LoaderWithParser<WFSCapabilities, never, WFSLoaderOptions> = { | ||
id: 'wfs-capabilities', | ||
@@ -32,3 +32,3 @@ name: 'WFS Capabilities', | ||
options: { | ||
wms: {} | ||
wfs: {} | ||
}, | ||
@@ -35,0 +35,0 @@ parse: async (arrayBuffer: ArrayBuffer, options?: WFSLoaderOptions) => |
@@ -15,3 +15,4 @@ // loaders.gl, MIT license | ||
*/ | ||
export const WMSFeatureInfoLoader = { | ||
// @ts-expect-error | ||
export const WMSFeatureInfoLoader: LoaderWithParser<WMSFeatureInfo, never, XMLLoaderOptions> = { | ||
...WMSCapabilitiesLoader, | ||
@@ -18,0 +19,0 @@ |
@@ -5,3 +5,3 @@ // loaders.gl, MIT license | ||
import type {XMLLoaderOptions} from '@loaders.gl/xml'; | ||
import {parseWMSCapabilities} from './lib/parsers/wms/parse-wms-capabilities'; | ||
import {WMSCapabilities, parseWMSCapabilities} from './lib/parsers/wms/parse-wms-capabilities'; | ||
@@ -38,3 +38,7 @@ // __VERSION__ is injected by babel-plugin-version-inline | ||
*/ | ||
export const WMSCapabilitiesLoader = { | ||
export const WMSCapabilitiesLoader: LoaderWithParser< | ||
WMSCapabilities, | ||
never, | ||
WMSCapabilitiesLoaderOptions | ||
> = { | ||
id: 'wms-capabilities', | ||
@@ -64,3 +68,1 @@ name: 'WMS Capabilities', | ||
} | ||
export const _typecheckWMSCapabilitiesLoader: LoaderWithParser = WMSCapabilitiesLoader; |
@@ -22,3 +22,3 @@ // loaders.gl, MIT license | ||
*/ | ||
export const WMSErrorLoader = { | ||
export const WMSErrorLoader: LoaderWithParser<string, never, WMSLoaderOptions> = { | ||
id: 'wms-error', | ||
@@ -59,3 +59,1 @@ name: 'WMS Error', | ||
} | ||
export const _typecheckWMSErrorLoader: LoaderWithParser = WMSErrorLoader; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1281565
17131
+ Added@loaders.gl/images@4.0.0-alpha.23(transitive)
+ Added@loaders.gl/loader-utils@4.0.0-alpha.23(transitive)
+ Added@loaders.gl/schema@4.0.0-alpha.23(transitive)
+ Added@loaders.gl/worker-utils@4.0.0-alpha.23(transitive)
+ Added@loaders.gl/xml@4.0.0-alpha.23(transitive)
- Removed@loaders.gl/images@4.0.0-alpha.22(transitive)
- Removed@loaders.gl/loader-utils@4.0.0-alpha.22(transitive)
- Removed@loaders.gl/schema@4.0.0-alpha.22(transitive)
- Removed@loaders.gl/worker-utils@4.0.0-alpha.22(transitive)
- Removed@loaders.gl/xml@4.0.0-alpha.22(transitive)