[OpenLayers-Dev] wrapDateLine overwriting DisplayOutsideMaxExtent
Phil Scadden
p.scadden at gns.cri.nz
Mon Feb 6 19:35:10 EST 2012
And yet further to this... I dont think
return withinMaxExtent || this.layer.displayOutsideMaxExtent ||
this.layer.wrapDateLine;
is actually needed at all. Just leave as
return withinMaxExtent || this.layer.displayOutsideMaxExtent;
The code for
this.bounds.intersectsBounds(maxExtent, {inclusive: false, worldBounds:
worldBounds}))
seems to deal with the wrapDateLine issue adequately.
So in summary, I am just proposing that the lines
if (this.wrapDateLine) {
this.displayOutsideMaxExtent = true;
}
in Layer.js be removed as redundant. This would allow restricting a
layer to maxExtent even it crosses the dateline.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Dev
mailing list