Clamp the triangulation vertices if partially outside source extent

This commit is contained in:
Petr Sloup
2015-06-01 17:48:17 +02:00
parent fcffce46b4
commit ebc3f24671
3 changed files with 29 additions and 12 deletions
+1 -2
View File
@@ -48,7 +48,6 @@ ol.reproj.Image = function(sourceProj, targetProj,
*/
this.canvas_ = this.context_.canvas;
var transformInv = ol.proj.getTransform(targetProj, sourceProj);
var maxTargetExtent = targetProj.getExtent();
var maxSourceExtent = sourceProj.getExtent();
@@ -57,7 +56,7 @@ ol.reproj.Image = function(sourceProj, targetProj,
* @type {!ol.reproj.Triangulation}
*/
this.triangles_ = ol.reproj.triangulation.createForExtent(
targetExtent, transformInv,
targetExtent, sourceProj, targetProj,
maxTargetExtent, maxSourceExtent);
/**