Add devicePixelRatio to ol.FrameState

This commit is contained in:
Frederic Junod
2013-12-12 14:21:43 +01:00
committed by Tom Payne
parent 01a246ca72
commit bd1107f785
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ goog.require('ol.layer.LayerState');
* @typedef {{animate: boolean,
* attributions: Object.<string, ol.Attribution>,
* coordinateToPixelMatrix: goog.vec.Mat4.Number,
* devicePixelRatio: number,
* extent: (null|ol.Extent),
* focus: ol.Coordinate,
* index: number,

View File

@@ -1076,6 +1076,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
animate: false,
attributions: {},
coordinateToPixelMatrix: this.coordinateToPixelMatrix_,
devicePixelRatio: this.devicePixelRatio_,
extent: null,
focus: goog.isNull(this.focus_) ? view2DState.center : this.focus_,
index: this.frameIndex_++,