Hello All.<br><br>@Andreas : yes for the moment this is exactly what i use (same WFS server, enumerated feature list), but this breaks the functionnality i want to have "if i deactivate a layer on my map, the grid should be updated accordingly." I don't want to add extra layer switching menu, the user should use the standard OpenLayers/French Geoportail layer switcher.<br>
<br>@Matt : thank you for the plumbing tip. From my point of view, the design would me more at the Vector level : could not it be possible to write a Vector implementation that is a Composite (like the design pattern) of several Vector instances ?<br>
<br><div class="gmail_quote">2010/5/18 Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
if your WFS supports multiple feature types per request, you should also be able to configure your OpenLayers vector layer with a comma separated list of feature types. The requirement, of course, is that all WFS layers are on the same server and have the same namespace.<br>
<br>
Regards,<br>
Andreas.<br>
<div><div></div><div><br>
On May 18, 2010, at 14:36 , Matt Priour wrote:<br>
<br>
> You need to use a feature store for your grid that contains all of the features you want to use.<br>
> To do this you will need to add a 'featuresadded' & 'featuresremoved' event listeners to your WFS layers that append or remove the features from the feature store.<br>
> A feature store typically syncrhonizes with a single layer, which is what is happening in your current Grid, however to synchronize with multiple layers, you will have to provide a bit of the plumbing yourself.<br>
> Matt Priour<br>
> Kestrel Computer Consulting<br>
><br>
> From: Florent Coste<br>
> Sent: Tuesday, May 18, 2010 4:43 AM<br>
> To: <a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
> Subject: [Users] How to feed a Grid from several WFS Layers<br>
><br>
> Hello<br>
><br>
> I'm able to synchronize a Grid with a WFS layer linked to a Map, but how to do with several WFS layers ?<br>
> I want to have the possibility to deactiviate/activate each layer one by one<br>
><br>
> All the WFS layers have the same properties so they can all be displayed correctly in the grid.<br>
> I have searched in the API without success<br>
><br>
> Regards,<br>
> Florent<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</font></blockquote></div><br>