<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>
I tried what you said Andreas, and doesn't work&nbsp;for me (I'm using OL 2.8)<BR>
&nbsp;<BR>
I changed:<BR>
&nbsp;<BR>
&nbsp; selectControl = new OpenLayers.Control.SelectFeature(layer1, {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>
for:<BR>
&nbsp; selectControl = new OpenLayers.Control.SelectFeature([layer1,layer2], {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>
&nbsp;<BR>
I have to do something else?<BR>
&nbsp;<BR>
Thanks.<BR>
&nbsp;<BR>
&nbsp;<BR>&gt; Date: Mon, 12 Apr 2010 20:52:50 +0200<BR>&gt; From: ahocevar@opengeo.org<BR>&gt; To: users@openlayers.org<BR>&gt; Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>&gt; <BR>&gt; On 2010-04-12 20:30 , chandanpansare wrote:<BR>&gt; &gt; I have multiple vector layers added in map and for each layer I have<BR>&gt; &gt; SelectFeature control.<BR>&gt; &gt; In IE, Chrome and Safari I'm able to select features of all the layers but<BR>&gt; &gt; in case of FireFox only features from the last layer added are accessible.<BR>&gt; &gt; would like to if there any work around / solution for this or is it a known<BR>&gt; &gt; issue?<BR>&gt; &gt; Any help will be greatly appreciated.<BR>&gt; &gt; <BR>&gt; <BR>&gt; You only need one SelectFeature control for all your layers. Configure <BR>&gt; it with an array of your layers, instead of just one layer.<BR>&gt; <BR>&gt; Regards,<BR>&gt; Andreas.<BR>&gt; <BR>&gt; -- <BR>&gt; Andreas Hocevar<BR>&gt; OpenGeo - http://opengeo.org/<BR>&gt; Expert service straight from the developers.<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Users mailing list<BR>&gt; Users@openlayers.org<BR>&gt; http://openlayers.org/mailman/listinfo/users<BR>                                               <br /><hr />Tus datos personales, más seguros con Internet Explorer 8. <a href='http://www.microsoft.com/spain/windows/internet-explorer/default.aspx' target='_new'>¡Descárgatelo gratis!</a></body>
</html>