浏览代码

Preprocess URL for tileset root.

Justin Manley 4 年之前
父节点
当前提交
bb16287f5f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/base/TilesRendererBase.js

+ 1 - 1
src/base/TilesRendererBase.js

@@ -337,7 +337,7 @@ export class TilesRendererBase {
 		if ( ! ( url in tileSets ) ) {
 		if ( ! ( url in tileSets ) ) {
 
 
 			const pr = this
 			const pr = this
-				.fetchTileSet( url, this.fetchOptions )
+				.fetchTileSet( this.preprocessURL ? this.preprocessURL( url ) : url, this.fetchOptions )
 				.then( json => {
 				.then( json => {
 
 
 					tileSets[ url ] = json;
 					tileSets[ url ] = json;