Viewer.open now honors sequence mode

This commit is contained in:
Ian Gilman 2014-11-17 12:57:49 -08:00
parent f018059b60
commit 336482cd1c
2 changed files with 12 additions and 1 deletions

View File

@ -581,6 +581,17 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
return;
}
if (this.sequenceMode && $.isArray(tileSources)) {
this.tileSources = tileSources;
this._sequenceIndex = 0;
if (tileSources.length) {
this.open(tileSources[0]);
}
this._updateSequenceButtons( this._sequenceIndex );
return;
}
if (!$.isArray(tileSources)) {
tileSources = [tileSources];
}

View File

@ -104,7 +104,7 @@
});
}
// this.crossTest3();
// this.crossTest2();
// this.collectionTest();
},