[OpenLayers-Users] Set Bbox of WMS request

Ian Turton ijturton at gmail.com
Fri Jul 16 10:51:09 EDT 2010


On Fri, Jul 16, 2010 at 10:46 AM, Piero Campa <piero.campa at gmail.com> wrote:
>
> Shall I create manually the HTTP request with OpenLayers.Ajax.Request?
>
> It is anyway weird that in the params section of the OpenLayers.Layer.WMS
> object you can set LAYER, FORMAT, TRANSPARENT, etc. of the HTTP request, but
> not BBOX, SRS, WIDTH, HEIGHT.

All of those parameters should come from your map - if you hard code
them into your request they won't change when you zoom in or pan the
map.

Ian
-- 
Ian Turton



More information about the Users mailing list