Use goog.vec.Mat4.rotateZ

This commit is contained in:
Tom Payne
2012-09-27 18:21:33 +02:00
parent 8dc57d5148
commit e3c3c13ac2
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -356,11 +356,7 @@ ol.renderer.Map.prototype.updateMatrices_ = function() {
-1 / resolution,
1);
if (this.canRotate() && goog.isDef(rotation)) {
goog.vec.Mat4.rotate(this.coordinateToPixelMatrix_,
-rotation,
0,
0,
1);
goog.vec.Mat4.rotateZ(this.coordinateToPixelMatrix_, -rotation);
}
goog.vec.Mat4.translate(this.coordinateToPixelMatrix_,
-center.x,