[OpenLayers-Users] Problem with WFS layer on map.setCenter()

Nils Weinander nils.weinander at curalia.se
Fri Apr 24 07:51:19 EDT 2009


Nils Weinander wrote:
> Hi all
> 
> I have a WFS layer, with a BBOX strategy, created like:
...
> map.setCenter(new OpenLayers.LonLat(x, y), 5, true, true);
> 
> I get an error in Bounds.intersectsBounds because the WFS layer's
> renderer has extent==null.

Never mind,

map.setCenter(new OpenLayers.LonLat(x, y), 5, false, false);

solved the problem. Sorry about wasting bandwidth and reader
time :-/

-- 
Nils Weinander  |  Systems Designer
Phone +46 (0)8 4100 6456
Mobile +46 (0)709 78 28 37
--
Mogul | f.d. Curalia AB  |  www.mogul.com
Hudiksvallsgatan 4, 113 30 Stockholm, Sweden
--



More information about the Users mailing list