[OpenLayers-Users] WFS layer data extend ans loading strategies
Eric Lemoine
eric.lemoine at camptocamp.com
Tue May 17 09:42:54 EDT 2011
2011/5/17 Favre, Sebastien <Sebastien.Favre at spotimage.fr>:
> Hello to all,
>
> I'm trying to use function getDataExtent() on a WFS layer object.
> The function works well when the loading strategy of the layer is FIXED.
> When loading strategy is BBOX, function returns NULL.
> Does someone has a solution to know max extent of the layer objects using a BBOX loading strategy ?
Do you call getDataExtent from a loadend listener? If not, you should.
wfs.events.on({'loadend': function() { var extent = wfs.getDataExtent(); }});
Good luck.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list