Merge pull request #336 from avandecreme/minorbugs

Pass degrees from the viewer to the viewport. Fix #305
This commit is contained in:
iangilman 2014-02-17 09:39:24 -08:00
commit 2ca3e52109

View File

@ -1416,7 +1416,8 @@ function openTileSource( viewer, source ) {
showNavigator: false, showNavigator: false,
minZoomImageRatio: 1, minZoomImageRatio: 1,
maxZoomPixelRatio: 1, maxZoomPixelRatio: 1,
viewer: _this //, viewer: _this,
degrees: _this.degrees //,
//TODO: figure out how to support these in a way that makes sense //TODO: figure out how to support these in a way that makes sense
//minZoomLevel: this.minZoomLevel, //minZoomLevel: this.minZoomLevel,
//maxZoomLevel: this.maxZoomLevel //maxZoomLevel: this.maxZoomLevel
@ -1438,7 +1439,8 @@ function openTileSource( viewer, source ) {
defaultZoomLevel: _this.defaultZoomLevel, defaultZoomLevel: _this.defaultZoomLevel,
minZoomLevel: _this.minZoomLevel, minZoomLevel: _this.minZoomLevel,
maxZoomLevel: _this.maxZoomLevel, maxZoomLevel: _this.maxZoomLevel,
viewer: _this viewer: _this,
degrees: _this.degrees
}); });
} }