<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Both are doable. You need to do a little digging to be sure you are
pointing to the correct point when you either change its lonlat or
delete it. Then you need to redraw the line.<br>
<br>
In my application, I maintained a separate array pointing to the
points in my line. Possibly not the most efficient, but it worked.<br>
<br>
Michael<br>
<br>
On 4/11/2012 12:08 PM, Curtis Olson wrote:
<blockquote
cite="mid:CAHtsj_fwF_Nq0BNVzX2ohtYyv0r3fF2RTvcC0HG7DqCWLo9M4w@mail.gmail.com"
type="cite">
<div>Hi,</div>
<div><br>
</div>
I've begun my plunge into openlayers and have a number of things
working, but I've run into a question that I haven't been able to
answer for myself from the docs and the mailing list archives.
<div>
<br>
</div>
<div>I am building a map that will live track an object (for
example: my aircraft location as I fly in the FlightGear flight
simulator.)</div>
<div><br>
</div>
<div>I would like to leave a trail behind myself showing my recent
path (say for the past 10 seconds or the past 10 minutes.) I am
imagining a LineString where I can insert new points at one end
and remove points from the other end -- as my position updates.</div>
<div><br>
I could create an entirely new LineString and Vector and add
that to my layer 10x a second (removing the old feature), but I
was hoping I could just build the linestring once, add it too a
layer once, and from then on just modify the linestring
structure.</div>
<div><br>
Is something like this possible or am I barking up the wrong
tree?</div>
<div><br>
</div>
<div>I have another sort of similar situation where I may want to
additionally modify the point locations of some of the points in
the linestring (based on external data coming from the flight
simulator.) In otherwords I want to reshape the linestring by
adjusting the locations of individual points. Is anything like
this possible?</div>
<div><br>
I've been hunting through the examples and the documentation and
haven't stumbled on the appropriate magic yet.</div>
<div><br>
</div>
<div>Any tips or pointers or nudges for an openlayers newbie?</div>
<div>
<br>
Thanks,</div>
<div><br>
</div>
<div>Curt.<br>
-- <br>
<div>
<div>Curtis Olson:</div>
<div><a moz-do-not-send="true" href="http://www.atiak.com"
target="_blank">http://www.atiak.com</a> - <a
moz-do-not-send="true" href="http://aem.umn.edu/%7Euav/"
target="_blank">http://aem.umn.edu/~uav/</a></div>
<div><a moz-do-not-send="true"
href="http://www.flightgear.org" target="_blank">http://www.flightgear.org</a>
- <a moz-do-not-send="true"
href="http://gallinazo.flightgear.org" target="_blank">http://gallinazo.flightgear.org</a></div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
</body>
</html>