Hi ashlin, I had to deal with a very similar problem. My workaround was to use only one vector layer containing all typeNames in it. OpenLayers didn't fully support this so I had to do some dirty hacks to make it work.
I see in Trac that there's currently some work being done to resolve this. I suggest you follow theses tickets, I'll do the same with a lot of interest : http://trac.openlayers.org/ticket/1838 http://trac.openlayers.org/ticket/1839 Best regards, Alexandre ashlin wrote: > Hi, > > I would like to know if it is possible to implement select feature in > multiple layers. Is there any way to achieve that? > > Currently, I have about 5 layers of different types of objects. I would like > all objects in these 5 layers to be selectable. I noticed that > OpenLayers.Control.SelectFeature only allow the control to be associated > with a specific layer. If i wanted all objects to be selected in the 5 > layers, i would need 5 select controls. > > However, I realised that only 1 control can be activated at a time. Is it > true? I could not get all my 5 select controls to be activated and working > at 1 time. Only my top most layer vector objects get selected. The objects > in other layers are not selectable. If i toggle off my top most layer in the > layer switcher, the select control of my 2nd top most layer will then be > activated and allow objects to be selected. > > Is this how the select feature works? Really needed something that can allow > selection in different layers. Hope someone can help on this. Thanks. > > Regards, > Ashlin > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
