mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
[openlayers] Add hidpi option and test for ImageArcGISRest source (#25348)
* Add hidpi option to ImageArcGISRestOptions * Add tests for the ImageArcGISRest source
This commit is contained in:
committed by
Wesley Wigham
parent
ab7694a033
commit
e8e909253b
Vendored
+2
@@ -8,6 +8,7 @@
|
||||
// Dan Manastireanu <https://github.com/danmana>
|
||||
// Yair Tawil <https://github.com/yairtawil>
|
||||
// Pierre Marchand <https://github.com/pierremarc>
|
||||
// Hauke Stieler <https://github.com/hauke96>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// Definitions partially generated using tsd-jsdoc (https://github.com/englercj/tsd-jsdoc)
|
||||
|
||||
@@ -12087,6 +12088,7 @@ export namespace olx {
|
||||
interface ImageArcGISRestOptions {
|
||||
attributions?: ol.Attribution[];
|
||||
crossOrigin?: (string);
|
||||
hidpi?: boolean;
|
||||
logo?: (string | LogoOptions);
|
||||
imageLoadFunction?: ol.ImageLoadFunctionType;
|
||||
params?: { [k: string]: any };
|
||||
|
||||
@@ -718,6 +718,23 @@ const wmts: ol.source.WMTS = new ol.source.WMTS({
|
||||
wrapX: true,
|
||||
});
|
||||
|
||||
//
|
||||
// ol.source.ImageArcGISRest
|
||||
//
|
||||
const arcGISImageLoadFunction: ol.ImageLoadFunctionType = (image, url) => {};
|
||||
const imageArcGISRest: ol.source.ImageArcGISRest = new ol.source.ImageArcGISRest({
|
||||
attributions: [attribution],
|
||||
crossOrigin: stringValue,
|
||||
hidpi: booleanValue,
|
||||
logo: logoOptions,
|
||||
imageLoadFunction: arcGISImageLoadFunction,
|
||||
params: {},
|
||||
projection: projectionLike,
|
||||
ratio: numberValue,
|
||||
resolutions: [numberValue, numberValue, numberValue, numberValue, numberValue],
|
||||
url: stringValue
|
||||
});
|
||||
|
||||
//
|
||||
// ol.coordinate
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user