File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
66import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js' ;
77import { GLTFExtensionsPlugin } from '3d-tiles-renderer/plugins' ;
88
9- const url = new URLSearchParams ( location . search ) . get ( 'url' ) || '../data/tileset.json' ;
9+ const url = new URLSearchParams ( location . search ) . get ( 'url' ) || '../../ data/tileset.json' ;
1010const threeContainer = document . getElementById ( 'three-container' ) ;
1111const cesiumContainer = document . getElementById ( 'cesium-container' ) ;
1212const threeStats = threeContainer . getElementsByClassName ( 'stats' ) [ 0 ] ;
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ function initTiles() {
203203
204204 }
205205
206- const url = window . location . hash . replace ( / ^ # / , '' ) || '../data/tileset.json' ;
206+ const url = window . location . hash . replace ( / ^ # / , '' ) || '../../ data/tileset.json' ;
207207 tiles = new TilesRenderer ( url ) ;
208208 tiles . errorTarget = 2 ;
209209 tiles . addEventListener ( 'load-model' , onLoadModel ) ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ animate();
7878
7979function reinstantiateTiles ( ) {
8080
81- const url = hashUrl || '../data/tileset.json' ;
81+ const url = hashUrl || '../../ data/tileset.json' ;
8282
8383 if ( tiles ) {
8484
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ function init() {
116116 scene . add ( offsetParent ) ;
117117
118118 // tiles
119- const url = window . location . hash . replace ( / ^ # / , '' ) || '../data/tileset.json' ;
119+ const url = window . location . hash . replace ( / ^ # / , '' ) || '../../ data/tileset.json' ;
120120 tiles = new TilesRenderer ( url ) ;
121121 tiles . addEventListener ( 'load-model' , onLoadModel ) ;
122122 tiles . addEventListener ( 'dispose-model' , onDisposeModel ) ;
You can’t perform that action at this time.
0 commit comments