handle wrapX without calculating excess meridians

override extent validation only if the extent includes parts of two worlds
This commit is contained in:
mike-000
2020-03-18 13:28:21 +00:00
committed by Andreas Hocevar
parent 516a75ae22
commit f6ede1a9c0

View File

@@ -729,7 +729,7 @@ class Graticule extends VectorLayer {
center[0] -= (worldsAway * worldWidth);
extent[0] -= (worldsAway * worldWidth);
extent[2] -= (worldsAway * worldWidth);
wrapX = true;
wrapX = !containsExtent(projectionExtent, extent);
}
}