Explorar o código

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

Preprocess URL for tileset root
Garrett Johnson %!s(int64=3) %!d(string=hai) anos
pai
achega
09714424a0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;