[OpenLayers-Commits] r11708 - trunk/openlayers/lib/OpenLayers

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Mar 16 06:14:30 EDT 2011


Author: crschmidt
Date: 2011-03-16 03:14:27 -0700 (Wed, 16 Mar 2011)
New Revision: 11708

Modified:
   trunk/openlayers/lib/OpenLayers/Layer.js
Log:
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)


Modified: trunk/openlayers/lib/OpenLayers/Layer.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer.js	2011-03-16 09:41:37 UTC (rev 11707)
+++ trunk/openlayers/lib/OpenLayers/Layer.js	2011-03-16 10:14:27 UTC (rev 11708)
@@ -1322,7 +1322,8 @@
         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);
                               



More information about the Commits mailing list