From bc28c096a7b2162db5665d0422a380745eecd1e4 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 16 Mar 2011 10:14:27 +0000 Subject: [PATCH] When using wrapDateLine, pass both a rightTolerance and a leftTolerance at the Layer level. This is fix a report from a user: "WMS tiles not loading when map region crossing international date line(IDL)". All tests continue to pass, and the lack of this tolerance here seems clear enough given the surrounding code. Thanks to senthil for the patch, (Closes #2754) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index f662eaafc9..c002f3c9b1 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -1322,7 +1322,8 @@ OpenLayers.Layer = OpenLayers.Class({ if (this.wrapDateLine) { // wrap around the date line, within the limits of rounding error var wrappingOptions = { - 'rightTolerance':this.getResolution() + 'rightTolerance':this.getResolution(), + 'leftTolerance':this.getResolution() }; bounds = bounds.wrapDateLine(this.maxExtent, wrappingOptions);