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:
Sameh Khamis committed 2026-11-11 20:06:05 -08:00
1 parent 7f500a551c
commit 143f4df049
2 files changed
+41 -2

No files matched your search

+3 -2
View File
@@ -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,