Have you experimented with the displayOutsideMaxExtent property:
http://dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.displayOutsideMaxExtent

I imagine you set the map's maxExtent to Europe's, and then each layer 
gets the maxExtent that suits it, with displayOutsideMaxExtent set to false.

Regards, Kenneth Skovhede, GEOGRAF A/S



Luca Casagrande skrev:
> Hello everybody.
>
> In my project all the data cover a small part of Italy so the maxExtent is
> set to this area; now, if I use a WMS layer with a bigger extent then this
> one (Europe), it get cutted.
> I tried to set the maxExtent of the project to Europe, but then all layers
> load a lot of transparent tiles that I'd like to avoid.
>
> Is there a way to override the maxExtent just for one layer?
>
> Thank you very much for your help.
>
> Luca
>   
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to