mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Cesium vectorBase: test that removing the layer aborts its paints
Cesium cancels none of an imagery layer's requests itself; the port's layer cancels its requests in flight as it is removed, which is what the provider's cancelled check sees. A test now goes through that path.
This commit is contained in:
1 parent
7f500a551c
commit
143f4df049
2 files changed
+41
-2
No files matched your search
@@ -35,8 +35,9 @@ export function vectorBaseProvider(style) {
|
||||
proxy: undefined,
|
||||
getTileCredits: () => undefined,
|
||||
pickFeatures: () => undefined,
|
||||
// A tile whose request was cancelled (its layer removed) is not
|
||||
// painted once its source tiles arrive.
|
||||
// A tile whose request was cancelled is not painted once its source
|
||||
// tiles arrive. Cesium cancels none of an imagery layer's requests
|
||||
// itself; the port's layer does as it is removed (`imagery.js`).
|
||||
requestImage: (x, y, level, request) =>
|
||||
paintVectorTile(style, level, x, y, {
|
||||
size: VECTOR_TILE_PX,
|
||||
|
||||
Reference in new issue
Block a user