The selectFeature control has support for passing in a list of vector layers to the constructor, after which any of them will be selectable. This functionality was added in OL 2.8.
-- Chris ----- Original message ----- > I see this came up last year but wondered if there was a move towards a > fix. I have several GML files used > as vector layers for which I have add selectfeature controls, but only > the last one works. I am aware of the > extra that Andre Pereira de Matos has made. Should I just use this or > is > there a proposal to fix this one? > > -- > Phil Scadden, GNS Science Ltd 764 Cumberland St, Private Bag 1930, > Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose > the contents. > > _______________________________________________ > Users mailing list > [email protected]<mailto:[email protected]> > http://openlayers.org/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
