3d-tiles-renderer
Version:
https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification
17 lines (10 loc) • 304 B
JavaScript
import { XYZImageSource } from './XYZImageSource.js';
export class WMTSImageSource extends XYZImageSource {
init( url ) {
url = url
.replace( /{\s*TileMatrix\s*}/gi, '{z}' )
.replace( /{\s*TileRow\s*}/gi, '{y}' )
.replace( /{\s*TileCol\s*}/gi, '{x}' );
return super.init( url );
}
}