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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user