Переглянути джерело

Merge pull request #238 from justinmanley/preprocess-root-url

Preprocess URL for tileset root
Garrett Johnson 3 роки тому
батько
коміт
09714424a0
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 ) ) {
 
 			const pr = this
-				.fetchTileSet( url, this.fetchOptions )
+				.fetchTileSet( this.preprocessURL ? this.preprocessURL( url ) : url, this.fetchOptions )
 				.then( json => {
 
 					tileSets[ url ] = json;