From 7e418ccee3e4f21d893a8b5c3c16eb7ebba033c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=87=AF?= Date: Wed, 14 Sep 2022 15:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=AD=E6=9C=89=20#=20=E6=88=96=E7=A9=BA=E6=A0=BC?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=A2=AB=E6=B5=8F=E8=A7=88=E5=99=A8=E6=88=AA?= =?UTF-8?q?=E6=96=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/combineTileset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/combineTileset.js b/lib/combineTileset.js index f879f5d..446eef2 100644 --- a/lib/combineTileset.js +++ b/lib/combineTileset.js @@ -45,7 +45,7 @@ function combineTileset(options) { if (defined(boundingVolume) && defined(geometricError)) { // Use external tileset instand of b3dm. var url = path.relative(outputDir, jsonFile); - url = url.replace(/\\/g, '/'); + url = url.replace(/\\/g, '/').replace(/#/gi, '%23').replace(/ /gi, '%20'); // Only support region for now. if(boundingVolume.region) {