@loaders.gl/wms
Advanced tools
Comparing version 3.4.0-alpha.4 to 3.4.0-alpha.5
@@ -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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest'; | ||
var LERCLoader = { | ||
@@ -17,0 +17,0 @@ id: 'lerc', |
@@ -137,2 +137,9 @@ "use strict"; | ||
} | ||
var xmlDimensions = (0, _parseXmlHelpers.getXMLArray)(xmlLayer === null || xmlLayer === void 0 ? void 0 : xmlLayer.Dimension); | ||
var dimensions = xmlDimensions.map(function (xml) { | ||
return extractDimension(xml); | ||
}); | ||
if (dimensions.length) { | ||
layer.dimensions = dimensions; | ||
} | ||
if (xmlLayer !== null && xmlLayer !== void 0 && xmlLayer.opaque) { | ||
@@ -215,2 +222,28 @@ layer.opaque = (0, _parseXmlHelpers.getXMLBoolean)(xmlLayer === null || xmlLayer === void 0 ? void 0 : xmlLayer.opaque); | ||
} | ||
function extractDimension(xmlDimension) { | ||
var name = xmlDimension.name, | ||
units = xmlDimension.units, | ||
extent = xmlDimension.value; | ||
var dimension = { | ||
name: name, | ||
units: units, | ||
extent: extent | ||
}; | ||
if (xmlDimension.unitSymbol) { | ||
dimension.unitSymbol = xmlDimension.unitSymbol; | ||
} | ||
if (xmlDimension.default) { | ||
dimension.defaultValue = xmlDimension.default; | ||
} | ||
if (xmlDimension.multipleValues) { | ||
dimension.multipleValues = (0, _parseXmlHelpers.getXMLBoolean)(xmlDimension.multipleValues); | ||
} | ||
if (xmlDimension.nearestValue) { | ||
dimension.nearestValue = (0, _parseXmlHelpers.getXMLBoolean)(xmlDimension.nearestValue); | ||
} | ||
if (xmlDimension.current) { | ||
dimension.current = (0, _parseXmlHelpers.getXMLBoolean)(xmlDimension.current); | ||
} | ||
return dimension; | ||
} | ||
function addInheritedLayerProps(layer, parent) { | ||
@@ -217,0 +250,0 @@ if (parent && parent.geographicBoundingBox && !layer.geographicBoundingBox) { |
@@ -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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest'; | ||
export const LERCLoader = { | ||
@@ -4,0 +4,0 @@ id: 'lerc', |
@@ -91,2 +91,7 @@ import { XMLLoader } from '@loaders.gl/xml'; | ||
} | ||
const xmlDimensions = getXMLArray(xmlLayer === null || xmlLayer === void 0 ? void 0 : xmlLayer.Dimension); | ||
const dimensions = xmlDimensions.map(xml => extractDimension(xml)); | ||
if (dimensions.length) { | ||
layer.dimensions = dimensions; | ||
} | ||
if (xmlLayer !== null && xmlLayer !== void 0 && xmlLayer.opaque) { | ||
@@ -161,2 +166,30 @@ layer.opaque = getXMLBoolean(xmlLayer === null || xmlLayer === void 0 ? void 0 : xmlLayer.opaque); | ||
} | ||
function extractDimension(xmlDimension) { | ||
const { | ||
name, | ||
units, | ||
value: extent | ||
} = xmlDimension; | ||
const dimension = { | ||
name, | ||
units, | ||
extent | ||
}; | ||
if (xmlDimension.unitSymbol) { | ||
dimension.unitSymbol = xmlDimension.unitSymbol; | ||
} | ||
if (xmlDimension.default) { | ||
dimension.defaultValue = xmlDimension.default; | ||
} | ||
if (xmlDimension.multipleValues) { | ||
dimension.multipleValues = getXMLBoolean(xmlDimension.multipleValues); | ||
} | ||
if (xmlDimension.nearestValue) { | ||
dimension.nearestValue = getXMLBoolean(xmlDimension.nearestValue); | ||
} | ||
if (xmlDimension.current) { | ||
dimension.current = getXMLBoolean(xmlDimension.current); | ||
} | ||
return dimension; | ||
} | ||
function addInheritedLayerProps(layer, parent) { | ||
@@ -163,0 +196,0 @@ if (parent && parent.geographicBoundingBox && !layer.geographicBoundingBox) { |
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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : '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 "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest'; | ||
export const WMSErrorLoader = { | ||
@@ -4,0 +4,0 @@ id: 'wms-error', |
@@ -22,4 +22,4 @@ export type { CSWLoaderOptions } from './csw-capabilities-loader'; | ||
export { GMLLoader as _GMLLoader } from './gml-loader'; | ||
export type { ImageSourceMetadata } from './lib/sources/image-source'; | ||
export type { ImageType } from '@loaders.gl/images'; | ||
export type { ImageSourceProps, ImageSourceMetadata } from './lib/sources/image-source'; | ||
export { ImageSource } from './lib/sources/image-source'; | ||
@@ -26,0 +26,0 @@ export type { ImageServiceType } from './lib/create-image-source'; |
@@ -54,2 +54,4 @@ /** All capabilities of a WMS service - response to a WMS `GetCapabilities` data structure extracted from XML */ | ||
boundingBoxes?: WMSBoundingBox[]; | ||
/** any extra dimension such as time */ | ||
dimensions?: WMSDimension[]; | ||
/** Whether queries can be performed on the layer */ | ||
@@ -80,2 +82,24 @@ queryable?: boolean; | ||
}; | ||
/** | ||
* An optional dimension that can be queried using the `name=...` parameter | ||
* Note that layers that have at least one dimension without `default` value | ||
* become unrenderable unless the dimension value is supplied to GetMap requests. | ||
*/ | ||
export type WMSDimension = { | ||
/** name of dimension, becomes a valid parameter key for this layer */ | ||
name: string; | ||
/** Textual units for this dimensional axis */ | ||
units: string; | ||
/** Unit symbol for this dimensional axis */ | ||
unitSymbol?: string; | ||
/** Default value if no value is supplied. If dimension lacks defaultValue, requests fail if no value is supplied */ | ||
defaultValue?: string; | ||
/** Can multiple values of the dimension be requested? */ | ||
multipleValues?: boolean; | ||
nearestValue?: boolean; | ||
/** A special value "current" is supported, typically for time dimension */ | ||
current?: boolean; | ||
/** Text content indicating available values for dimension */ | ||
extent: string; | ||
}; | ||
/** Metadata about a supported WMS request */ | ||
@@ -82,0 +106,0 @@ export type WMSRequest = { |
@@ -117,2 +117,8 @@ "use strict"; | ||
} | ||
// Extract dimensions | ||
const xmlDimensions = (0, parse_xml_helpers_1.getXMLArray)(xmlLayer?.Dimension); | ||
const dimensions = xmlDimensions.map((xml) => extractDimension(xml)); | ||
if (dimensions.length) { | ||
layer.dimensions = dimensions; | ||
} | ||
if (xmlLayer?.opaque) { | ||
@@ -184,2 +190,28 @@ layer.opaque = (0, parse_xml_helpers_1.getXMLBoolean)(xmlLayer?.opaque); | ||
} | ||
/** | ||
* Extracts optional WMS Dimension layer field | ||
* @param xmlDimension | ||
* @example <Dimension name="time" units="ISO8601" default="2018-01-01" nearestValue="0">2001-01-01/2018-01-01/P1Y</Dimension> | ||
* @see https://mapserver.org/ogc/wms_dimension.html | ||
*/ | ||
function extractDimension(xmlDimension) { | ||
const { name, units, value: extent } = xmlDimension; | ||
const dimension = { name, units, extent }; | ||
if (xmlDimension.unitSymbol) { | ||
dimension.unitSymbol = xmlDimension.unitSymbol; | ||
} | ||
if (xmlDimension.default) { | ||
dimension.defaultValue = xmlDimension.default; | ||
} | ||
if (xmlDimension.multipleValues) { | ||
dimension.multipleValues = (0, parse_xml_helpers_1.getXMLBoolean)(xmlDimension.multipleValues); | ||
} | ||
if (xmlDimension.nearestValue) { | ||
dimension.nearestValue = (0, parse_xml_helpers_1.getXMLBoolean)(xmlDimension.nearestValue); | ||
} | ||
if (xmlDimension.current) { | ||
dimension.current = (0, parse_xml_helpers_1.getXMLBoolean)(xmlDimension.current); | ||
} | ||
return dimension; | ||
} | ||
/** Traverse layers and inject missing props from parents */ | ||
@@ -186,0 +218,0 @@ // eslint-disable-next-line complexity |
@@ -66,3 +66,3 @@ import type { ImageType } from '@loaders.gl/images'; | ||
*/ | ||
export declare abstract class ImageSource<PropsT extends ImageSourceProps> extends DataSource<PropsT> { | ||
export declare abstract class ImageSource<PropsT extends ImageSourceProps = ImageSourceProps> extends DataSource<PropsT> { | ||
abstract getMetadata(): Promise<ImageSourceMetadata>; | ||
@@ -69,0 +69,0 @@ abstract getImage(parameters: GetImageParameters): Promise<ImageType>; |
{ | ||
"name": "@loaders.gl/wms", | ||
"version": "3.4.0-alpha.4", | ||
"version": "3.4.0-alpha.5", | ||
"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": "3.4.0-alpha.5", | ||
"@loaders.gl/loader-utils": "3.4.0-alpha.5", | ||
"@loaders.gl/schema": "3.4.0-alpha.5", | ||
"@loaders.gl/xml": "3.4.0-alpha.5", | ||
"@turf/rewind": "^5.1.5", | ||
@@ -54,3 +54,3 @@ "deep-strict-equal": "^0.2.0", | ||
}, | ||
"gitHead": "f039a523df8b908a91f26c5ba8c4cfc1924b6140" | ||
"gitHead": "686929f85b3420c15df051eab769942b260dd242" | ||
} |
@@ -52,4 +52,4 @@ // loaders.gl, MIT license | ||
export type {ImageSourceMetadata} from './lib/sources/image-source'; | ||
export type {ImageType} from '@loaders.gl/images'; | ||
export type {ImageSourceProps, ImageSourceMetadata} from './lib/sources/image-source'; | ||
export {ImageSource} from './lib/sources/image-source'; | ||
@@ -56,0 +56,0 @@ |
@@ -76,2 +76,5 @@ // loaders.gl, MIT license | ||
/** any extra dimension such as time */ | ||
dimensions?: WMSDimension[]; | ||
/** Whether queries can be performed on the layer */ | ||
@@ -109,2 +112,26 @@ queryable?: boolean; | ||
/** | ||
* An optional dimension that can be queried using the `name=...` parameter | ||
* Note that layers that have at least one dimension without `default` value | ||
* become unrenderable unless the dimension value is supplied to GetMap requests. | ||
*/ | ||
export type WMSDimension = { | ||
/** name of dimension, becomes a valid parameter key for this layer */ | ||
name: string; | ||
/** Textual units for this dimensional axis */ | ||
units: string; | ||
/** Unit symbol for this dimensional axis */ | ||
unitSymbol?: string; | ||
/** Default value if no value is supplied. If dimension lacks defaultValue, requests fail if no value is supplied */ | ||
defaultValue?: string; | ||
/** Can multiple values of the dimension be requested? */ | ||
multipleValues?: boolean; | ||
/* Will nearest values will be substituted when out of range, if false exact values are required */ | ||
nearestValue?: boolean; | ||
/** A special value "current" is supported, typically for time dimension */ | ||
current?: boolean; | ||
/** Text content indicating available values for dimension */ | ||
extent: string; | ||
}; | ||
/** Metadata about a supported WMS request */ | ||
@@ -263,2 +290,9 @@ export type WMSRequest = { | ||
// Extract dimensions | ||
const xmlDimensions = getXMLArray(xmlLayer?.Dimension); | ||
const dimensions = xmlDimensions.map((xml) => extractDimension(xml)); | ||
if (dimensions.length) { | ||
layer.dimensions = dimensions; | ||
} | ||
if (xmlLayer?.opaque) { | ||
@@ -345,2 +379,32 @@ layer.opaque = getXMLBoolean(xmlLayer?.opaque); | ||
/** | ||
* Extracts optional WMS Dimension layer field | ||
* @param xmlDimension | ||
* @example <Dimension name="time" units="ISO8601" default="2018-01-01" nearestValue="0">2001-01-01/2018-01-01/P1Y</Dimension> | ||
* @see https://mapserver.org/ogc/wms_dimension.html | ||
*/ | ||
function extractDimension(xmlDimension: any): WMSDimension { | ||
const {name, units, value: extent} = xmlDimension; | ||
const dimension: WMSDimension = {name, units, extent}; | ||
if (xmlDimension.unitSymbol) { | ||
dimension.unitSymbol = xmlDimension.unitSymbol; | ||
} | ||
if (xmlDimension.default) { | ||
dimension.defaultValue = xmlDimension.default; | ||
} | ||
if (xmlDimension.multipleValues) { | ||
dimension.multipleValues = getXMLBoolean(xmlDimension.multipleValues); | ||
} | ||
if (xmlDimension.nearestValue) { | ||
dimension.nearestValue = getXMLBoolean(xmlDimension.nearestValue); | ||
} | ||
if (xmlDimension.current) { | ||
dimension.current = getXMLBoolean(xmlDimension.current); | ||
} | ||
return dimension; | ||
} | ||
/** Traverse layers and inject missing props from parents */ | ||
@@ -347,0 +411,0 @@ // eslint-disable-next-line complexity |
@@ -77,5 +77,7 @@ // loaders.gl, MIT license | ||
*/ | ||
export abstract class ImageSource<PropsT extends ImageSourceProps> extends DataSource<PropsT> { | ||
export abstract class ImageSource< | ||
PropsT extends ImageSourceProps = ImageSourceProps | ||
> extends DataSource<PropsT> { | ||
abstract getMetadata(): Promise<ImageSourceMetadata>; | ||
abstract getImage(parameters: GetImageParameters): Promise<ImageType>; | ||
} |
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
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
1246608
16957
+ Added@loaders.gl/images@3.4.0-alpha.5(transitive)
+ Added@loaders.gl/loader-utils@3.4.0-alpha.5(transitive)
+ Added@loaders.gl/schema@3.4.0-alpha.5(transitive)
+ Added@loaders.gl/worker-utils@3.4.0-alpha.5(transitive)
+ Added@loaders.gl/xml@3.4.0-alpha.5(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)