Alternative reprojection triangulation strategy

The quads are now subdivided more granually (to 2 instead of 4), which
usually leads to reduced number of triangles and higher performance.
This commit is contained in:
Petr Sloup
2015-08-26 18:37:18 +02:00
parent 016df5b902
commit 726bcbef83
2 changed files with 24 additions and 21 deletions

View File

@@ -189,9 +189,9 @@ ol.RASTER_REPROJ_MAX_SOURCE_TILES = 100;
* @define {number} Maximum number of subdivision steps during raster
* reprojection triangulation. Prevents high memory usage and large
* number of proj4 calls when for certain transformations and areas.
* At most `2*(4^this)` triangles are created. Default is `5`.
* At most `2*(2^this)` triangles are created. Default is `10`.
*/
ol.RASTER_REPROJ_MAX_SUBDIVISION = 5;
ol.RASTER_REPROJ_MAX_SUBDIVISION = 10;
/**