Add devicePixelRatio to ol.FrameState
This commit is contained in:
committed by
Tom Payne
parent
01a246ca72
commit
bd1107f785
@@ -20,6 +20,7 @@ goog.require('ol.layer.LayerState');
|
|||||||
* @typedef {{animate: boolean,
|
* @typedef {{animate: boolean,
|
||||||
* attributions: Object.<string, ol.Attribution>,
|
* attributions: Object.<string, ol.Attribution>,
|
||||||
* coordinateToPixelMatrix: goog.vec.Mat4.Number,
|
* coordinateToPixelMatrix: goog.vec.Mat4.Number,
|
||||||
|
* devicePixelRatio: number,
|
||||||
* extent: (null|ol.Extent),
|
* extent: (null|ol.Extent),
|
||||||
* focus: ol.Coordinate,
|
* focus: ol.Coordinate,
|
||||||
* index: number,
|
* index: number,
|
||||||
|
|||||||
@@ -1076,6 +1076,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
|||||||
animate: false,
|
animate: false,
|
||||||
attributions: {},
|
attributions: {},
|
||||||
coordinateToPixelMatrix: this.coordinateToPixelMatrix_,
|
coordinateToPixelMatrix: this.coordinateToPixelMatrix_,
|
||||||
|
devicePixelRatio: this.devicePixelRatio_,
|
||||||
extent: null,
|
extent: null,
|
||||||
focus: goog.isNull(this.focus_) ? view2DState.center : this.focus_,
|
focus: goog.isNull(this.focus_) ? view2DState.center : this.focus_,
|
||||||
index: this.frameIndex_++,
|
index: this.frameIndex_++,
|
||||||
|
|||||||
Reference in New Issue
Block a user