mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-20 01:31:45 +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
|
PROJECT: openseadragon
|
||||||
BUILD_MAJOR: 0
|
BUILD_MAJOR: 0
|
||||||
BUILD_MINOR: 9
|
BUILD_MINOR: 9
|
||||||
BUILD_ID: 66
|
BUILD_ID: 67
|
||||||
BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||||
VERSION: ${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 ) ){
|
} else if ( $.isPlainObject( tileSource ) ){
|
||||||
if( $.isFunction( tileSource.getTileUrl ) ){
|
if( $.isFunction( tileSource.getTileUrl ) ){
|
||||||
//Custom tile source
|
//Custom tile source
|
||||||
customTileSource = new $.TileSource(
|
customTileSource = new $.TileSource(tileSource);
|
||||||
tileSource.width,
|
|
||||||
tileSource.height,
|
|
||||||
tileSource.tileSize,
|
|
||||||
tileSource.tileOverlap,
|
|
||||||
tileSource.minLevel,
|
|
||||||
tileSource.maxLevel
|
|
||||||
);
|
|
||||||
customTileSource.getTileUrl = tileSource.getTileUrl;
|
customTileSource.getTileUrl = tileSource.getTileUrl;
|
||||||
_this.open( customTileSource );
|
_this.open( customTileSource );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user