Skip to content

Commit bff7b18

Browse files
Merge pull request #12703 from adamwirth/wmts-tile-threshold-removal
Raise WMTS imagery provider tile count threshold
2 parents 94b081a + 2ebbcc0 commit bff7b18

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
- Removed the argument fallback in `ITwinData.*` functions. Please switch to the new options argument signature [#12778](https://github.com/CesiumGS/cesium/issues/12778)
1010

11+
#### Fixes :wrench:
12+
13+
- Removes the minimum tile threshold of four for WMTS. [#4372](https://github.com/CesiumGS/cesium/issues/4372)
14+
1115
#### Additions :tada:
1216

1317
- Added support for the [EXT_mesh_primitive_restart](https://github.com/KhronosGroup/glTF/pull/2478) glTF extension. [#12764](https://github.com/CesiumGS/cesium/issues/12764)

packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Frozen from "../Core/Frozen.js";
44
import defined from "../Core/defined.js";
55
import DeveloperError from "../Core/DeveloperError.js";
66
import Event from "../Core/Event.js";
7-
import Rectangle from "../Core/Rectangle.js";
87
import Resource from "../Core/Resource.js";
98
import WebMercatorTilingScheme from "../Core/WebMercatorTilingScheme.js";
109
import ImageryProvider from "./ImageryProvider.js";
@@ -208,27 +207,6 @@ function WebMapTileServiceImageryProvider(options) {
208207
});
209208
}
210209

211-
// Check the number of tiles at the minimum level. If it's more than four,
212-
// throw an exception, because starting at the higher minimum
213-
// level will cause too many tiles to be downloaded and rendered.
214-
const swTile = this._tilingScheme.positionToTileXY(
215-
Rectangle.southwest(this._rectangle),
216-
this._minimumLevel,
217-
);
218-
const neTile = this._tilingScheme.positionToTileXY(
219-
Rectangle.northeast(this._rectangle),
220-
this._minimumLevel,
221-
);
222-
const tileCount =
223-
(Math.abs(neTile.x - swTile.x) + 1) * (Math.abs(neTile.y - swTile.y) + 1);
224-
//>>includeStart('debug', pragmas.debug);
225-
if (tileCount > 4) {
226-
throw new DeveloperError(
227-
`The imagery provider's rectangle and minimumLevel indicate that there are ${tileCount} tiles at the minimum level. Imagery providers with more than four tiles at the minimum level are not supported.`,
228-
);
229-
}
230-
//>>includeEnd('debug');
231-
232210
this._errorEvent = new Event();
233211

234212
const credit = options.credit;

0 commit comments

Comments
 (0)