[OpenLayers-Trac] Re: [OpenLayers] #2754: WMS tiles not loading
when map region crossing international date line(IDL)
OpenLayers
trac-20090302 at openlayers.org
Tue Dec 21 18:30:33 EST 2010
#2754: WMS tiles not loading when map region crossing international date line(IDL)
----------------------+-----------------------------------------------------
Reporter: Senthil | Owner: euzuro
Type: feature | Status: new
Priority: critical | Milestone: 2.11 Release
Component: Layer | Version: 2.9
Keywords: | State: Review
----------------------+-----------------------------------------------------
Changes (by senthil):
* cc: senthil (added)
* owner: => euzuro
* state: => Review
* component: Tile.WFS => Layer
* priority: minor => critical
Comment:
Finally i got chance to spent time on this issue as earlier workaround did
not work well with GWC & geoserver layergroup.
Root cause of this issue in Openlayers wrapDateLine fix which not
considered tolerance value for both sides.
I modified the Layer.js (line 1292) code segment
if (this.wrapDateLine) {
// wrap around the date line, within the limits of rounding
error
var wrappingOptions = {
'rightTolerance':this.getResolution()
};
bounds = bounds.wrapDateLine(this.maxExtent, wrappingOptions);
}
As below:
if (this.wrapDateLine) {
// wrap around the date line, within the limits of rounding
error
var wrappingOptions = {
'rightTolerance':this.getResolution(),
'leftTolerance':this.getResolution()
};
bounds = bounds.wrapDateLine(this.maxExtent, wrappingOptions);
}
Then it works fine. Pls include this fix to next release as prefer to use
realase version as it helps to get other fixes and new features.
--
Ticket URL: <http://trac.openlayers.org/ticket/2754#comment:11>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list