ol 7.0.0-dev.1659450350443 → 7.0.0-dev.1659546714907
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/BingMaps.d.ts +0 -5
- package/source/BingMaps.d.ts.map +1 -1
- package/source/BingMaps.js +1 -8
- package/source/DataTile.d.ts +0 -7
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +0 -10
- package/source/IIIF.d.ts +0 -4
- package/source/IIIF.d.ts.map +1 -1
- package/source/IIIF.js +1 -8
- package/source/Image.d.ts +0 -5
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +2 -8
- package/source/ImageArcGISRest.d.ts +0 -5
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +1 -8
- package/source/ImageCanvas.d.ts +0 -5
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +1 -8
- package/source/ImageMapGuide.d.ts +0 -5
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +1 -8
- package/source/ImageStatic.d.ts +0 -5
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +1 -8
- package/source/ImageWMS.d.ts +0 -5
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +1 -8
- package/source/OGCMapTile.d.ts +0 -5
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCMapTile.js +1 -8
- package/source/OSM.d.ts +0 -5
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +1 -8
- package/source/Stamen.d.ts +0 -5
- package/source/Stamen.d.ts.map +1 -1
- package/source/Stamen.js +1 -8
- package/source/TileArcGISRest.d.ts +0 -5
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +1 -8
- package/source/TileImage.d.ts +0 -5
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +2 -8
- package/source/TileJSON.d.ts +0 -5
- package/source/TileJSON.d.ts.map +1 -1
- package/source/TileJSON.js +1 -8
- package/source/TileWMS.d.ts +0 -5
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +1 -8
- package/source/WMTS.d.ts +0 -5
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +1 -8
- package/source/XYZ.d.ts +0 -5
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +1 -8
- package/source/Zoomify.d.ts +0 -5
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +1 -8
package/package.json
CHANGED
package/source/BingMaps.d.ts
CHANGED
|
@@ -25,10 +25,6 @@ export type Options = {
|
|
|
25
25
|
* Type of imagery.
|
|
26
26
|
*/
|
|
27
27
|
imagerySet: string;
|
|
28
|
-
/**
|
|
29
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
30
|
-
*/
|
|
31
|
-
imageSmoothing?: boolean | undefined;
|
|
32
28
|
/**
|
|
33
29
|
* Use interpolated values when resampling. By default,
|
|
34
30
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -152,7 +148,6 @@ export type CoverageArea = {
|
|
|
152
148
|
* @property {string} [culture='en-us'] Culture code.
|
|
153
149
|
* @property {string} key Bing Maps API key. Get yours at https://www.bingmapsportal.com/.
|
|
154
150
|
* @property {string} imagerySet Type of imagery.
|
|
155
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
156
151
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
157
152
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
158
153
|
* @property {number} [maxZoom=21] Max zoom. Default is what's advertized by the BingMaps service.
|
package/source/BingMaps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BingMaps.d.ts","sourceRoot":"","sources":["BingMaps.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,mCAHW,OAAO,iBAAiB,EAAE,SAAS,GAClC,MAAM,CAoBjB;;;;;;;;;;;;;;;;;;SAkBa,MAAM;;;;gBACN,MAAM
|
|
1
|
+
{"version":3,"file":"BingMaps.d.ts","sourceRoot":"","sources":["BingMaps.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,mCAHW,OAAO,iBAAiB,EAAE,SAAS,GAClC,MAAM,CAoBjB;;;;;;;;;;;;;;;;;;SAkBa,MAAM;;;;gBACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAsBN,MAAM;;;;uBACN,MAAM;;;;8BACN,MAAM;;;;kBACN,MAAM,WAAW,CAAC;;;;;;eAKlB,MAAM,QAAQ,CAAC;;;;;;iBAKf,MAAM;;;;gBACN,MAAM;;;;aACN,MAAM;;;;aACN,MAAM;;;;cACN,MAAM;;;;wBACN,MAAM,MAAM,CAAC;;;;;;;;;;mBAMb,MAAM,YAAY,CAAC;;;;;;;;;;aAMnB,MAAM;;;;aACN,MAAM;;;;UACN,MAAM,MAAM,CAAC;;AA5D3B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;;;;;;;GASG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAgEjB;IA5CC;;;OAGG;IACH,eAAmB;IAEnB;;;OAGG;IACH,iBAAyE;IAEzE;;;OAGG;IACH,iBAAoE;IAEpE;;;OAGG;IACH,gBAA0B;IAE1B;;;OAGG;IACH,oBAAqC;IAkBvC;;;;;OAKG;IACH,aAHY,MAAM,CAKjB;IAED;;;;;OAKG;IACH,iBAHY,MAAM,CAKjB;IAED;;OAEG;IACH,wCAFW,+BAA+B,QAwHzC;CACF"}
|
package/source/BingMaps.js
CHANGED
|
@@ -52,7 +52,6 @@ const TOS_ATTRIBUTION =
|
|
|
52
52
|
* @property {string} [culture='en-us'] Culture code.
|
|
53
53
|
* @property {string} key Bing Maps API key. Get yours at https://www.bingmapsportal.com/.
|
|
54
54
|
* @property {string} imagerySet Type of imagery.
|
|
55
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
56
55
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
57
56
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
58
57
|
* @property {number} [maxZoom=21] Max zoom. Default is what's advertized by the BingMaps service.
|
|
@@ -121,16 +120,10 @@ class BingMaps extends TileImage {
|
|
|
121
120
|
constructor(options) {
|
|
122
121
|
const hidpi = options.hidpi !== undefined ? options.hidpi : false;
|
|
123
122
|
|
|
124
|
-
let interpolate =
|
|
125
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
126
|
-
if (options.interpolate !== undefined) {
|
|
127
|
-
interpolate = options.interpolate;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
123
|
super({
|
|
131
124
|
cacheSize: options.cacheSize,
|
|
132
125
|
crossOrigin: 'anonymous',
|
|
133
|
-
interpolate: interpolate,
|
|
126
|
+
interpolate: options.interpolate,
|
|
134
127
|
opaque: true,
|
|
135
128
|
projection: getProjection('EPSG:3857'),
|
|
136
129
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
package/source/DataTile.d.ts
CHANGED
|
@@ -57,11 +57,6 @@ export type Options = {
|
|
|
57
57
|
* The source state.
|
|
58
58
|
*/
|
|
59
59
|
state?: import("./Source.js").State | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Deprecated. To have tiles scaled, pass a `tileSize` representing
|
|
62
|
-
* the source tile size and a `tileGrid` with the desired rendered tile size.
|
|
63
|
-
*/
|
|
64
|
-
tilePixelRatio?: number | undefined;
|
|
65
60
|
/**
|
|
66
61
|
* Render tiles beyond the antimeridian.
|
|
67
62
|
*/
|
|
@@ -103,8 +98,6 @@ export type Options = {
|
|
|
103
98
|
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid.
|
|
104
99
|
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
105
100
|
* @property {import("./Source.js").State} [state] The source state.
|
|
106
|
-
* @property {number} [tilePixelRatio] Deprecated. To have tiles scaled, pass a `tileSize` representing
|
|
107
|
-
* the source tile size and a `tileGrid` with the desired rendered tile size.
|
|
108
101
|
* @property {boolean} [wrapX=false] Render tiles beyond the antimeridian.
|
|
109
102
|
* @property {number} [transition] Transition time when fading in new tiles (in miliseconds).
|
|
110
103
|
* @property {number} [bandCount=4] Number of bands represented in the data.
|
package/source/DataTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTile.d.ts","sourceRoot":"","sources":["DataTile.js"],"names":[],"mappings":";;;;;4BAiBsB,MAAM,QAAE,MAAM,QAAE,MAAM,KAAI,CAAC,OAAO,gBAAgB,EAAE,IAAI,GAAC,QAAQ,OAAO,gBAAgB,EAAE,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBxG,OAAO,YAAY,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"DataTile.d.ts","sourceRoot":"","sources":["DataTile.js"],"names":[],"mappings":";;;;;4BAiBsB,MAAM,QAAE,MAAM,QAAE,MAAM,KAAI,CAAC,OAAO,gBAAgB,EAAE,IAAI,GAAC,QAAQ,OAAO,gBAAgB,EAAE,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBxG,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApBjD;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAiEjB;IAnCC;;;OAGG;IACH,gBAAgE;IAEhE;;;OAGG;IACH,kBAAmE;IAEnE;;;OAGG;IACH,mBAAsB;IAEtB;;;OAGG;IACH,yBAA0B;IAE1B;;OAEG;IACH,gBAA6B;IA8F/B;;;OAGG;IACH,yBAFW,OAAO,oBAAoB,EAAE,OAAO,QAsB9C;IAlHC;;OAEG;IACH,WAFU,MAAM,CAEwD;IAG1E;;;;;OAKG;IACH,kCAFW,MAAM,OAAO,YAAY,EAAE,IAAI,CAAC,QAI1C;IAED;;;;;;OAMG;IACH,yBAHW,MAAM,GACL,OAAO,YAAY,EAAE,IAAI,CAWpC;IAUD;;;OAGG;IACH,4BAHW,MAAM,QAKhB;IAED;;;;;;;OAOG;IACH,WAPW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACrC,QAAQ,CAgCpB;CA2BF"}
|
package/source/DataTile.js
CHANGED
|
@@ -36,8 +36,6 @@ import {toSize} from '../size.js';
|
|
|
36
36
|
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid.
|
|
37
37
|
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
38
38
|
* @property {import("./Source.js").State} [state] The source state.
|
|
39
|
-
* @property {number} [tilePixelRatio] Deprecated. To have tiles scaled, pass a `tileSize` representing
|
|
40
|
-
* the source tile size and a `tileGrid` with the desired rendered tile size.
|
|
41
39
|
* @property {boolean} [wrapX=false] Render tiles beyond the antimeridian.
|
|
42
40
|
* @property {number} [transition] Transition time when fading in new tiles (in miliseconds).
|
|
43
41
|
* @property {number} [bandCount=4] Number of bands represented in the data.
|
|
@@ -79,7 +77,6 @@ class DataTileSource extends TileSource {
|
|
|
79
77
|
tileGrid: tileGrid,
|
|
80
78
|
opaque: options.opaque,
|
|
81
79
|
state: options.state,
|
|
82
|
-
tilePixelRatio: options.tilePixelRatio,
|
|
83
80
|
wrapX: options.wrapX,
|
|
84
81
|
transition: options.transition,
|
|
85
82
|
interpolate: options.interpolate,
|
|
@@ -96,13 +93,6 @@ class DataTileSource extends TileSource {
|
|
|
96
93
|
* @type {import('../size.js').Size|null}
|
|
97
94
|
*/
|
|
98
95
|
this.tileSize_ = options.tileSize ? toSize(options.tileSize) : null;
|
|
99
|
-
if (!this.tileSize_ && options.tilePixelRatio && tileGrid) {
|
|
100
|
-
const renderTileSize = toSize(tileGrid.getTileSize(0));
|
|
101
|
-
this.tileSize_ = [
|
|
102
|
-
renderTileSize[0] * options.tilePixelRatio,
|
|
103
|
-
renderTileSize[1] * options.tilePixelRatio,
|
|
104
|
-
];
|
|
105
|
-
}
|
|
106
96
|
|
|
107
97
|
/**
|
|
108
98
|
* @private
|
package/source/IIIF.d.ts
CHANGED
|
@@ -24,10 +24,6 @@ export type Options = {
|
|
|
24
24
|
* Requested image format.
|
|
25
25
|
*/
|
|
26
26
|
format?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
29
|
-
*/
|
|
30
|
-
imageSmoothing?: boolean | undefined;
|
|
31
27
|
/**
|
|
32
28
|
* Use interpolated values when resampling. By default,
|
|
33
29
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
package/source/IIIF.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IIIF.d.ts","sourceRoot":"","sources":["IIIF.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IIIF.d.ts","sourceRoot":"","sources":["IIIF.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;UAMnC,OAAO,YAAY,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBvC;;;;GAIG;AACH;IACE;;;;OAIG;IACH,+CA6RC;CACF"}
|
package/source/IIIF.js
CHANGED
|
@@ -19,7 +19,6 @@ import {toSize} from '../size.js';
|
|
|
19
19
|
* @property {null|string} [crossOrigin] The value for the crossOrigin option of the request.
|
|
20
20
|
* @property {import("../extent.js").Extent} [extent=[0, -height, width, 0]] The extent.
|
|
21
21
|
* @property {string} [format='jpg'] Requested image format.
|
|
22
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
23
22
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
24
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
25
24
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
|
|
@@ -70,12 +69,6 @@ class IIIF extends TileImage {
|
|
|
70
69
|
*/
|
|
71
70
|
const options = opt_options || {};
|
|
72
71
|
|
|
73
|
-
let interpolate =
|
|
74
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
75
|
-
if (options.interpolate !== undefined) {
|
|
76
|
-
interpolate = options.interpolate;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
72
|
let baseUrl = options.url || '';
|
|
80
73
|
baseUrl =
|
|
81
74
|
baseUrl +
|
|
@@ -340,7 +333,7 @@ class IIIF extends TileImage {
|
|
|
340
333
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
341
334
|
cacheSize: options.cacheSize,
|
|
342
335
|
crossOrigin: options.crossOrigin,
|
|
343
|
-
interpolate: interpolate,
|
|
336
|
+
interpolate: options.interpolate,
|
|
344
337
|
projection: options.projection,
|
|
345
338
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
346
339
|
state: options.state,
|
package/source/Image.d.ts
CHANGED
|
@@ -43,10 +43,6 @@ export type Options = {
|
|
|
43
43
|
* Attributions.
|
|
44
44
|
*/
|
|
45
45
|
attributions?: import("./Source.js").AttributionLike | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
48
|
-
*/
|
|
49
|
-
imageSmoothing?: boolean | undefined;
|
|
50
46
|
/**
|
|
51
47
|
* Use interpolated values when resampling. By default,
|
|
52
48
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -77,7 +73,6 @@ import Event from "../events/Event.js";
|
|
|
77
73
|
/**
|
|
78
74
|
* @typedef {Object} Options
|
|
79
75
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
80
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
81
76
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
82
77
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
83
78
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
|
package/source/Image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":"AAmQA;;;;;GAKG;AACH,gDAHW,OAAO,aAAa,EAAE,OAAO,OAC7B,MAAM,QAIhB;mCA7PS,MAAM;;;;;;AAyBhB;;GAEG;AAEH;;;;GAIG;AACH;IACE;;;OAGG;IACH,kBAHW,MAAM,SACN,OAAO,aAAa,EAAE,OAAO,EAWvC;IANC;;;;OAIG;IACH,OAHU,OAAO,aAAa,EAAE,OAAO,CAGrB;CAErB;;oCAvBY,cAAc,GAAC,gBAAgB,GAAC,gBAAgB;;;;6CA2BhD,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpH,OAAW,eAAe,EAAE,WAAW,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,CAAC,GACxF,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GAC9G,qBAAqB,EAAE,MAAM,CAAC;;;;;;;;;;;;;;iBAQxB,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;AAdjD;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EA4CjB;IAjCC;;OAEG;IACH,IAFU,uBAAuB,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAEP;;OAEG;IACH,MAFU,uBAAuB,OAAO,WAAW,EAAE,SAAS,CAAC,CAEtD;IAET;;OAEG;IACH,IAFU,uBAAuB,IAAI,CAAC,CAE/B;IAEP;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,6BAA6B;IAU/B;;;;OAIG;IACH,4CAHW,MAAM,GACL,MAAM,CAQjB;IAED;;;;;;OAMG;IACH,iBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,iBAAiB,EAAE,OAAO,CAgD5C;IAED;;;;;;;;OAQG;IACH,mCAPW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,iBAAiB,EAAE,OAAO,CAK5C;IAED;;;;OAIG;IACH,mCAHW,OAAO,oBAAoB,EAAE,OAAO,QAyB9C;CACF"}
|
package/source/Image.js
CHANGED
|
@@ -75,7 +75,6 @@ export class ImageSourceEvent extends Event {
|
|
|
75
75
|
/**
|
|
76
76
|
* @typedef {Object} Options
|
|
77
77
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
78
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
79
78
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
80
79
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
81
80
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
|
|
@@ -97,17 +96,12 @@ class ImageSource extends Source {
|
|
|
97
96
|
* @param {Options} options Single image source options.
|
|
98
97
|
*/
|
|
99
98
|
constructor(options) {
|
|
100
|
-
let interpolate =
|
|
101
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
102
|
-
if (options.interpolate !== undefined) {
|
|
103
|
-
interpolate = options.interpolate;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
99
|
super({
|
|
107
100
|
attributions: options.attributions,
|
|
108
101
|
projection: options.projection,
|
|
109
102
|
state: options.state,
|
|
110
|
-
interpolate:
|
|
103
|
+
interpolate:
|
|
104
|
+
options.interpolate !== undefined ? options.interpolate : true,
|
|
111
105
|
});
|
|
112
106
|
|
|
113
107
|
/***
|
|
@@ -20,10 +20,6 @@ export type Options = {
|
|
|
20
20
|
* a URL.
|
|
21
21
|
*/
|
|
22
22
|
imageLoadFunction?: import("../Image.js").LoadFunction | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
25
|
-
*/
|
|
26
|
-
imageSmoothing?: boolean | undefined;
|
|
27
23
|
/**
|
|
28
24
|
* Use interpolated values when resampling. By default,
|
|
29
25
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -72,7 +68,6 @@ export type Options = {
|
|
|
72
68
|
* the remote server.
|
|
73
69
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given
|
|
74
70
|
* a URL.
|
|
75
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
76
71
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
77
72
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
78
73
|
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageArcGISRest.d.ts","sourceRoot":"","sources":["ImageArcGISRest.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageArcGISRest.d.ts","sourceRoot":"","sources":["ImageArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,+CAmEC;IAzDC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAmC;IAEnC;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,mBAAwB;IAExB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAGjE;;;;;OAKG;IACH,iBAEC;IAED;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAgFxC;IAED;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;;;;;OAQG;IACH,uBAwBC;IAED;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAO5C;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAS1B;IAED;;;;OAIG;IACH,gCAIC;CACF"}
|
|
@@ -19,7 +19,6 @@ import {containsExtent, getHeight, getWidth} from '../extent.js';
|
|
|
19
19
|
* the remote server.
|
|
20
20
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given
|
|
21
21
|
* a URL.
|
|
22
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
23
22
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
24
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
25
24
|
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service
|
|
@@ -58,15 +57,9 @@ class ImageArcGISRest extends ImageSource {
|
|
|
58
57
|
constructor(opt_options) {
|
|
59
58
|
const options = opt_options ? opt_options : {};
|
|
60
59
|
|
|
61
|
-
let interpolate =
|
|
62
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
63
|
-
if (options.interpolate !== undefined) {
|
|
64
|
-
interpolate = options.interpolate;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
60
|
super({
|
|
68
61
|
attributions: options.attributions,
|
|
69
|
-
interpolate: interpolate,
|
|
62
|
+
interpolate: options.interpolate,
|
|
70
63
|
projection: options.projection,
|
|
71
64
|
resolutions: options.resolutions,
|
|
72
65
|
});
|
package/source/ImageCanvas.d.ts
CHANGED
|
@@ -26,10 +26,6 @@ export type Options = {
|
|
|
26
26
|
* invalidate the current cached image. See: {@link module :ol/Observable~Observable#changed}
|
|
27
27
|
*/
|
|
28
28
|
canvasFunction?: FunctionType | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
31
|
-
*/
|
|
32
|
-
imageSmoothing?: boolean | undefined;
|
|
33
29
|
/**
|
|
34
30
|
* Use interpolated values when resampling. By default,
|
|
35
31
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -78,7 +74,6 @@ export type Options = {
|
|
|
78
74
|
* the value returned by the function is later changed then
|
|
79
75
|
* `changed` should be called on the source for the source to
|
|
80
76
|
* invalidate the current cached image. See: {@link module:ol/Observable~Observable#changed}
|
|
81
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
82
77
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
83
78
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
84
79
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCanvas.d.ts","sourceRoot":"","sources":["ImageCanvas.js"],"names":[],"mappings":";;;;;;;;;;kCAsB2B,OAAO,mBAAmB,EAAE,OAAO,QAAE,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,QACpG,MAAY,QAAE,OAAO,YAAY,EAAE,IAAI,QAAE,OAAO,uBAAuB,EAAE,OAAO,KAAG,iBAAiB
|
|
1
|
+
{"version":3,"file":"ImageCanvas.d.ts","sourceRoot":"","sources":["ImageCanvas.js"],"names":[],"mappings":";;;;;;;;;;kCAsB2B,OAAO,mBAAmB,EAAE,OAAO,QAAE,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,QACpG,MAAY,QAAE,OAAO,YAAY,EAAE,IAAI,QAAE,OAAO,uBAAuB,EAAE,OAAO,KAAG,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBvF,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;AA3BjD;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,+CAkCC;IAvBC;;;OAGG;IACH,wBAA6C;IAE7C;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAGjE;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,mBAAmB,EAAE,OAAO,CAqC9C;CACF"}
|
package/source/ImageCanvas.js
CHANGED
|
@@ -36,7 +36,6 @@ import {
|
|
|
36
36
|
* the value returned by the function is later changed then
|
|
37
37
|
* `changed` should be called on the source for the source to
|
|
38
38
|
* invalidate the current cached image. See: {@link module:ol/Observable~Observable#changed}
|
|
39
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
40
39
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
41
40
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
42
41
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
|
|
@@ -59,15 +58,9 @@ class ImageCanvasSource extends ImageSource {
|
|
|
59
58
|
constructor(opt_options) {
|
|
60
59
|
const options = opt_options ? opt_options : {};
|
|
61
60
|
|
|
62
|
-
let interpolate =
|
|
63
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
64
|
-
if (options.interpolate !== undefined) {
|
|
65
|
-
interpolate = options.interpolate;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
61
|
super({
|
|
69
62
|
attributions: options.attributions,
|
|
70
|
-
interpolate: interpolate,
|
|
63
|
+
interpolate: options.interpolate,
|
|
71
64
|
projection: options.projection,
|
|
72
65
|
resolutions: options.resolutions,
|
|
73
66
|
state: options.state,
|
|
@@ -45,10 +45,6 @@ export type Options = {
|
|
|
45
45
|
* Optional function to load an image given a URL.
|
|
46
46
|
*/
|
|
47
47
|
imageLoadFunction?: import("../Image.js").LoadFunction | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
50
|
-
*/
|
|
51
|
-
imageSmoothing?: boolean | undefined;
|
|
52
48
|
/**
|
|
53
49
|
* Use interpolated values when resampling. By default,
|
|
54
50
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -76,7 +72,6 @@ export type Options = {
|
|
|
76
72
|
* @property {Array<number>} [resolutions] Resolutions.
|
|
77
73
|
* If specified, requests will be made for these resolutions only.
|
|
78
74
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
79
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
80
75
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
81
76
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
82
77
|
* @property {Object} [params] Additional parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMapGuide.d.ts","sourceRoot":"","sources":["ImageMapGuide.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2Bc,OAAO,YAAY,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"ImageMapGuide.d.ts","sourceRoot":"","sources":["ImageMapGuide.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAiFjB;IAxEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,oBAC4D;IAE5D;;;OAGG;IACH,gBAAmC;IAEnC;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,uBACiE;IAEjE;;;OAGG;IACH,eAA6D;IAE7D;;;OAGG;IACH,oBAC+D;IAE/D;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,0BAA0B;IAG5B;;;;;OAKG;IACH,iBAEC;IAED;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAoDxC;IAED;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;OAIG;IACH,gCAGC;IAED;;;;;;;OAOG;IACH,gBAPW,MAAM;YACC,MAAM,GAAE,MAAM,GAAC,MAAM;eAC5B,OAAO,cAAc,EAAE,MAAM,QAC7B,OAAO,YAAY,EAAE,IAAI,cACzB,OAAO,uBAAuB,EAAE,OAAO,GACtC,MAAM,CAsBjB;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAO5C;CACF"}
|
package/source/ImageMapGuide.js
CHANGED
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
* @property {Array<number>} [resolutions] Resolutions.
|
|
32
32
|
* If specified, requests will be made for these resolutions only.
|
|
33
33
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
34
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
35
34
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
36
35
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
37
36
|
* @property {Object} [params] Additional parameters.
|
|
@@ -49,14 +48,8 @@ class ImageMapGuide extends ImageSource {
|
|
|
49
48
|
* @param {Options} options ImageMapGuide options.
|
|
50
49
|
*/
|
|
51
50
|
constructor(options) {
|
|
52
|
-
let interpolate =
|
|
53
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
54
|
-
if (options.interpolate !== undefined) {
|
|
55
|
-
interpolate = options.interpolate;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
51
|
super({
|
|
59
|
-
interpolate: interpolate,
|
|
52
|
+
interpolate: options.interpolate,
|
|
60
53
|
projection: options.projection,
|
|
61
54
|
resolutions: options.resolutions,
|
|
62
55
|
});
|
package/source/ImageStatic.d.ts
CHANGED
|
@@ -19,10 +19,6 @@ export type Options = {
|
|
|
19
19
|
* Optional function to load an image given a URL.
|
|
20
20
|
*/
|
|
21
21
|
imageLoadFunction?: import("../Image.js").LoadFunction | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
24
|
-
*/
|
|
25
|
-
imageSmoothing?: boolean | undefined;
|
|
26
22
|
/**
|
|
27
23
|
* Use interpolated values when resampling. By default,
|
|
28
24
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -51,7 +47,6 @@ export type Options = {
|
|
|
51
47
|
* @property {import("../extent.js").Extent} [imageExtent] Extent of the image in map coordinates.
|
|
52
48
|
* This is the [left, bottom, right, top] map coordinates of your image.
|
|
53
49
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
54
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
55
50
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
56
51
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
57
52
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageStatic.d.ts","sourceRoot":"","sources":["ImageStatic.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageStatic.d.ts","sourceRoot":"","sources":["ImageStatic.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;SAGnC,MAAM;;AAdpB;;;;;;;;;;;;;;;GAeG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAoDjB;IAnCC;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,qBAAuC;IAEvC;;;OAGG;IACH,eAOC;IAED;;;OAGG;IACH,mBAA8D;IAQhE;;;;OAIG;IACH,kBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAOxC;IAED;;;;OAIG;IACH,UAHY,MAAM,CAKjB;CAkDF"}
|
package/source/ImageStatic.js
CHANGED
|
@@ -19,7 +19,6 @@ import {get as getProjection} from '../proj.js';
|
|
|
19
19
|
* @property {import("../extent.js").Extent} [imageExtent] Extent of the image in map coordinates.
|
|
20
20
|
* This is the [left, bottom, right, top] map coordinates of your image.
|
|
21
21
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
22
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
23
22
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
24
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
25
24
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
|
|
@@ -46,15 +45,9 @@ class Static extends ImageSource {
|
|
|
46
45
|
? options.imageLoadFunction
|
|
47
46
|
: defaultImageLoadFunction;
|
|
48
47
|
|
|
49
|
-
let interpolate =
|
|
50
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
51
|
-
if (options.interpolate !== undefined) {
|
|
52
|
-
interpolate = options.interpolate;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
48
|
super({
|
|
56
49
|
attributions: options.attributions,
|
|
57
|
-
interpolate: interpolate,
|
|
50
|
+
interpolate: options.interpolate,
|
|
58
51
|
projection: getProjection(options.projection),
|
|
59
52
|
});
|
|
60
53
|
|
package/source/ImageWMS.d.ts
CHANGED
|
@@ -25,10 +25,6 @@ export type Options = {
|
|
|
25
25
|
* Optional function to load an image given a URL.
|
|
26
26
|
*/
|
|
27
27
|
imageLoadFunction?: import("../Image.js").LoadFunction | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
30
|
-
*/
|
|
31
|
-
imageSmoothing?: boolean | undefined;
|
|
32
28
|
/**
|
|
33
29
|
* Use interpolated values when resampling. By default,
|
|
34
30
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -75,7 +71,6 @@ export type Options = {
|
|
|
75
71
|
* the remote WMS server: `mapserver`, `geoserver`, `carmentaserver`, or `qgis`.
|
|
76
72
|
* Only needed if `hidpi` is `true`.
|
|
77
73
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
78
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
79
74
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
80
75
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
81
76
|
* @property {Object<string,*>} params WMS request parameters.
|
package/source/ImageWMS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageWMS.d.ts","sourceRoot":"","sources":["ImageWMS.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageWMS.d.ts","sourceRoot":"","sources":["ImageWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDqB,MAAM;;;;;iBAIb,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;SAMnC,MAAM;;AAxBpB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,+CAgFC;IAtEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAmC;IAEnC;;;OAGG;IACH,aAAgB;IAGhB;;;OAGG;IACH,oBAAqC;IAErC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,mBAAwB;IAExB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAGjE;;;;;;;;;;;;;OAaG;IACH,8BAVW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,cACN,OAAO,YAAY,EAAE,cAAc,gBAKlC,MAAM,GAAC,SAAS,CAiD3B;IAED;;;;;;;;;;;;;OAaG;IACH,6DAHY,MAAM,GAAC,SAAS,CAmC3B;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAyFxC;IAED;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;;;;;OAQG;IACH,uBA6CC;IAED;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAO5C;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAS1B;IAED;;;;OAIG;IACH,gCAKC;IAED;;OAEG;IACH,mBAGC;CACF"}
|
package/source/ImageWMS.js
CHANGED
|
@@ -44,7 +44,6 @@ const GETFEATUREINFO_IMAGE_SIZE = [101, 101];
|
|
|
44
44
|
* the remote WMS server: `mapserver`, `geoserver`, `carmentaserver`, or `qgis`.
|
|
45
45
|
* Only needed if `hidpi` is `true`.
|
|
46
46
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
47
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
48
47
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
49
48
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
50
49
|
* @property {Object<string,*>} params WMS request parameters.
|
|
@@ -74,15 +73,9 @@ class ImageWMS extends ImageSource {
|
|
|
74
73
|
constructor(opt_options) {
|
|
75
74
|
const options = opt_options ? opt_options : {};
|
|
76
75
|
|
|
77
|
-
let interpolate =
|
|
78
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
79
|
-
if (options.interpolate !== undefined) {
|
|
80
|
-
interpolate = options.interpolate;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
76
|
super({
|
|
84
77
|
attributions: options.attributions,
|
|
85
|
-
interpolate: interpolate,
|
|
78
|
+
interpolate: options.interpolate,
|
|
86
79
|
projection: options.projection,
|
|
87
80
|
resolutions: options.resolutions,
|
|
88
81
|
});
|
package/source/OGCMapTile.d.ts
CHANGED
|
@@ -34,10 +34,6 @@ export type Options = {
|
|
|
34
34
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
35
35
|
*/
|
|
36
36
|
crossOrigin?: string | null | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
39
|
-
*/
|
|
40
|
-
imageSmoothing?: boolean | undefined;
|
|
41
37
|
/**
|
|
42
38
|
* Use interpolated values when resampling. By default,
|
|
43
39
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -82,7 +78,6 @@ export type Options = {
|
|
|
82
78
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
83
79
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
84
80
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
85
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
86
81
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
87
82
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
88
83
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OGCMapTile.d.ts","sourceRoot":"","sources":["OGCMapTile.js"],"names":[],"mappings":";;;;;SAQc,MAAM;;;;;;;;;;;;;;;;iBAKN,OAAO,YAAY,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"OGCMapTile.d.ts","sourceRoot":"","sources":["OGCMapTile.js"],"names":[],"mappings":";;;;;SAQc,MAAM;;;;;;;;;;;;;;;;iBAKN,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAPjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EA0BjB;IAED;;;OAGG;IACH,2BAIC;IAED;;;OAGG;IACH,qBAGC;CACF"}
|
package/source/OGCMapTile.js
CHANGED
|
@@ -19,7 +19,6 @@ import {getTileSetInfo} from './ogcTileUtil.js';
|
|
|
19
19
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
20
20
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
21
21
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
22
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
23
22
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
24
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
25
24
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
|
@@ -46,17 +45,11 @@ class OGCMapTile extends TileImage {
|
|
|
46
45
|
* @param {Options} options OGC map tile options.
|
|
47
46
|
*/
|
|
48
47
|
constructor(options) {
|
|
49
|
-
let interpolate =
|
|
50
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
51
|
-
if (options.interpolate !== undefined) {
|
|
52
|
-
interpolate = options.interpolate;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
48
|
super({
|
|
56
49
|
attributions: options.attributions,
|
|
57
50
|
cacheSize: options.cacheSize,
|
|
58
51
|
crossOrigin: options.crossOrigin,
|
|
59
|
-
interpolate: interpolate,
|
|
52
|
+
interpolate: options.interpolate,
|
|
60
53
|
projection: options.projection,
|
|
61
54
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
62
55
|
state: 'loading',
|
package/source/OSM.d.ts
CHANGED
|
@@ -22,10 +22,6 @@ export type Options = {
|
|
|
22
22
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
23
23
|
*/
|
|
24
24
|
crossOrigin?: string | null | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
27
|
-
*/
|
|
28
|
-
imageSmoothing?: boolean | undefined;
|
|
29
25
|
/**
|
|
30
26
|
* Use interpolated values when resampling. By default,
|
|
31
27
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -80,7 +76,6 @@ export type Options = {
|
|
|
80
76
|
* @property {null|string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loaded images. Note that
|
|
81
77
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
82
78
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
83
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
84
79
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
85
80
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
86
81
|
* @property {number} [maxZoom=19] Max zoom.
|
package/source/OSM.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OSM.d.ts","sourceRoot":"","sources":["OSM.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,0BAHU,MAAM,CAME
|
|
1
|
+
{"version":3,"file":"OSM.d.ts","sourceRoot":"","sources":["OSM.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,0BAHU,MAAM,CAME;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,+CAiCC;CACF"}
|
package/source/OSM.js
CHANGED
|
@@ -23,7 +23,6 @@ export const ATTRIBUTION =
|
|
|
23
23
|
* @property {null|string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loaded images. Note that
|
|
24
24
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
25
25
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
26
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
27
26
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
28
27
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
29
28
|
* @property {number} [maxZoom=19] Max zoom.
|
|
@@ -58,12 +57,6 @@ class OSM extends XYZ {
|
|
|
58
57
|
constructor(opt_options) {
|
|
59
58
|
const options = opt_options || {};
|
|
60
59
|
|
|
61
|
-
let interpolate =
|
|
62
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
63
|
-
if (options.interpolate !== undefined) {
|
|
64
|
-
interpolate = options.interpolate;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
60
|
let attributions;
|
|
68
61
|
if (options.attributions !== undefined) {
|
|
69
62
|
attributions = options.attributions;
|
|
@@ -84,7 +77,7 @@ class OSM extends XYZ {
|
|
|
84
77
|
attributionsCollapsible: false,
|
|
85
78
|
cacheSize: options.cacheSize,
|
|
86
79
|
crossOrigin: crossOrigin,
|
|
87
|
-
interpolate: interpolate,
|
|
80
|
+
interpolate: options.interpolate,
|
|
88
81
|
maxZoom: options.maxZoom !== undefined ? options.maxZoom : 19,
|
|
89
82
|
opaque: options.opaque !== undefined ? options.opaque : true,
|
|
90
83
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
package/source/Stamen.d.ts
CHANGED
|
@@ -4,10 +4,6 @@ export type Options = {
|
|
|
4
4
|
* Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
|
|
5
5
|
*/
|
|
6
6
|
cacheSize?: number | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
9
|
-
*/
|
|
10
|
-
imageSmoothing?: boolean | undefined;
|
|
11
7
|
/**
|
|
12
8
|
* Use interpolated values when resampling. By default,
|
|
13
9
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -61,7 +57,6 @@ export type Options = {
|
|
|
61
57
|
/**
|
|
62
58
|
* @typedef {Object} Options
|
|
63
59
|
* @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
|
|
64
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
65
60
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
66
61
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
67
62
|
* @property {string} layer Layer name.
|
package/source/Stamen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stamen.d.ts","sourceRoot":"","sources":["Stamen.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stamen.d.ts","sourceRoot":"","sources":["Stamen.js"],"names":[],"mappings":";;;;;;;;;;;;;;WA2Fc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AALpB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkCjB;CACF"}
|
package/source/Stamen.js
CHANGED
|
@@ -87,7 +87,6 @@ const ProviderConfig = {
|
|
|
87
87
|
/**
|
|
88
88
|
* @typedef {Object} Options
|
|
89
89
|
* @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
|
|
90
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
91
90
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
92
91
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
93
92
|
* @property {string} layer Layer name.
|
|
@@ -121,12 +120,6 @@ class Stamen extends XYZ {
|
|
|
121
120
|
* @param {Options} options Stamen options.
|
|
122
121
|
*/
|
|
123
122
|
constructor(options) {
|
|
124
|
-
let interpolate =
|
|
125
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
126
|
-
if (options.interpolate !== undefined) {
|
|
127
|
-
interpolate = options.interpolate;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
123
|
const i = options.layer.indexOf('-');
|
|
131
124
|
const provider = i == -1 ? options.layer : options.layer.slice(0, i);
|
|
132
125
|
const providerConfig = ProviderConfig[provider];
|
|
@@ -145,7 +138,7 @@ class Stamen extends XYZ {
|
|
|
145
138
|
attributions: ATTRIBUTIONS,
|
|
146
139
|
cacheSize: options.cacheSize,
|
|
147
140
|
crossOrigin: 'anonymous',
|
|
148
|
-
interpolate: interpolate,
|
|
141
|
+
interpolate: options.interpolate,
|
|
149
142
|
maxZoom:
|
|
150
143
|
options.maxZoom != undefined ? options.maxZoom : providerConfig.maxZoom,
|
|
151
144
|
minZoom:
|
|
@@ -14,10 +14,6 @@ export type Options = {
|
|
|
14
14
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
15
15
|
*/
|
|
16
16
|
crossOrigin?: string | null | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
19
|
-
*/
|
|
20
|
-
imageSmoothing?: boolean | undefined;
|
|
21
17
|
/**
|
|
22
18
|
* Use interpolated values when resampling. By default,
|
|
23
19
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -101,7 +97,6 @@ export type Options = {
|
|
|
101
97
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
102
98
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
103
99
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
104
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
105
100
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
106
101
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
107
102
|
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,+CAsCC;IAnBC;;;OAGG;IACH,gBAAmC;IAEnC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAKjC;;;OAGG;IACH,yBAOC;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBAyCC;IAWD;;;;OAIG;IACH,gCAGC;CA+CF"}
|
package/source/TileArcGISRest.js
CHANGED
|
@@ -16,7 +16,6 @@ import {hash as tileCoordHash} from '../tilecoord.js';
|
|
|
16
16
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
17
17
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
18
18
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
19
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
20
19
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
21
20
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
22
21
|
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be
|
|
@@ -73,17 +72,11 @@ class TileArcGISRest extends TileImage {
|
|
|
73
72
|
constructor(opt_options) {
|
|
74
73
|
const options = opt_options ? opt_options : {};
|
|
75
74
|
|
|
76
|
-
let interpolate =
|
|
77
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
78
|
-
if (options.interpolate !== undefined) {
|
|
79
|
-
interpolate = options.interpolate;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
75
|
super({
|
|
83
76
|
attributions: options.attributions,
|
|
84
77
|
cacheSize: options.cacheSize,
|
|
85
78
|
crossOrigin: options.crossOrigin,
|
|
86
|
-
interpolate: interpolate,
|
|
79
|
+
interpolate: options.interpolate,
|
|
87
80
|
projection: options.projection,
|
|
88
81
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
89
82
|
tileGrid: options.tileGrid,
|
package/source/TileImage.d.ts
CHANGED
|
@@ -18,10 +18,6 @@ export type Options = {
|
|
|
18
18
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
19
19
|
*/
|
|
20
20
|
crossOrigin?: string | null | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
23
|
-
*/
|
|
24
|
-
imageSmoothing?: boolean | undefined;
|
|
25
21
|
/**
|
|
26
22
|
* Use interpolated values when resampling. By default,
|
|
27
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -113,7 +109,6 @@ export type Options = {
|
|
|
113
109
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
114
110
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
115
111
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
116
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
117
112
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
118
113
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
119
114
|
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileImage.d.ts","sourceRoot":"","sources":["TileImage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileImage.d.ts","sourceRoot":"","sources":["TileImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFY,OAAO,EA+DlB;IArCC;;;OAGG;IACH,uBAFW,MAAM,QAG+C;IAEhE;;;OAGG;IACH,qBAFU,gBAAgB,CAGuC;IAEjE;;;OAGG;IACH;YAFkB,MAAM,GAAE,SAAS;MAEH;IAEhC;;;OAGG;IACH;YAFkB,MAAM,GAAE,OAAO,yBAAyB,EAAE,OAAO;MAEpC;IAE/B;;;OAGG;IACH,oCAAqE;IAErE;;;OAGG;IACH,iCAAqC;IA2DvC;;OAEG;IACH,aAFY,MAAM,CAIjB;IA0ED;;;;;;;;;OASG;IACH,oBAoBC;IAED;;;;;;;OAOG;IACH,WAPW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACrC,CAAC,SAAS,GAAC,UAAU,CAAC,CA+DlC;IAED;;;;;;;;OAQG;IACH,6BARW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACL,OAAO,uBAAuB,EAAE,OAAO,GACtC,CAAC,SAAS,GAAC,UAAU,CAAC,CA+BlC;IAED;;;;OAIG;IACH,mCAHW,OAAO,QAejB;IAED;;;;;;;;;;;OAWG;IACH,qCAJW,OAAO,YAAY,EAAE,cAAc,YACnC,OAAO,yBAAyB,EAAE,OAAO,QAanD;CACF"}
|
package/source/TileImage.js
CHANGED
|
@@ -21,7 +21,6 @@ import {getUid} from '../util.js';
|
|
|
21
21
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
22
22
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
23
23
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
24
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
25
24
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
26
25
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
27
26
|
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
@@ -71,12 +70,6 @@ class TileImage extends UrlTile {
|
|
|
71
70
|
* @param {!Options} options Image tile options.
|
|
72
71
|
*/
|
|
73
72
|
constructor(options) {
|
|
74
|
-
let interpolate =
|
|
75
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
76
|
-
if (options.interpolate !== undefined) {
|
|
77
|
-
interpolate = options.interpolate;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
73
|
super({
|
|
81
74
|
attributions: options.attributions,
|
|
82
75
|
cacheSize: options.cacheSize,
|
|
@@ -93,7 +86,8 @@ class TileImage extends UrlTile {
|
|
|
93
86
|
urls: options.urls,
|
|
94
87
|
wrapX: options.wrapX,
|
|
95
88
|
transition: options.transition,
|
|
96
|
-
interpolate:
|
|
89
|
+
interpolate:
|
|
90
|
+
options.interpolate !== undefined ? options.interpolate : true,
|
|
97
91
|
key: options.key,
|
|
98
92
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
99
93
|
zDirection: options.zDirection,
|
package/source/TileJSON.d.ts
CHANGED
|
@@ -68,10 +68,6 @@ export type Options = {
|
|
|
68
68
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
69
69
|
*/
|
|
70
70
|
crossOrigin?: string | null | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
73
|
-
*/
|
|
74
|
-
imageSmoothing?: boolean | undefined;
|
|
75
71
|
/**
|
|
76
72
|
* Use interpolated values when resampling. By default,
|
|
77
73
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -148,7 +144,6 @@ export type Options = {
|
|
|
148
144
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
149
145
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
150
146
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
151
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
152
147
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
153
148
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
154
149
|
* @property {boolean} [jsonp=false] Use JSONP with callback to load the TileJSON.
|
package/source/TileJSON.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileJSON.d.ts","sourceRoot":"","sources":["TileJSON.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA0Bc,MAAM,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"TileJSON.d.ts","sourceRoot":"","sources":["TileJSON.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA0Bc,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT3B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAgDjB;IA/BC;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,kBAAiC;IAuBnC;;;OAGG;IACH,mBAeC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,eAHY,MAAM,CAKjB;IAED;;;OAGG;IACH,2CAFW,MAAM,QAuChB;IAED;;OAEG;IACH,sCAEC;CACF"}
|
package/source/TileJSON.js
CHANGED
|
@@ -39,7 +39,6 @@ import {jsonp as requestJSONP} from '../net.js';
|
|
|
39
39
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
40
40
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
41
41
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
42
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
43
42
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
44
43
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
45
44
|
* @property {boolean} [jsonp=false] Use JSONP with callback to load the TileJSON.
|
|
@@ -75,17 +74,11 @@ class TileJSON extends TileImage {
|
|
|
75
74
|
* @param {Options} options TileJSON options.
|
|
76
75
|
*/
|
|
77
76
|
constructor(options) {
|
|
78
|
-
let interpolate =
|
|
79
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
80
|
-
if (options.interpolate !== undefined) {
|
|
81
|
-
interpolate = options.interpolate;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
77
|
super({
|
|
85
78
|
attributions: options.attributions,
|
|
86
79
|
cacheSize: options.cacheSize,
|
|
87
80
|
crossOrigin: options.crossOrigin,
|
|
88
|
-
interpolate: interpolate,
|
|
81
|
+
interpolate: options.interpolate,
|
|
89
82
|
projection: getProjection('EPSG:3857'),
|
|
90
83
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
91
84
|
state: 'loading',
|
package/source/TileWMS.d.ts
CHANGED
|
@@ -18,10 +18,6 @@ export type Options = {
|
|
|
18
18
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
19
19
|
*/
|
|
20
20
|
crossOrigin?: string | null | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
23
|
-
*/
|
|
24
|
-
imageSmoothing?: boolean | undefined;
|
|
25
21
|
/**
|
|
26
22
|
* Use interpolated values when resampling. By default,
|
|
27
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -124,7 +120,6 @@ export type Options = {
|
|
|
124
120
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
125
121
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
126
122
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
127
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
128
123
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
129
124
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
130
125
|
* @property {Object<string,*>} params WMS request parameters.
|
package/source/TileWMS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileWMS.d.ts","sourceRoot":"","sources":["TileWMS.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileWMS.d.ts","sourceRoot":"","sources":["TileWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0BqB,MAAM;;;;;;;;;;;;;;;;;;;;;iBAeb,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,+CAgEC;IAtCC;;;OAGG;IACH,gBAAgE;IAEhE;;;OAGG;IACH,gBAAqB;IAErB;;;OAGG;IACH,aAAgB;IAEhB;;;OAGG;IACH,oBAAqC;IAErC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAMjC;;;;;;;;;;;;;OAaG;IACH,8BAVW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,cACN,OAAO,YAAY,EAAE,cAAc,gBAKlC,MAAM,GAAC,SAAS,CAoE3B;IAED;;;;;;;;;;;;;OAaG;IACH,6DAHY,MAAM,GAAC,SAAS,CAmC3B;IASD;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBAkEC;IAWD;;;OAGG;IACH,yBAOC;IAED;;;;OAIG;IACH,gCAIC;IAED;;OAEG;IACH,mBAGC;CAuDF"}
|
package/source/TileWMS.js
CHANGED
|
@@ -22,7 +22,6 @@ import {hash as tileCoordHash} from '../tilecoord.js';
|
|
|
22
22
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
23
23
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
24
24
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
25
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
26
25
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
27
26
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
28
27
|
* @property {Object<string,*>} params WMS request parameters.
|
|
@@ -85,12 +84,6 @@ class TileWMS extends TileImage {
|
|
|
85
84
|
constructor(opt_options) {
|
|
86
85
|
const options = opt_options ? opt_options : /** @type {Options} */ ({});
|
|
87
86
|
|
|
88
|
-
let interpolate =
|
|
89
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
90
|
-
if (options.interpolate !== undefined) {
|
|
91
|
-
interpolate = options.interpolate;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
87
|
const params = options.params || {};
|
|
95
88
|
|
|
96
89
|
const transparent = 'TRANSPARENT' in params ? params['TRANSPARENT'] : true;
|
|
@@ -100,7 +93,7 @@ class TileWMS extends TileImage {
|
|
|
100
93
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
101
94
|
cacheSize: options.cacheSize,
|
|
102
95
|
crossOrigin: options.crossOrigin,
|
|
103
|
-
interpolate: interpolate,
|
|
96
|
+
interpolate: options.interpolate,
|
|
104
97
|
opaque: !transparent,
|
|
105
98
|
projection: options.projection,
|
|
106
99
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
package/source/WMTS.d.ts
CHANGED
|
@@ -47,10 +47,6 @@ export type Options = {
|
|
|
47
47
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
48
48
|
*/
|
|
49
49
|
crossOrigin?: string | null | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
52
|
-
*/
|
|
53
|
-
imageSmoothing?: boolean | undefined;
|
|
54
50
|
/**
|
|
55
51
|
* Use interpolated values when resampling. By default,
|
|
56
52
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -158,7 +154,6 @@ export type Options = {
|
|
|
158
154
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
159
155
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
160
156
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
161
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
162
157
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
163
158
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
164
159
|
* @property {import("../tilegrid/WMTS.js").default} tileGrid Tile grid.
|
package/source/WMTS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WMTS.d.ts","sourceRoot":"","sources":["WMTS.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WMTS.d.ts","sourceRoot":"","sources":["WMTS.js"],"names":[],"mappings":"AAmVA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,oEAHY,OAAO,GAAC,IAAI,CAyOvB;;;;;8BApkBY,KAAK,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAab,OAAO,qBAAqB,EAAE,OAAO;;;;iBACrC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;WAInC,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;eAQN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7BpB;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAwFjB;IArDC;;;OAGG;IACH,iBAAyE;IAEzE;;;OAGG;IACH,gBAA2E;IAE3E;;;OAGG;IACH,oBAC4D;IAE5D;;;OAGG;IACH,eAA2B;IAE3B;;;OAGG;IACH,mBAAmC;IAEnC;;;OAGG;IACH,eAA2B;IAK3B;;;OAGG;IACH,yBAAuC;IA2BzC;;;;;;OAMG;IACH,qBAEC;IAED;;;;OAIG;IACH,aAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,YAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,gBAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,sBAHY,eAAe,CAK1B;IAED;;;;OAIG;IACH,YAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;OAGG;IACH,6BAOC;IAED;;;;OAIG;IACH,wCAGC;IAED;;;OAGG;IACH,iCAHW,MAAM,GACL,OAAO,YAAY,EAAE,WAAW,CAmE3C;CACF"}
|
package/source/WMTS.js
CHANGED
|
@@ -22,7 +22,6 @@ import {equivalent, get as getProjection, transformExtent} from '../proj.js';
|
|
|
22
22
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
23
23
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
24
24
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
25
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
26
25
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
27
26
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
28
27
|
* @property {import("../tilegrid/WMTS.js").default} tileGrid Tile grid.
|
|
@@ -73,12 +72,6 @@ class WMTS extends TileImage {
|
|
|
73
72
|
* @param {Options} options WMTS options.
|
|
74
73
|
*/
|
|
75
74
|
constructor(options) {
|
|
76
|
-
let interpolate =
|
|
77
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
78
|
-
if (options.interpolate !== undefined) {
|
|
79
|
-
interpolate = options.interpolate;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
75
|
// TODO: add support for TileMatrixLimits
|
|
83
76
|
|
|
84
77
|
const requestEncoding =
|
|
@@ -98,7 +91,7 @@ class WMTS extends TileImage {
|
|
|
98
91
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
99
92
|
cacheSize: options.cacheSize,
|
|
100
93
|
crossOrigin: options.crossOrigin,
|
|
101
|
-
interpolate: interpolate,
|
|
94
|
+
interpolate: options.interpolate,
|
|
102
95
|
projection: options.projection,
|
|
103
96
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
104
97
|
tileClass: options.tileClass,
|
package/source/XYZ.d.ts
CHANGED
|
@@ -18,10 +18,6 @@ export type Options = {
|
|
|
18
18
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
19
19
|
*/
|
|
20
20
|
crossOrigin?: string | null | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
23
|
-
*/
|
|
24
|
-
imageSmoothing?: boolean | undefined;
|
|
25
21
|
/**
|
|
26
22
|
* Use interpolated values when resampling. By default,
|
|
27
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -122,7 +118,6 @@ export type Options = {
|
|
|
122
118
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
123
119
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
124
120
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
125
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
126
121
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
127
122
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
128
123
|
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
package/source/XYZ.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XYZ.d.ts","sourceRoot":"","sources":["XYZ.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XYZ.d.ts","sourceRoot":"","sources":["XYZ.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH;IACE;;OAEG;IACH,+CA0CC;IALC;;;OAGG;IACH,gBAAgE;CASnE"}
|
package/source/XYZ.js
CHANGED
|
@@ -13,7 +13,6 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js';
|
|
|
13
13
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
14
14
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
15
15
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
16
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
17
16
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
18
17
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
19
18
|
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
@@ -78,12 +77,6 @@ class XYZ extends TileImage {
|
|
|
78
77
|
constructor(opt_options) {
|
|
79
78
|
const options = opt_options || {};
|
|
80
79
|
|
|
81
|
-
let interpolate =
|
|
82
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
83
|
-
if (options.interpolate !== undefined) {
|
|
84
|
-
interpolate = options.interpolate;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
80
|
const projection =
|
|
88
81
|
options.projection !== undefined ? options.projection : 'EPSG:3857';
|
|
89
82
|
|
|
@@ -102,7 +95,7 @@ class XYZ extends TileImage {
|
|
|
102
95
|
attributions: options.attributions,
|
|
103
96
|
cacheSize: options.cacheSize,
|
|
104
97
|
crossOrigin: options.crossOrigin,
|
|
105
|
-
interpolate: interpolate,
|
|
98
|
+
interpolate: options.interpolate,
|
|
106
99
|
opaque: options.opaque,
|
|
107
100
|
projection: projection,
|
|
108
101
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
package/source/Zoomify.d.ts
CHANGED
|
@@ -39,10 +39,6 @@ export type Options = {
|
|
|
39
39
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
40
40
|
*/
|
|
41
41
|
crossOrigin?: string | null | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Deprecated. Use the `interpolate` option instead.
|
|
44
|
-
*/
|
|
45
|
-
imageSmoothing?: boolean | undefined;
|
|
46
42
|
/**
|
|
47
43
|
* Use interpolated values when resampling. By default,
|
|
48
44
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -114,7 +110,6 @@ import ImageTile from "../ImageTile.js";
|
|
|
114
110
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
115
111
|
* you must provide a `crossOrigin` value you want to access pixel data with the Canvas renderer.
|
|
116
112
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
117
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
118
113
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
119
114
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
120
115
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
|
package/source/Zoomify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoomify.d.ts","sourceRoot":"","sources":["Zoomify.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;IACE;;;;;;;;OAQG;IACH,sBARW,OAAO,YAAY,EAAE,IAAI,aACzB,OAAO,iBAAiB,EAAE,SAAS,mBAEnC,MAAM,eACL,MAAM,2BACP,OAAO,YAAY,EAAE,YAAY,0DAwB3C;IAVC;;;OAGG;IACH,sBAAyB;IAEzB;;OAEG;IACH,WAFU,OAAO,YAAY,EAAE,IAAI,CAEV;CA2B5B;;kCA5DY,SAAS,GAAG,WAAW
|
|
1
|
+
{"version":3,"file":"Zoomify.d.ts","sourceRoot":"","sources":["Zoomify.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;IACE;;;;;;;;OAQG;IACH,sBARW,OAAO,YAAY,EAAE,IAAI,aACzB,OAAO,iBAAiB,EAAE,SAAS,mBAEnC,MAAM,eACL,MAAM,2BACP,OAAO,YAAY,EAAE,YAAY,0DAwB3C;IAVC;;;OAGG;IACH,sBAAyB;IAEzB;;OAEG;IACH,WAFU,OAAO,YAAY,EAAE,IAAI,CAEV;CA2B5B;;kCA5DY,SAAS,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;iBAuEtB,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;SAInC,MAAM;;;;;;;;UAYN,OAAO,YAAY,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;AAzBvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,yBAFW,OAAO,EAuKjB;CACF"}
|
package/source/Zoomify.js
CHANGED
|
@@ -83,7 +83,6 @@ export class CustomTile extends ImageTile {
|
|
|
83
83
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
84
84
|
* you must provide a `crossOrigin` value you want to access pixel data with the Canvas renderer.
|
|
85
85
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
86
|
-
* @property {boolean} [imageSmoothing=true] Deprecated. Use the `interpolate` option instead.
|
|
87
86
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
88
87
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
89
88
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
|
|
@@ -129,12 +128,6 @@ class Zoomify extends TileImage {
|
|
|
129
128
|
constructor(opt_options) {
|
|
130
129
|
const options = opt_options;
|
|
131
130
|
|
|
132
|
-
let interpolate =
|
|
133
|
-
options.imageSmoothing !== undefined ? options.imageSmoothing : true;
|
|
134
|
-
if (options.interpolate !== undefined) {
|
|
135
|
-
interpolate = options.interpolate;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
131
|
const size = options.size;
|
|
139
132
|
const tierSizeCalculation =
|
|
140
133
|
options.tierSizeCalculation !== undefined
|
|
@@ -264,7 +257,7 @@ class Zoomify extends TileImage {
|
|
|
264
257
|
attributions: options.attributions,
|
|
265
258
|
cacheSize: options.cacheSize,
|
|
266
259
|
crossOrigin: options.crossOrigin,
|
|
267
|
-
interpolate: interpolate,
|
|
260
|
+
interpolate: options.interpolate,
|
|
268
261
|
projection: options.projection,
|
|
269
262
|
tilePixelRatio: tilePixelRatio,
|
|
270
263
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|