<html><head><base href="x-msg://97/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Could this be an issue with the SVG Renderer somehow in 2.9 versus 2.8? See the thread below. Other thoughts?<div><br></div><div>Check the strange position of the point features inside of the marked red rectangles.</div><div><br></div><div>Best regards,</div><div>Bart<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Jordi Romagos i Figueras &lt;<a href="mailto:jordi_romagos@hotmail.com">jordi_romagos@hotmail.com</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">April 14, 2010 10:41:37 AM GMT+02:00<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">&lt;<a href="mailto:users@openlayers.org">users@openlayers.org</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [OpenLayers-Users] Multiple Vector Layers (FireFox issue)</b><br></span></div><br><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">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:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a><br>Date: Wed, 14 Apr 2010 09:56:32 +0200<br>CC:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:users@openlayers.org">users@openlayers.org</a><br>To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:jordi_romagos@hotmail.com">jordi_romagos@hotmail.com</a><br><br>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 class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal medium/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><div class="ecxhmmessage" style="font-family: Verdana; font-size: 10pt; "><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?"<span class="Apple-converted-space">&nbsp;</span><a href="http://profile.live.com/connect" target="_new">Entra aquí</a><span class="Apple-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></body></html>