Round transformation values to six decimal places

This commit is contained in:
Tom Payne
2013-01-09 11:31:18 +01:00
parent 8a4125281d
commit 9194a4b4eb

View File

@@ -382,7 +382,7 @@ ol.renderer.dom.TileLayerZ_.prototype.removeTilesOutsideExtent =
*/
ol.renderer.dom.TileLayerZ_.prototype.setTransform = function(transform) {
if (!goog.vec.Mat4.equals(transform, this.transform_)) {
ol.dom.transformElement2D(this.target, transform);
ol.dom.transformElement2D(this.target, transform, 6);
goog.vec.Mat4.setFromArray(this.transform_, transform);
}
};