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.

_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to