P.S. Can this be related to the new version 2.9?<div><br></div><div>Thanks!!<br><br><div class="gmail_quote">2010/4/29 JuKiM <span dir="ltr"><<a href="mailto:rifins@gmail.com">rifins@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I have a baselayer of google maps, and some markers displayed on it.</div><div>Then there is an option to draw a line between all the markers, and then there is another option, of drawing arrows indicating the direction..</div>
<div>My problem is that when I draw the line with the arrows, when I zoom in/out, the arrows don't stay at place.. </div><div>If I zoom out one time, and then I zoom in, the arrows are again in the same place..</div>
<div>
If I zoom out one time, move the map, and zoom in, the arrows are displaced respect the markers..</div><div>This is happening in firefox, in IE7 the arrows mantains correctly</div><div><br></div><div>I add the layer of the markers like this:</div>
<div><br></div><div><div>function ResetLyrArrow() {</div><div> if (lyrArrowLine) {</div><div> lyrArrowLine.destroy();</div><div> }</div><div><br></div><div> lyrArrowLine = new OpenLayers.Layer.Vector('', {</div>
<div> styleMap: new OpenLayers.StyleMap({</div><div> "default": {</div><div> "externalGraphic": "images/arrow.png",</div><div> "graphicWidth": 11,</div>
<div> "graphicHeight": 11,</div><div> "graphicYOffset": -5,</div><div> "graphicXOffset": 0,</div><div> "rotation": "${angle}"</div>
<div> }</div><div> })</div><div> });</div><div> lyrArrowLine.displayInLayerSwitcher = false;</div><div> if (map) {</div><div> map.addLayers([lyrArrowLine]);</div><div> }</div><div>}</div>
<div><br></div><div>Maybe, the layer has to be created with sphericalmercator?</div><div><br></div><div>Thanks a lot!</div></div>
</blockquote></div><br></div>