From 336482cd1c2bb18bfadc36aec1dc8a0351b82ed3 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Mon, 17 Nov 2014 12:57:49 -0800 Subject: [PATCH] Viewer.open now honors sequence mode --- src/viewer.js | 11 +++++++++++ test/demo/collections/main.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index fa0afea7..32c7acb5 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -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]; } diff --git a/test/demo/collections/main.js b/test/demo/collections/main.js index cb34e807..915583fd 100644 --- a/test/demo/collections/main.js +++ b/test/demo/collections/main.js @@ -104,7 +104,7 @@ }); } - // this.crossTest3(); + // this.crossTest2(); // this.collectionTest(); },