Hi,<div><br></div><div>I have a google maps, and I add a line to the map, but when I drag the map, the line changes its position..</div><div><br></div><div>I draw with this:</div><div><br></div><div><div> var p1 = new OpenLayers.Geometry.Point(0.1, 40);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> var p2 = new OpenLayers.Geometry.Point(0.2, 40);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> var p3 = new OpenLayers.Geometry.Point(0.3, 40);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> var p4 = new OpenLayers.Geometry.Point(0.4, 40);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> var p5 = new OpenLayers.Geometry.Point(0.5, 40);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> var p6 = new OpenLayers.Geometry.Point(0.6, 40);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> var p7 = new OpenLayers.Geometry.Point(0.7, 40);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> var p8 = new OpenLayers.Geometry.Point(0.8, 40);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> var p9 = new OpenLayers.Geometry.Point(0.9, 40);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> var p10 = new OpenLayers.Geometry.Point(0, 41);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> var points = [];</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p1);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p2);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p3);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p4);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p5);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p6);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p7);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p8);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p9);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> points.push(p10);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> // create a line feature from a list of points</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> var lineString = new OpenLayers.Geometry.LineString(points);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> var lineFeature = new OpenLayers.Feature.Vector(lineString, null, style_green);</div>
<div><br></div><div>I see the line like an "arrow head", but when I drag the map, the vertex points another place... Where is the problem??</div><div><br></div><div>Thanks!</div></div>