Redefine ol.Size to be Array.<number>
This commit is contained in:
@@ -191,7 +191,7 @@ ol.renderer.dom.TileLayer.prototype.renderFrame =
|
||||
origin = tileLayerZ.getOrigin();
|
||||
goog.vec.Mat4.makeIdentity(transform);
|
||||
goog.vec.Mat4.translate(
|
||||
transform, frameState.size.width / 2, frameState.size.height / 2, 0);
|
||||
transform, frameState.size[0] / 2, frameState.size[1] / 2, 0);
|
||||
goog.vec.Mat4.rotateZ(transform, view2DState.rotation);
|
||||
goog.vec.Mat4.scale(transform, resolution / view2DState.resolution,
|
||||
resolution / view2DState.resolution, 1);
|
||||
@@ -319,9 +319,9 @@ ol.renderer.dom.TileLayerZ_.prototype.addTile = function(tile) {
|
||||
style.maxWidth = 'none';
|
||||
style.position = 'absolute';
|
||||
style.left =
|
||||
((tileCoord.x - this.tileCoordOrigin_.x) * tileSize.width) + 'px';
|
||||
((tileCoord.x - this.tileCoordOrigin_.x) * tileSize[0]) + 'px';
|
||||
style.top =
|
||||
((this.tileCoordOrigin_.y - tileCoord.y) * tileSize.height) + 'px';
|
||||
((this.tileCoordOrigin_.y - tileCoord.y) * tileSize[1]) + 'px';
|
||||
if (goog.isNull(this.documentFragment_)) {
|
||||
this.documentFragment_ = document.createDocumentFragment();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user