[OpenLayers-Users] rootContainer and selectFeature on many layers

Simone Gadenz simone.gadenz at jrc.it
Tue May 19 10:38:38 EDT 2009


Hello! After one message on the list couple of days ago I tried to use the
root container to enable the selectfeature on a set of defined GML layers.
Has anybody managed to use the rootContainer that is into the trunk?

Currently I defined the selectfeature using the following code:

var ctrl_rootlayer = new
OpenLayers.Control.SelectFeature([a,b,c],function());
map.addControl(ctrl_rootlayer);
ctrl_rootlayer.activate();

The root layer is empty in the produced container (according to firebug).

Cheers

Simone




More information about the Users mailing list