@loaders.gl/wms
Advanced tools
Comparing version 3.4.0-alpha.4 to 4.0.0-alpha.6
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseCswCapabilities = require("./lib/parsers/csw/parse-csw-capabilities"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var CSWCapabilitiesLoader = { | ||
@@ -14,0 +14,0 @@ id: 'csw-capabilities', |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseCswDomain = require("./lib/parsers/csw/parse-csw-domain"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var CSWDomainLoader = { | ||
@@ -14,0 +14,0 @@ id: 'csw-domain', |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseCswRecords = require("./lib/parsers/csw/parse-csw-records"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var CSWRecordsLoader = { | ||
@@ -14,0 +14,0 @@ id: 'csw-records', |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseGml = require("./lib/parsers/gml/parse-gml"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var GMLLoader = { | ||
@@ -14,0 +14,0 @@ name: 'GML', |
@@ -14,3 +14,3 @@ "use strict"; | ||
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 "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var LERCLoader = { | ||
@@ -17,0 +17,0 @@ id: 'lerc', |
@@ -14,3 +14,4 @@ "use strict"; | ||
function parseCSWCapabilities(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, _objectSpread(_objectSpread({}, options), {}, { | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, _objectSpread(_objectSpread({}, options), {}, { | ||
xml: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.xml), {}, { | ||
@@ -17,0 +18,0 @@ removeNSPrefix: true, |
@@ -17,3 +17,4 @@ "use strict"; | ||
function parseCSWDomain(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, _objectSpread(_objectSpread({}, options), {}, { | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, _objectSpread(_objectSpread({}, options), {}, { | ||
xml: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.xml), {}, { | ||
@@ -20,0 +21,0 @@ removeNSPrefix: true, |
@@ -19,10 +19,11 @@ "use strict"; | ||
function parseCSWRecords(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, _objectSpread(_objectSpread({}, options), {}, { | ||
var _XMLLoader$parseTextS, _options$xml; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, _objectSpread(_objectSpread({}, options), {}, { | ||
xml: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.xml), {}, { | ||
removeNSPrefix: true, | ||
uncapitalizeKeys: true, | ||
arrayPaths: [] | ||
}), | ||
_fastXML: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options._fastXML), {}, { | ||
parseAttributeValue: true | ||
arrayPaths: [], | ||
_fastXML: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : (_options$xml = options.xml) === null || _options$xml === void 0 ? void 0 : _options$xml._fastXML), {}, { | ||
parseAttributeValue: true | ||
}) | ||
}) | ||
@@ -29,0 +30,0 @@ })); |
@@ -39,3 +39,4 @@ "use strict"; | ||
function parseGML(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, options); | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, options); | ||
options = _objectSpread({ | ||
@@ -42,0 +43,0 @@ transformCoords: noTransform, |
@@ -16,3 +16,4 @@ "use strict"; | ||
function parseWMSCapabilities(xmlText, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(xmlText, options); | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, xmlText, options); | ||
var xmlCapabilities = parsedXML.WMT_MS_Capabilities || parsedXML.WMS_Capabilities || parsedXML; | ||
@@ -19,0 +20,0 @@ var capabilities = extractCapabilities(xmlCapabilities); |
@@ -9,4 +9,4 @@ "use strict"; | ||
function parseWMSFeatureInfo(text, options) { | ||
var _parsedXML$FeatureInf; | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, options); | ||
var _XMLLoader$parseTextS, _parsedXML$FeatureInf; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, options); | ||
var xmlFeatureInfo = ((_parsedXML$FeatureInf = parsedXML.FeatureInfoResponse) === null || _parsedXML$FeatureInf === void 0 ? void 0 : _parsedXML$FeatureInf.FIELDS) || []; | ||
@@ -13,0 +13,0 @@ var xmlFeatures = Array.isArray(xmlFeatureInfo) ? xmlFeatureInfo : [xmlFeatureInfo]; |
@@ -9,5 +9,6 @@ "use strict"; | ||
function parseWMSLayerDescription(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, options); | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, options); | ||
return parsedXML; | ||
} | ||
//# sourceMappingURL=parse-wms-layer-description.js.map |
@@ -13,3 +13,4 @@ "use strict"; | ||
function parseWCSCapabilities(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, _objectSpread(_objectSpread({}, options), {}, { | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, _objectSpread(_objectSpread({}, options), {}, { | ||
xml: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.xml), {}, { | ||
@@ -16,0 +17,0 @@ removeNSPrefix: true |
@@ -13,3 +13,4 @@ "use strict"; | ||
function parseWFSCapabilities(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, _objectSpread(_objectSpread({}, options), {}, { | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, _objectSpread(_objectSpread({}, options), {}, { | ||
xml: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.xml), {}, { | ||
@@ -16,0 +17,0 @@ removeNSPrefix: true, |
@@ -13,3 +13,4 @@ "use strict"; | ||
function parseWMTSCapabilities(text, options) { | ||
var parsedXML = _xml.XMLLoader.parseTextSync(text, _objectSpread(_objectSpread({}, options), {}, { | ||
var _XMLLoader$parseTextS; | ||
var parsedXML = (_XMLLoader$parseTextS = _xml.XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(_xml.XMLLoader, text, _objectSpread(_objectSpread({}, options), {}, { | ||
xml: _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.xml), {}, { | ||
@@ -16,0 +17,0 @@ removeNSPrefix: true, |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseWcsCapabilities = require("./lib/wcs/parse-wcs-capabilities"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : '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 "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var WFSCapabilitiesLoader = { | ||
@@ -14,0 +14,0 @@ id: 'wfs-capabilities', |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseWmtsCapabilities = require("./lib/wmts/parse-wmts-capabilities"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var WMTSCapabilitiesLoader = { | ||
@@ -14,0 +14,0 @@ id: 'wmts-capabilities', |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _parseWmsCapabilities = require("./lib/parsers/wms/parse-wms-capabilities"); | ||
var VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var WMSCapabilitiesLoader = { | ||
@@ -14,0 +14,0 @@ id: 'wms-capabilities', |
@@ -14,3 +14,3 @@ "use strict"; | ||
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 "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
var VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
var WMSErrorLoader = { | ||
@@ -17,0 +17,0 @@ id: 'wms-error', |
import { parseCSWCapabilities } from './lib/parsers/csw/parse-csw-capabilities'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const CSWCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'csw-capabilities', |
import { parseCSWDomain } from './lib/parsers/csw/parse-csw-domain'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const CSWDomainLoader = { | ||
@@ -4,0 +4,0 @@ id: 'csw-domain', |
import { parseCSWRecords } from './lib/parsers/csw/parse-csw-records'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const CSWRecordsLoader = { | ||
@@ -4,0 +4,0 @@ id: 'csw-records', |
import { parseGML } from './lib/parsers/gml/parse-gml'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const GMLLoader = { | ||
@@ -4,0 +4,0 @@ name: 'GML', |
import * as Lerc from 'lerc'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const LERCLoader = { | ||
@@ -4,0 +4,0 @@ id: 'lerc', |
import { XMLLoader } from '@loaders.gl/xml'; | ||
import { parseExceptionReport } from './parse-exception-report'; | ||
export function parseCSWCapabilities(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, { | ||
...options, | ||
@@ -6,0 +7,0 @@ xml: { |
import { XMLLoader } from '@loaders.gl/xml'; | ||
import { parseExceptionReport } from './parse-exception-report'; | ||
export function parseCSWDomain(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, { | ||
...options, | ||
@@ -6,0 +7,0 @@ xml: { |
@@ -5,3 +5,4 @@ import { convertXMLFieldToArrayInPlace } from '@loaders.gl/xml'; | ||
export function parseCSWRecords(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
var _XMLLoader$parseTextS, _options$xml; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, { | ||
...options, | ||
@@ -12,7 +13,7 @@ xml: { | ||
uncapitalizeKeys: true, | ||
arrayPaths: [] | ||
}, | ||
_fastXML: { | ||
...(options === null || options === void 0 ? void 0 : options._fastXML), | ||
parseAttributeValue: true | ||
arrayPaths: [], | ||
_fastXML: { | ||
...(options === null || options === void 0 ? void 0 : (_options$xml = options.xml) === null || _options$xml === void 0 ? void 0 : _options$xml._fastXML), | ||
parseAttributeValue: true | ||
} | ||
} | ||
@@ -19,0 +20,0 @@ }); |
@@ -11,3 +11,4 @@ import { XMLLoader } from '@loaders.gl/xml'; | ||
export function parseGML(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, options); | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, options); | ||
options = { | ||
@@ -14,0 +15,0 @@ transformCoords: noTransform, |
import { XMLLoader } from '@loaders.gl/xml'; | ||
import { getXMLArray, getXMLStringArray, getXMLInteger, getXMLFloat, getXMLBoolean } from '../xml/parse-xml-helpers'; | ||
export function parseWMSCapabilities(xmlText, options) { | ||
const parsedXML = XMLLoader.parseTextSync(xmlText, options); | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, xmlText, options); | ||
const xmlCapabilities = parsedXML.WMT_MS_Capabilities || parsedXML.WMS_Capabilities || parsedXML; | ||
@@ -6,0 +7,0 @@ const capabilities = extractCapabilities(xmlCapabilities); |
import { XMLLoader } from '@loaders.gl/xml'; | ||
export function parseWMSFeatureInfo(text, options) { | ||
var _parsedXML$FeatureInf; | ||
const parsedXML = XMLLoader.parseTextSync(text, options); | ||
var _XMLLoader$parseTextS, _parsedXML$FeatureInf; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, options); | ||
const xmlFeatureInfo = ((_parsedXML$FeatureInf = parsedXML.FeatureInfoResponse) === null || _parsedXML$FeatureInf === void 0 ? void 0 : _parsedXML$FeatureInf.FIELDS) || []; | ||
@@ -6,0 +6,0 @@ const xmlFeatures = Array.isArray(xmlFeatureInfo) ? xmlFeatureInfo : [xmlFeatureInfo]; |
import { XMLLoader } from '@loaders.gl/xml'; | ||
export function parseWMSLayerDescription(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, options); | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, options); | ||
return parsedXML; | ||
} | ||
//# sourceMappingURL=parse-wms-layer-description.js.map |
import { XMLLoader } from '@loaders.gl/xml'; | ||
export function parseWCSCapabilities(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, { | ||
...options, | ||
@@ -5,0 +6,0 @@ xml: { |
import { XMLLoader } from '@loaders.gl/xml'; | ||
export function parseWFSCapabilities(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, { | ||
...options, | ||
@@ -5,0 +6,0 @@ xml: { |
import { XMLLoader } from '@loaders.gl/xml'; | ||
export function parseWMTSCapabilities(text, options) { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
var _XMLLoader$parseTextS; | ||
const parsedXML = (_XMLLoader$parseTextS = XMLLoader.parseTextSync) === null || _XMLLoader$parseTextS === void 0 ? void 0 : _XMLLoader$parseTextS.call(XMLLoader, text, { | ||
...options, | ||
@@ -5,0 +6,0 @@ xml: { |
import { parseWCSCapabilities } from './lib/wcs/parse-wcs-capabilities'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const WCSCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wcs-capabilities', |
import { parseWFSCapabilities } from './lib/wfs/parse-wfs-capabilities'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const WFSCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wfs-capabilities', |
import { parseWMTSCapabilities } from './lib/wmts/parse-wmts-capabilities'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const WMTSCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wmts-capabilities', |
import { parseWMSCapabilities } from './lib/parsers/wms/parse-wms-capabilities'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const WMSCapabilitiesLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wms-capabilities', |
import { parseWMSError } from './lib/parsers/wms/parse-wms-error'; | ||
const VERSION = typeof "3.4.0-alpha.4" !== 'undefined' ? "3.4.0-alpha.4" : 'latest'; | ||
const VERSION = typeof "4.0.0-alpha.6" !== 'undefined' ? "4.0.0-alpha.6" : 'latest'; | ||
export const WMSErrorLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wms-error', |
@@ -12,3 +12,3 @@ "use strict"; | ||
function parseCSWCapabilities(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, { | ||
...options, | ||
@@ -15,0 +15,0 @@ xml: { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function parseCSWDomain(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, { | ||
...options, | ||
@@ -15,0 +15,0 @@ xml: { |
@@ -13,3 +13,3 @@ "use strict"; | ||
function parseCSWRecords(text, options) { | ||
const parsedXML = xml_2.XMLLoader.parseTextSync(text, { | ||
const parsedXML = xml_2.XMLLoader.parseTextSync?.(text, { | ||
...options, | ||
@@ -20,7 +20,7 @@ xml: { | ||
uncapitalizeKeys: true, | ||
arrayPaths: [] | ||
}, | ||
_fastXML: { | ||
...options?._fastXML, | ||
parseAttributeValue: true | ||
arrayPaths: [], | ||
_fastXML: { | ||
...options?.xml?._fastXML, | ||
parseAttributeValue: true | ||
} | ||
} | ||
@@ -27,0 +27,0 @@ }); |
@@ -12,3 +12,3 @@ "use strict"; | ||
function parseExceptionReport(parsedXML) { | ||
// const parsedXML = XMLLoader.parseTextSync(text, { | ||
// const parsedXML = XMLLoader.parseTextSync?.(text, { | ||
// ...options, | ||
@@ -15,0 +15,0 @@ // xml: { |
@@ -20,3 +20,3 @@ "use strict"; | ||
// GeoJSON | null { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, options); | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, options); | ||
options = { transformCoords: noTransform, stride: 2, ...options }; | ||
@@ -23,0 +23,0 @@ const context = createChildContext(parsedXML, options, {}); |
@@ -12,3 +12,3 @@ "use strict"; | ||
function parseWMSCapabilities(xmlText, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(xmlText, options); | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(xmlText, options); | ||
const xmlCapabilities = parsedXML.WMT_MS_Capabilities || parsedXML.WMS_Capabilities || parsedXML; | ||
@@ -15,0 +15,0 @@ const capabilities = extractCapabilities(xmlCapabilities); |
@@ -11,3 +11,3 @@ "use strict"; | ||
function parseWMSFeatureInfo(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, options); | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, options); | ||
const xmlFeatureInfo = parsedXML.FeatureInfoResponse?.FIELDS || []; | ||
@@ -14,0 +14,0 @@ const xmlFeatures = Array.isArray(xmlFeatureInfo) ? xmlFeatureInfo : [xmlFeatureInfo]; |
@@ -11,3 +11,3 @@ "use strict"; | ||
function parseWMSLayerDescription(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, options); | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, options); | ||
// TODO - implement parser | ||
@@ -14,0 +14,0 @@ return parsedXML; |
@@ -199,13 +199,3 @@ import type { ImageType } from '@loaders.gl/images'; | ||
}; | ||
} | { | ||
id: string; | ||
module: string; | ||
name: string; | ||
version: any; | ||
mimeTypes: string[]; | ||
extensions: string[]; | ||
parse: typeof import("modules/images/src/lib/parsers/parse-image").default; | ||
tests: ((arrayBuffer: any) => boolean)[]; | ||
options: import("@loaders.gl/images").ImageLoaderOptions; | ||
})[]; | ||
} | import("@loaders.gl/loader-utils").LoaderWithParser<ImageType, never, import("@loaders.gl/images").ImageLoaderOptions>)[]; | ||
/** Create a WMSService */ | ||
@@ -212,0 +202,0 @@ constructor(props: WMSServiceProps); |
@@ -11,3 +11,3 @@ "use strict"; | ||
function parseWCSCapabilities(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, { ...options, xml: { ...options?.xml, removeNSPrefix: true } }); | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, { ...options, xml: { ...options?.xml, removeNSPrefix: true } }); | ||
const xmlCapabilities = parsedXML.Capabilities || parsedXML; | ||
@@ -14,0 +14,0 @@ return xmlCapabilities; |
@@ -11,3 +11,3 @@ "use strict"; | ||
function parseWFSCapabilities(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, { ...options, xml: { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, { ...options, xml: { | ||
...options?.xml, | ||
@@ -14,0 +14,0 @@ removeNSPrefix: true, |
@@ -11,3 +11,3 @@ "use strict"; | ||
function parseWMTSCapabilities(text, options) { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync(text, { ...options, xml: { | ||
const parsedXML = xml_1.XMLLoader.parseTextSync?.(text, { ...options, xml: { | ||
...options?.xml, | ||
@@ -14,0 +14,0 @@ removeNSPrefix: true, |
{ | ||
"name": "@loaders.gl/wms", | ||
"version": "3.4.0-alpha.4", | ||
"version": "4.0.0-alpha.6", | ||
"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": "3.4.0-alpha.4", | ||
"@loaders.gl/loader-utils": "3.4.0-alpha.4", | ||
"@loaders.gl/schema": "3.4.0-alpha.4", | ||
"@loaders.gl/xml": "3.4.0-alpha.4", | ||
"@loaders.gl/images": "4.0.0-alpha.6", | ||
"@loaders.gl/loader-utils": "4.0.0-alpha.6", | ||
"@loaders.gl/schema": "4.0.0-alpha.6", | ||
"@loaders.gl/xml": "4.0.0-alpha.6", | ||
"@turf/rewind": "^5.1.5", | ||
@@ -54,3 +54,3 @@ "deep-strict-equal": "^0.2.0", | ||
}, | ||
"gitHead": "f039a523df8b908a91f26c5ba8c4cfc1924b6140" | ||
"gitHead": "acc1985050dfaa0f1f0c066f8da5bce7454a046c" | ||
} |
@@ -90,3 +90,3 @@ // loaders.gl, MIT license | ||
export function parseCSWCapabilities(text: string, options?: XMLLoaderOptions): CSWCapabilities { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
const parsedXML = XMLLoader.parseTextSync?.(text, { | ||
...options, | ||
@@ -93,0 +93,0 @@ xml: { |
@@ -23,3 +23,3 @@ // loaders.gl, MIT license | ||
export function parseCSWDomain(text: string, options?: XMLLoaderOptions): CSWDomain { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
const parsedXML = XMLLoader.parseTextSync?.(text, { | ||
...options, | ||
@@ -26,0 +26,0 @@ xml: { |
@@ -38,3 +38,3 @@ // loaders.gl, MIT license | ||
export function parseCSWRecords(text: string, options?: XMLLoaderOptions): CSWRecords { | ||
const parsedXML = XMLLoader.parseTextSync(text, { | ||
const parsedXML = XMLLoader.parseTextSync?.(text, { | ||
...options, | ||
@@ -45,7 +45,7 @@ xml: { | ||
uncapitalizeKeys: true, | ||
arrayPaths: [] | ||
}, | ||
_fastXML: { | ||
...options?._fastXML, | ||
parseAttributeValue: true | ||
arrayPaths: [], | ||
_fastXML: { | ||
...options?.xml?._fastXML, | ||
parseAttributeValue: true | ||
} | ||
} | ||
@@ -52,0 +52,0 @@ }); |
@@ -11,3 +11,3 @@ // loaders.gl, MIT license | ||
export function parseExceptionReport(parsedXML: any): void { | ||
// const parsedXML = XMLLoader.parseTextSync(text, { | ||
// const parsedXML = XMLLoader.parseTextSync?.(text, { | ||
// ...options, | ||
@@ -14,0 +14,0 @@ // xml: { |
@@ -48,3 +48,3 @@ // loaders.gl, MIT license | ||
// GeoJSON | null { | ||
const parsedXML = XMLLoader.parseTextSync(text, options); | ||
const parsedXML = XMLLoader.parseTextSync?.(text, options); | ||
@@ -51,0 +51,0 @@ options = {transformCoords: noTransform, stride: 2, ...options}; |
@@ -140,3 +140,3 @@ // loaders.gl, MIT license | ||
): WMSCapabilities { | ||
const parsedXML = XMLLoader.parseTextSync(xmlText, options); | ||
const parsedXML = XMLLoader.parseTextSync?.(xmlText, options); | ||
const xmlCapabilities: any = | ||
@@ -143,0 +143,0 @@ parsedXML.WMT_MS_Capabilities || parsedXML.WMS_Capabilities || parsedXML; |
@@ -21,3 +21,3 @@ // loaders.gl, MIT license | ||
export function parseWMSFeatureInfo(text: string, options): WMSFeatureInfo { | ||
const parsedXML = XMLLoader.parseTextSync(text, options); | ||
const parsedXML = XMLLoader.parseTextSync?.(text, options); | ||
const xmlFeatureInfo: any = parsedXML.FeatureInfoResponse?.FIELDS || []; | ||
@@ -24,0 +24,0 @@ |
@@ -15,5 +15,5 @@ // loaders.gl, MIT license | ||
export function parseWMSLayerDescription(text: string, options): WMSLayerDescription { | ||
const parsedXML = XMLLoader.parseTextSync(text, options); | ||
const parsedXML = XMLLoader.parseTextSync?.(text, options); | ||
// TODO - implement parser | ||
return parsedXML as unknown as WMSLayerDescription; | ||
} |
@@ -86,5 +86,5 @@ // loaders.gl, MIT license | ||
export function parseWCSCapabilities(text: string, options): WCSCapabilities { | ||
const parsedXML = XMLLoader.parseTextSync(text, {...options, xml: {...options?.xml, removeNSPrefix: true}}); | ||
const parsedXML = XMLLoader.parseTextSync?.(text, {...options, xml: {...options?.xml, removeNSPrefix: true}}); | ||
const xmlCapabilities: any = parsedXML.Capabilities || parsedXML; | ||
return xmlCapabilities; | ||
} |
@@ -86,3 +86,3 @@ // loaders.gl, MIT license | ||
export function parseWFSCapabilities(text: string, options): WFSCapabilities { | ||
const parsedXML = XMLLoader.parseTextSync(text, {...options, xml: { | ||
const parsedXML = XMLLoader.parseTextSync?.(text, {...options, xml: { | ||
...options?.xml, | ||
@@ -89,0 +89,0 @@ removeNSPrefix: true, |
@@ -93,3 +93,3 @@ // loaders.gl, MIT license | ||
export function parseWMTSCapabilities(text: string, options): WMTSCapabilities { | ||
const parsedXML = XMLLoader.parseTextSync(text, {...options, xml: { | ||
const parsedXML = XMLLoader.parseTextSync?.(text, {...options, xml: { | ||
...options?.xml, | ||
@@ -96,0 +96,0 @@ removeNSPrefix: true, |
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
1263057
354
17037
+ Added@loaders.gl/images@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/loader-utils@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/schema@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/worker-utils@4.0.0-alpha.6(transitive)
+ Added@loaders.gl/xml@4.0.0-alpha.6(transitive)
- Removed@loaders.gl/images@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/loader-utils@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/schema@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/worker-utils@3.4.0-alpha.4(transitive)
- Removed@loaders.gl/xml@3.4.0-alpha.4(transitive)