Skip to content

Commit 227266d

Browse files
committed
chore: limit Cesium building tile cache
1 parent d0c6c21 commit 227266d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/mapviewer/src/modules/map/components/cesium/CesiumVectorLayer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ useAddPrimitiveLayer(
3636
Cesium3DTileset.fromUrl(url.value, {
3737
// with default value 16 we do not load a lot of building tiles (leading to gaps)
3838
maximumScreenSpaceError: layerId.value === CESIUM_BUILDING_LAYER_ID ? 10 : 16,
39+
cacheBytes: layerId.value === CESIUM_BUILDING_LAYER_ID ? 256 * 1024 ** 2 : undefined,
40+
maximumCacheOverflowBytes:
41+
layerId.value === CESIUM_BUILDING_LAYER_ID ? 128 * 1024 ** 2 : undefined,
3942
}),
4043
opacity
4144
)

0 commit comments

Comments
 (0)