mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-20 09:41:45 +03:00
Throw an error when trying to add a layer in collection mode.
This commit is contained in:
parent
cd62ba7eca
commit
facccf7b45
@ -1011,6 +1011,9 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
if ( !tileSource ) {
|
if ( !tileSource ) {
|
||||||
throw new Error( "No tile source provided as new layer." );
|
throw new Error( "No tile source provided as new layer." );
|
||||||
}
|
}
|
||||||
|
if ( this.collectionMode ) {
|
||||||
|
throw new Error( "Layers not supported in collection mode." );
|
||||||
|
}
|
||||||
|
|
||||||
function raiseAddLayerFailed( event ) {
|
function raiseAddLayerFailed( event ) {
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user