<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Here are two images, one with OL 2.8 and other with OL 2.9 RC2 (I only changed include openlayers script line)<BR>
&nbsp;<BR>
<A href="http://img27.yfrog.com/gal.php?g=withol28.png">http://img27.yfrog.com/gal.php?g=withol28.png</A><BR>
&nbsp;<BR>
&nbsp;<BR>
I'm so sorry Bart, it's impossible to show&nbsp; the code.<BR>
&nbsp;<BR>
I&nbsp; can show how I add positions: I get positions from php file with utm format and then I add in a vector. The code is something like that:<BR>
&nbsp;<BR>
var positions= [];<BR>
&nbsp;<BR>
for (var j=0 ;j&lt;dades_posicions.length;j++){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point( dades_posicions[j][idx_lon],dades_posicions[j][idx_lat]), {velo: dades_posicions[j][idx_vel],rotation:direccio*45,figura:direccio==0?"circle":"triangle"});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; positions.push(position);<BR>}<BR><BR>
layerPositions.addFeatures(positions);<BR>
<BR>&nbsp;<BR>
<HR id=stopSpelling>
Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>From: bartvde@osgis.nl<BR>Date: Wed, 14 Apr 2010 09:56:32 +0200<BR>CC: users@openlayers.org<BR>To: jordi_romagos@hotmail.com<BR><BR><BASE>Hi,
<DIV><BR></DIV>
<DIV>wrt your OL 2.9RC2 remark, dus you have an example page to demonstrate the problem?</DIV>
<DIV><BR></DIV>
<DIV>Best regards,</DIV>
<DIV>Bart</DIV>
<DIV><BR>
<DIV>
<DIV>On Apr 14, 2010, at 9:52 AM, Jordi Romagos i Figueras wrote:</DIV><BR class=ecxApple-interchange-newline>
<BLOCKQUOTE><SPAN style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; WORD-SPACING: 0px" class=ecxApple-style-span>
<DIV style="FONT-FAMILY: Verdana; FONT-SIZE: 10pt" class=ecxhmmessage><BR>Finally I found an&nbsp;explanation!!!<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&nbsp;<BR>The problem was because I&nbsp;put&nbsp;selectfeature control&nbsp;code above&nbsp;to map.addLayers code. If I put the code below map.addLayers it works fine!&nbsp;<BR>About event handlers&nbsp;I also tried before but I had the same problem, in FF in some layers doesn't&nbsp;works mouse&nbsp;events.<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&nbsp;<BR>Another thing, I'm not sure If it's a problem because I not read 2.9 API. I tried the same code using OL 2.9 RC2 and positions doesn't match! I don't know If I have to change anything?<BR>&nbsp;<BR>Another time a lot of thanks!<BR>&nbsp;<BR>&nbsp;<BR>&gt; Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>&gt; From:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</A><BR>&gt; Date: Tue, 13 Apr 2010 16:25:10 +0200<BR>&gt; CC:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:users@openlayers.org">users@openlayers.org</A><BR>&gt; To:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:jordi_romagos@hotmail.com">jordi_romagos@hotmail.com</A><BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; On Apr 13, 2010, at 15:35 , Jordi Romagos i Figueras wrote:<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; Sorry Andreas,<BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; I will explain better,<BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; What I want is when some user select one feature of the two top layers the application displays a popup with information extracted from a php script. This, works fine when I do this:<BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; selectControl = new OpenLayers.Control.SelectFeature(layer1, {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; Note: there is no hover method. hover is a boolean property. Also, you should consider using event handlers instead of callback functions.<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; But it doesn't call my onFeatureSelect method when I call like an array parameter, in fact, now I prove only one and the same layer and it doesn't works:<BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; selectControl = new OpenLayers.Control.SelectFeature([layer1], {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; Are you sure you are using OpenLayers &gt;= 2.8? Multi-layer selection was added in 2.8<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; Regards,<BR>&gt; Andreas.<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; All of this happend when I'm using Firefox browser.<BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; Thanks another time,<BR>&gt; &gt; Jordi.<BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>&gt; &gt; &gt; From:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</A><BR>&gt; &gt; &gt; Date: Tue, 13 Apr 2010 14:30:29 +0200<BR>&gt; &gt; &gt; CC:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:users@openlayers.org">users@openlayers.org</A><BR>&gt; &gt; &gt; To:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:jordi_romagos@hotmail.com">jordi_romagos@hotmail.com</A><BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; On Apr 13, 2010, at 12:58 , Jordi Romagos i Figueras wrote:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; I tried what you said Andreas, and doesn't work for me (I'm using OL 2.8)<BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; What exactly "does not work"?<BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; I changed:<BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; selectControl = new OpenLayers.Control.SelectFeature(layer1, {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>&gt; &gt; &gt; &gt; for:<BR>&gt; &gt; &gt; &gt; selectControl = new OpenLayers.Control.SelectFeature([layer1,layer2], {onSelect: onFeatureSelect,onUnselect:onFeatureUnSelect, hover: onFeatureHover});<BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; I have to do something else?<BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; No, that should be all.<BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; Regards,<BR>&gt; &gt; &gt; Andreas.<BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; Thanks.<BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; Date: Mon, 12 Apr 2010 20:52:50 +0200<BR>&gt; &gt; &gt; &gt; &gt; From:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</A><BR>&gt; &gt; &gt; &gt; &gt; To:<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:users@openlayers.org">users@openlayers.org</A><BR>&gt; &gt; &gt; &gt; &gt; Subject: Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)<BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; On 2010-04-12 20:30 , chandanpansare wrote:<BR>&gt; &gt; &gt; &gt; &gt; &gt; I have multiple vector layers added in map and for each layer I have<BR>&gt; &gt; &gt; &gt; &gt; &gt; SelectFeature control.<BR>&gt; &gt; &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; &gt; &gt; in case of FireFox only features from the last layer added are accessible.<BR>&gt; &gt; &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; &gt; &gt; issue?<BR>&gt; &gt; &gt; &gt; &gt; &gt; Any help will be greatly appreciated.<BR>&gt; &gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; You only need one SelectFeature control for all your layers. Configure<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; it with an array of your layers, instead of just one layer.<BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; Regards,<BR>&gt; &gt; &gt; &gt; &gt; Andreas.<BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; --<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; Andreas Hocevar<BR>&gt; &gt; &gt; &gt; &gt; OpenGeo -<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://opengeo.org/">http://opengeo.org/</A><BR>&gt; &gt; &gt; &gt; &gt; Expert service straight from the developers.<BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; &gt; &gt; &gt; Users mailing list<BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:Users@openlayers.org">Users@openlayers.org</A><BR>&gt; &gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; &gt; Tus datos personales, más seguros con Internet Explorer 8. ¡Descárgatelo gratis!_______________________________________________<BR>&gt; &gt; &gt; &gt; Users mailing list<BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:Users@openlayers.org">Users@openlayers.org</A><BR>&gt; &gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; --<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt; &gt; Andreas Hocevar<BR>&gt; &gt; &gt; OpenGeo -<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://opengeo.org/">http://opengeo.org/</A><BR>&gt; &gt; &gt; Expert service straight from the developers.<BR>&gt; &gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><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;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="mailto:Users@openlayers.org">Users@openlayers.org</A><BR>&gt; &gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; --<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR>&gt; Andreas Hocevar<BR>&gt; OpenGeo -<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://opengeo.org/">http://opengeo.org/</A><BR>&gt; Expert service straight from the developers.<BR>&gt;<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><BR><BR>
<HR>
Tus datos personales, más seguros con Internet Explorer 8.<SPAN class=ecxApple-converted-space>&nbsp;</SPAN><A href="http://www.microsoft.com/spain/windows/internet-explorer/default.aspx">¡Descárgatelo gratis!</A><SPAN class=ecxApple-converted-space>&nbsp;</SPAN>_______________________________________________<BR>Users mailing list<BR><A href="mailto:Users@openlayers.org">Users@openlayers.org</A><BR><A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR></DIV></SPAN></BLOCKQUOTE></DIV><BR></DIV>                                               <br /><hr />"        ¿Sabes cómo tener tus amigos de Facebook en Messenger?" <a href='http://profile.live.com/connect' target='_new'> Entra aquí</a></body>
</html>