<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Sorry Andreas,<BR>
&nbsp;<BR>
I will explain better,<BR>
&nbsp;<BR>
What I want&nbsp;is when&nbsp;some user select one feature of the two top layers&nbsp;the application displays&nbsp;a popup with information extracted from a php script. This,&nbsp;works fine when I do this:<BR>
&nbsp;<BR>
selectControl = new OpenLayers.Control.SelectFeature(layer1, {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>
&nbsp;<BR>
But it doesn't call my onFeatureSelect method when I call like an array parameter, in fact, now I prove only one&nbsp;and the same layer and it doesn't works:<BR>
&nbsp;<BR>
selectControl = new OpenLayers.Control.SelectFeature([layer1], {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>
&nbsp;<BR>
All of this happend when I'm using Firefox browser.<BR>
&nbsp;<BR>
Thanks another time,<BR>
Jordi.<BR>&nbsp;<BR>&gt; Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>&gt; From: ahocevar@opengeo.org<BR>&gt; Date: Tue, 13 Apr 2010 14:30:29 +0200<BR>&gt; CC: users@openlayers.org<BR>&gt; To: jordi_romagos@hotmail.com<BR>&gt; <BR>&gt; On Apr 13, 2010, at 12:58 , Jordi Romagos i Figueras wrote: <BR>&gt; &gt; I tried what you said Andreas, and doesn't work for me (I'm using OL 2.8)<BR>&gt; <BR>&gt; What exactly "does not work"?<BR>&gt; <BR>&gt; &gt; I changed:<BR>&gt; &gt; <BR>&gt; &gt; selectControl = new OpenLayers.Control.SelectFeature(layer1, {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>&gt; &gt; for:<BR>&gt; &gt; selectControl = new OpenLayers.Control.SelectFeature([layer1,layer2], {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>&gt; &gt; <BR>&gt; &gt; I have to do something else?<BR>&gt; <BR>&gt; No, that should be all.<BR>&gt; <BR>&gt; Regards,<BR>&gt; Andreas.<BR>&gt; <BR>&gt; &gt; <BR>&gt; &gt; Thanks.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; &gt; Date: Mon, 12 Apr 2010 20:52:50 +0200<BR>&gt; &gt; &gt; From: ahocevar@opengeo.org<BR>&gt; &gt; &gt; To: users@openlayers.org<BR>&gt; &gt; &gt; Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; On 2010-04-12 20:30 , chandanpansare wrote:<BR>&gt; &gt; &gt; &gt; I have multiple vector layers added in map and for each layer I have<BR>&gt; &gt; &gt; &gt; SelectFeature control.<BR>&gt; &gt; &gt; &gt; In IE, Chrome and Safari I'm able to select features of all the layers but<BR>&gt; &gt; &gt; &gt; in case of FireFox only features from the last layer added are accessible.<BR>&gt; &gt; &gt; &gt; would like to if there any work around / solution for this or is it a known<BR>&gt; &gt; &gt; &gt; issue?<BR>&gt; &gt; &gt; &gt; Any help will be greatly appreciated.<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; You only need one SelectFeature control for all your layers. Configure <BR>&gt; &gt; &gt; it with an array of your layers, instead of just one layer.<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; Regards,<BR>&gt; &gt; &gt; Andreas.<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; -- <BR>&gt; &gt; &gt; Andreas Hocevar<BR>&gt; &gt; &gt; OpenGeo - http://opengeo.org/<BR>&gt; &gt; &gt; Expert service straight from the developers.<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; &gt; Users mailing list<BR>&gt; &gt; &gt; Users@openlayers.org<BR>&gt; &gt; &gt; http://openlayers.org/mailman/listinfo/users<BR>&gt; &gt; <BR>&gt; &gt; Tus datos personales, más seguros con Internet Explorer 8. ¡Descárgatelo gratis!_______________________________________________<BR>&gt; &gt; Users mailing list<BR>&gt; &gt; Users@openlayers.org<BR>&gt; &gt; http://openlayers.org/mailman/listinfo/users<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>                                               <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>