From 95c7668f6832030cbfa47f68fda30660eb05f49b Mon Sep 17 00:00:00 2001 From: Antoine Vandecreme Date: Wed, 5 Feb 2014 15:52:31 -0500 Subject: [PATCH] Pass degrees from the viewer to the viewport. Fix #305 --- src/viewer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 2139678e..e7fc0a1f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1416,7 +1416,8 @@ function openTileSource( viewer, source ) { showNavigator: false, minZoomImageRatio: 1, maxZoomPixelRatio: 1, - viewer: _this //, + viewer: _this, + degrees: _this.degrees //, //TODO: figure out how to support these in a way that makes sense //minZoomLevel: this.minZoomLevel, //maxZoomLevel: this.maxZoomLevel @@ -1438,7 +1439,8 @@ function openTileSource( viewer, source ) { defaultZoomLevel: _this.defaultZoomLevel, minZoomLevel: _this.minZoomLevel, maxZoomLevel: _this.maxZoomLevel, - viewer: _this + viewer: _this, + degrees: _this.degrees }); }