Use replay maxExtent center as the coord system origin

This commit is contained in:
Éric Lemoine
2014-11-06 09:24:47 +01:00
parent 8415a0c8ba
commit 9029c0fdad

View File

@@ -34,10 +34,14 @@ ol.render.webgl.ImageReplay = function(tolerance, maxExtent) {
this.anchorY_ = undefined;
/**
* The origin of the coordinate system for the point coordinates sent to
* the GPU. To eliminate jitter caused by precision problems in the GPU
* we use the "Rendering Relative to Eye" technique described in the "3D
* Engine Design for Virtual Globes" book.
* @private
* @type {ol.Coordinate}
*/
this.origin_ = ol.extent.getBottomLeft(maxExtent);
this.origin_ = ol.extent.getCenter(maxExtent);
/**
* @type {ol.Extent}