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

View File

@@ -510,11 +510,7 @@ ol.renderer.webgl.TileLayer.prototype.render = function() {
(framebufferExtent.maxY - framebufferExtent.minY),
0);
if (goog.isDef(mapRotation)) {
goog.vec.Mat4.rotate(this.matrix_,
mapRotation,
0,
0,
1);
goog.vec.Mat4.rotateZ(this.matrix_, mapRotation);
}
goog.vec.Mat4.scale(this.matrix_,
(mapExtent.maxX - mapExtent.minX) /