mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
custom tile source should pass whole object to constructor to allow idiomatic pattern of extension of tile source with arbitrary properties
This commit is contained in:
parent
ddedd35db9
commit
1d1cbc6f56
@ -6,7 +6,7 @@
|
||||
PROJECT: openseadragon
|
||||
BUILD_MAJOR: 0
|
||||
BUILD_MINOR: 9
|
||||
BUILD_ID: 66
|
||||
BUILD_ID: 67
|
||||
BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
|
||||
|
@ -305,14 +305,7 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
|
||||
} else if ( $.isPlainObject( tileSource ) ){
|
||||
if( $.isFunction( tileSource.getTileUrl ) ){
|
||||
//Custom tile source
|
||||
customTileSource = new $.TileSource(
|
||||
tileSource.width,
|
||||
tileSource.height,
|
||||
tileSource.tileSize,
|
||||
tileSource.tileOverlap,
|
||||
tileSource.minLevel,
|
||||
tileSource.maxLevel
|
||||
);
|
||||
customTileSource = new $.TileSource(tileSource);
|
||||
customTileSource.getTileUrl = tileSource.getTileUrl;
|
||||
_this.open( customTileSource );
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user