ol 8.1.1-dev.1695841290313 → 8.1.1-dev.1695883797965
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/Tile.d.ts +2 -2
- package/Tile.d.ts.map +1 -1
- package/Tile.js +8 -11
- package/TileCache.d.ts.map +1 -1
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/format/OWS.js +1 -1
- package/format/WMSCapabilities.js +1 -1
- package/format/WMTSCapabilities.js +1 -1
- package/format/XML.d.ts +6 -6
- package/format/XML.d.ts.map +1 -1
- package/format/XML.js +7 -4
- package/geom/flat/interiorpoint.d.ts.map +1 -1
- package/geom/flat/interiorpoint.js +1 -0
- package/geom/flat/orient.d.ts +2 -2
- package/geom/flat/orient.d.ts.map +1 -1
- package/geom/flat/orient.js +1 -1
- package/geom/flat/simplify.d.ts.map +1 -1
- package/geom/flat/simplify.js +2 -0
- package/package.json +1 -1
- package/render/canvas/hitdetect.js +1 -1
- package/render/webgl/utils.d.ts.map +1 -1
- package/render/webgl/utils.js +15 -2
- package/rotationconstraint.d.ts.map +1 -1
- package/rotationconstraint.js +5 -8
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +2 -0
- package/structs/LRUCache.d.ts +6 -6
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/LRUCache.js +4 -7
- package/tilegrid/TileGrid.d.ts +2 -2
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/TileGrid.js +10 -7
- package/tileurlfunction.d.ts.map +1 -1
- package/tileurlfunction.js +5 -5
- package/util.js +1 -1
- package/webgl/Buffer.d.ts +6 -6
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +12 -12
- package/webgl.d.ts +4 -4
- package/webgl.d.ts.map +1 -1
- package/webgl.js +4 -4
package/Tile.d.ts
CHANGED
|
@@ -140,9 +140,9 @@ declare class Tile extends EventTarget {
|
|
|
140
140
|
* An "interim" tile for this tile. The interim tile may be used while this
|
|
141
141
|
* one is loading, for "smooth" transitions when changing params/dimensions
|
|
142
142
|
* on the source.
|
|
143
|
-
* @type {Tile}
|
|
143
|
+
* @type {Tile|null}
|
|
144
144
|
*/
|
|
145
|
-
interimTile: Tile;
|
|
145
|
+
interimTile: Tile | null;
|
|
146
146
|
/**
|
|
147
147
|
* A key assigned to the tile. This is used by the tile source to determine
|
|
148
148
|
* if this tile can effectively be used, or if a new tile should be created
|
package/Tile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA0CsB,IAAI,QAAE,MAAM,KAAG,IAAI;;;;;;;;;;;iCAcnB,OAAO,gBAAgB,EAAE,SAAS,QAAE,MAAM,QAC/D,OAAmB,sBAAsB,EAAE,OAAO,KAAG,CAAC,MAAM,GAAC,SAAS,CAAC;;;;;;;;;;;;;AAhDxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,uBAJW,OAAO,gBAAgB,EAAE,SAAS,6CAsD5C;IA7CC;;OAEG;IACH,WAFU,OAAO,gBAAgB,EAAE,SAAS,CAElB;IAE1B;;;OAGG;IACH,qBAAkB;IAElB;;;;;OAKG;IACH,aAFU,IAAI,
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA0CsB,IAAI,QAAE,MAAM,KAAG,IAAI;;;;;;;;;;;iCAcnB,OAAO,gBAAgB,EAAE,SAAS,QAAE,MAAM,QAC/D,OAAmB,sBAAsB,EAAE,OAAO,KAAG,CAAC,MAAM,GAAC,SAAS,CAAC;;;;;;;;;;;;;AAhDxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,uBAJW,OAAO,gBAAgB,EAAE,SAAS,6CAsD5C;IA7CC;;OAEG;IACH,WAFU,OAAO,gBAAgB,EAAE,SAAS,CAElB;IAE1B;;;OAGG;IACH,qBAAkB;IAElB;;;;;OAKG;IACH,aAFU,IAAI,GAAC,IAAI,CAEI;IAEvB;;;;;OAKG;IACH,KAFU,MAAM,CAEH;IAEb;;;OAGG;IACH,aAFU,MAAM,CAG6C;IAE7D;;;;OAIG;IACH;YAFiB,MAAM,GAAE,MAAM;MAEJ;IAE3B;;OAEG;IACH,aAFU,OAAO,CAEuB;IAG1C;;OAEG;IACH,0BAEC;IAED;;OAEG;IACH,gBAKC;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;IAED;;;;;OAKG;IACH,kBAFa,IAAI,CAyBhB;IAED;;;OAGG;IACH,4BA6BC;IAED;;;;OAIG;IACH,gBAHY,OAAO,gBAAgB,EAAE,SAAS,CAK7C;IAED;;OAEG;IACH,gBAEC;IAED;;;;;;;OAOG;IACH,2BAMC;IAED;;;;;;OAMG;IACH,aAEC;IAED;;;;;OAKG;IACH,aAJW,MAAM,QACN,MAAM,GACL,MAAM,CAoBjB;IAED;;;;;;OAMG;IACH,iBAHW,MAAM,GACL,OAAO,CAOlB;IAED;;;OAGG;IACH,kBAFW,MAAM,QAMhB;CACF;wBAzTuB,oBAAoB"}
|
package/Tile.js
CHANGED
|
@@ -100,7 +100,7 @@ class Tile extends EventTarget {
|
|
|
100
100
|
* An "interim" tile for this tile. The interim tile may be used while this
|
|
101
101
|
* one is loading, for "smooth" transitions when changing params/dimensions
|
|
102
102
|
* on the source.
|
|
103
|
-
* @type {Tile}
|
|
103
|
+
* @type {Tile|null}
|
|
104
104
|
*/
|
|
105
105
|
this.interimTile = null;
|
|
106
106
|
|
|
@@ -163,11 +163,11 @@ class Tile extends EventTarget {
|
|
|
163
163
|
* @return {!Tile} Best tile for rendering.
|
|
164
164
|
*/
|
|
165
165
|
getInterimTile() {
|
|
166
|
-
|
|
166
|
+
let tile = this.interimTile;
|
|
167
|
+
if (!tile) {
|
|
167
168
|
//empty chain
|
|
168
169
|
return this;
|
|
169
170
|
}
|
|
170
|
-
let tile = this.interimTile;
|
|
171
171
|
|
|
172
172
|
// find the first loaded tile and return it. Since the chain is sorted in
|
|
173
173
|
// decreasing order of creation time, there is no need to search the remainder
|
|
@@ -192,17 +192,13 @@ class Tile extends EventTarget {
|
|
|
192
192
|
* that are no longer relevant.
|
|
193
193
|
*/
|
|
194
194
|
refreshInterimChain() {
|
|
195
|
-
|
|
195
|
+
let tile = this.interimTile;
|
|
196
|
+
if (!tile) {
|
|
196
197
|
return;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @type {Tile}
|
|
203
|
-
*/
|
|
200
|
+
/** @type {Tile} */
|
|
204
201
|
let prev = this;
|
|
205
|
-
|
|
206
202
|
do {
|
|
207
203
|
if (tile.getState() == TileState.LOADED) {
|
|
208
204
|
//we have a loaded tile, we can discard the rest of the list
|
|
@@ -210,7 +206,8 @@ class Tile extends EventTarget {
|
|
|
210
206
|
//older than this tile (i.e. any LOADING tile following this entry in the chain)
|
|
211
207
|
tile.interimTile = null;
|
|
212
208
|
break;
|
|
213
|
-
}
|
|
209
|
+
}
|
|
210
|
+
if (tile.getState() == TileState.LOADING) {
|
|
214
211
|
//keep this LOADING tile any loaded tiles later in the chain are
|
|
215
212
|
//older than this tile, so we're still interested in the request
|
|
216
213
|
prev = tile;
|
package/TileCache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileCache.d.ts","sourceRoot":"","sources":["TileCache.js"],"names":[],"mappings":";AAMA;
|
|
1
|
+
{"version":3,"file":"TileCache.d.ts","sourceRoot":"","sources":["TileCache.js"],"names":[],"mappings":";AAMA;IAuBe,gDAmB6M;IAlC1N;;OAEG;IACH;YAFmB,MAAM,GAAE,OAAO;aAWjC;IAED;;OAEG;IACH,2BAaC;CACF;qBA1CoB,uBAAuB"}
|