Hello everybody,

I have several vector layers that have similar data structures (in fact they are WFS layers using the same application schemas). I would like to merge these layers into one layer. I want to do this because I want to use a GeoExt.data.FeatureStore to be able to display a table with feature data that are coupled with the features in the map. So I think I want to use only the merged layer in my map.

I am looking for help on the best way to merge my vector layers. Looking at the OpenLayers documentation, I see that I could use the addFeatures function to add features to the merged layer. But when could I call this function if I never draw the layers that will be merged? On the other hand, I see there is a OpenLayers.Layer.Vector.RootContainer. It is something that can be used to combine vector layers but it is "not supposed to be instantiated from user space".

Any help, tips, examples or hints will be greatly appreciated!

Greetings,
Frans


<http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Layer/Vector/RootContainer-js.html#OpenLayers.Layer.Vector.RootContainer.OpenLayers.Layer.Vector.RootContainer>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to