And draw a line in a way like:<div>var feature = new OpenLayers.Feature(layer, points);</div><div>feature.createLine();</div><div><br></div><div>Similar at the createMarker?</div><div><br></div><div>Thanks!<br><br><div class="gmail_quote">
2010/1/25 Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Jan 25, 2010 at 05:02:07PM +0100, JuKiM wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have a google maps, and I add a line to the map, but when I drag the map,<br>
&gt; the line changes its position..<br>
<br>
</div><a href="http://faq.openlayers.org/vector-related-questions/why-dont-my-vector-features-work-over-google-yahoo-virtual-earth-etc/" target="_blank">http://faq.openlayers.org/vector-related-questions/why-dont-my-vector-features-work-over-google-yahoo-virtual-earth-etc/</a><br>

<div><div></div><div class="h5"><br>
&gt; I draw with this:<br>
&gt;<br>
&gt;                     var p1 = new OpenLayers.Geometry.Point(0.1, 40);<br>
&gt;             var p2 = new OpenLayers.Geometry.Point(0.2, 40);<br>
&gt;             var p3 = new OpenLayers.Geometry.Point(0.3, 40);<br>
&gt;             var p4 = new OpenLayers.Geometry.Point(0.4, 40);<br>
&gt;             var p5 = new OpenLayers.Geometry.Point(0.5, 40);<br>
&gt;             var p6 = new OpenLayers.Geometry.Point(0.6, 40);<br>
&gt;             var p7 = new OpenLayers.Geometry.Point(0.7, 40);<br>
&gt;             var p8 = new OpenLayers.Geometry.Point(0.8, 40);<br>
&gt;             var p9 = new OpenLayers.Geometry.Point(0.9, 40);<br>
&gt;             var p10 = new OpenLayers.Geometry.Point(0, 41);<br>
&gt;<br>
&gt;             var points = [];<br>
&gt;             points.push(p1);<br>
&gt;             points.push(p2);<br>
&gt;             points.push(p3);<br>
&gt;             points.push(p4);<br>
&gt;             points.push(p5);<br>
&gt;             points.push(p6);<br>
&gt;             points.push(p7);<br>
&gt;             points.push(p8);<br>
&gt;             points.push(p9);<br>
&gt;             points.push(p10);<br>
&gt;<br>
&gt;             // create a line feature from a list of points<br>
&gt;             var lineString = new OpenLayers.Geometry.LineString(points);<br>
&gt;             var lineFeature = new OpenLayers.Feature.Vector(lineString,<br>
&gt; null, style_green);<br>
&gt;<br>
&gt; I see the line like an &quot;arrow head&quot;, but when I drag the map, the vertex<br>
&gt; points another place... Where is the problem??<br>
&gt;<br>
&gt; Thanks!<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<font color="#888888"><br>
<br>
--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br></div>