[OpenLayers-Users] Set Bbox of WMS request

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Fri Jul 16 11:04:18 EDT 2010


If you want the BBOX to be exactly the visible part, use ratio 1 and
buffer 0 in the layer options.

So:

var layer = new OpenLayers.Layer.WMS(null, url, {layers: 'foo'},
{singleTile:true, buffer:0, ratio:1});

Best regards,
Bart

>
> Ok Ian, right. (Thanks)
> So you mean that you would download also data outside the viewport in
> certain cases?
>
> But, especially if the BBOX is small, this wouldn't be a huge problem.
> Or am I missing something?
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Set-Bbox-of-WMS-request-tp1824068p5302319.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


-- 
Looking for flexible support on OpenLayers or GeoExt? Please check out
http://www.osgis.nl/support.html

Bart van den Eijnden
OSGIS
bartvde at osgis.nl




More information about the Users mailing list