[OpenLayers-Users] wfs layer

Eric Lemoine eric.c2c at gmail.com
Tue Aug 12 05:19:57 EDT 2008


On Tue, Aug 12, 2008 at 11:12 AM, Walter Lorenzetti <lorenzetti at gis3w.it> wrote:
> Eric Lemoine ha scritto:
>
> When adding a WFS layer to the map a WFS/GetFeature request is sent to
> the WFS server; when the response comes back the layer's features
> array is populated.
>
> Does that answer your question?
>
>
> ok yes I understand...
> I tried to view the features array before WFS layer is add to the map
> after WFS declaration...
>
> So if I understand well
> after a new declaration
>
> var layer = new OpenLayers.Layer.WFS(...
>
> the features array is empty
>
> but after adding to the map
>
> map.addlayer(layer)
>
> features
> array is populated.
>
> It's right?

Yes, assuming that setCenter has already occurred when the layer is added.

--
Eric



More information about the Users mailing list