Simplify following renderer changes
This commit is contained in:
committed by
Andreas Hocevar
parent
190cd202a1
commit
3d8495742b
@@ -725,11 +725,7 @@ class Graticule extends VectorLayer {
|
|||||||
extent[0] = projectionExtent[0];
|
extent[0] = projectionExtent[0];
|
||||||
extent[2] = projectionExtent[2];
|
extent[2] = projectionExtent[2];
|
||||||
} else {
|
} else {
|
||||||
const worldsAway = Math.floor((center[0] - projectionExtent[0]) / worldWidth);
|
wrapX = true;
|
||||||
center[0] -= (worldsAway * worldWidth);
|
|
||||||
extent[0] -= (worldsAway * worldWidth);
|
|
||||||
extent[2] -= (worldsAway * worldWidth);
|
|
||||||
wrapX = !containsExtent(projectionExtent, extent);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user