[OpenLayers-Users] New control problem

Walter Lorenzetti lorenzetti at faunalia.it
Mon Dec 17 11:24:11 EST 2007


Walter Lorenzetti ha scritto:
> Hi list,
>
> I've a problem with OpenLayers.Control.SelectFeature
>
> I've 3 gml in a array ( users[] ) and for every layers I add on map
> a new control.SelectFeature for to show a popup
>
> control[i] =  new OpenLayers.Control.SelectFeature(users[i],{onSelect:
> openPopup,selectStyle: style[i]});
>         map.addControl(control[i]);
>         control[i].activate();
>
> but when every layers are visibile only for the last layer activated
> I can obtain the popup on feature select but not for the other 2 layers
>
> Do I some mistake?
>
> thanks in advance
>
> Walter
>
>   
I find the solution:

I've to activate only the layer where I want to select for popup

but How can I render every layers selectable at the same time?

Walter

-- 
Please no  .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti at faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931  Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy




More information about the Users mailing list