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
+2 -2
View File
@@ -93,9 +93,9 @@ ol.reproj.Tile = function(sourceProj, sourceTileGrid,
//return;
}
var transformInv = ol.proj.getTransform(targetProj, sourceProj);
this.triangles_ = ol.reproj.triangulation.createForExtent(
targetExtent, transformInv, maxTargetExtent, maxSourceExtent);
targetExtent, sourceProj, targetProj,
maxTargetExtent, maxSourceExtent);
var targetCenter = ol.extent.getCenter(targetExtent);
var targetResolution = targetTileGrid.getResolution(z);