From ebf37ddca2399b05489f8feaefd022c98b2adcee Mon Sep 17 00:00:00 2001 From: Kevin ETOURNEAU Date: Wed, 2 Oct 2024 11:34:41 +0200 Subject: [PATCH] fix(TiledGeometryLayer): set autoRefreshToken to true --- src/Layer/OGC3DTilesLayer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Layer/OGC3DTilesLayer.js b/src/Layer/OGC3DTilesLayer.js index 3808054883..1a75f9514a 100644 --- a/src/Layer/OGC3DTilesLayer.js +++ b/src/Layer/OGC3DTilesLayer.js @@ -140,10 +140,12 @@ class OGC3DTilesLayer extends GeometryLayer { this.tilesRenderer.registerPlugin(new CesiumIonAuthPlugin({ apiToken: config.source.accessToken, assetId: config.source.assetId, + autoRefreshToken: true, })); } else if (config.source.isOGC3DTilesGoogleSource) { this.tilesRenderer.registerPlugin(new GoogleCloudAuthPlugin({ apiToken: config.source.key, + autoRefreshToken: true, })); } this.tilesRenderer.registerPlugin(new ImplicitTilingPlugin());