<div dir="ltr">Thanks! That worked perfectly!</div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-26 12:15 GMT-01:00 Jordi Urmeneta <span dir="ltr"><<a href="mailto:jordi.urmeneta@gmail.com" target="_blank">jordi.urmeneta@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Each poly line is drawed and you delete only the last. You could save a reference of all that you draw into a collection and then delete them from the map. </p>
<div class="gmail_quote"><div><div class="h5">On 26 Jan 2015 13:58, "Bryan Freitas" <<a href="mailto:bryan.m.freitas@gmail.com" target="_blank">bryan.m.freitas@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi, I'm using Graphhopper to develop a little app, and I want to have pre-made routes in it, but not just from point A to B, I want to have it circle around, for example, so I created a test route for testing, and what I do is use the calcPath to draw a line from A to B, then B to C, C to D, and D back to A.<div><br></div><div>All is fine until there, but now, wanting to clear the route, I can only remove the last line that has been inserted, and I'd rather not have to clear the whole map/markers to achieve this.</div><div><br></div><div>Is there a way to add each returned line to an array or something, then delete just the 4 lines?<br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Best Regards, </div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Bryan Freitas</div></div></div>
</div></div>
<br></div></div>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small">Com os meus melhores cumprimentos, </div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Bryan Freitas</div><div style="font-family:arial;font-size:small">Tel: 963 278 218</div></div></div>
</div>