Pass degrees from the viewer to the viewport. Fix #305

This commit is contained in:
Antoine Vandecreme 2014-02-05 15:52:31 -05:00
parent 9ecb69e1d8
commit 95c7668f68

View File

@ -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
});
}