ol 7.0.0-dev.1659544578993 → 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/DataTile.d.ts +0 -7
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +0 -10
package/package.json
CHANGED
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
|