[GraphHopper] Handling multiple polylines
Bryan Freitas
bryan.m.freitas at gmail.com
Tue Jan 27 16:45:47 UTC 2015
Thanks! That worked perfectly!
2015-01-26 12:15 GMT-01:00 Jordi Urmeneta <jordi.urmeneta at gmail.com>:
> 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.
> On 26 Jan 2015 13:58, "Bryan Freitas" <bryan.m.freitas at gmail.com> wrote:
>
>> 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.
>>
>> 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.
>>
>> Is there a way to add each returned line to an array or something, then
>> delete just the 4 lines?
>>
>> --
>> Best Regards,
>>
>> Bryan Freitas
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
--
Com os meus melhores cumprimentos,
Bryan Freitas
Tel: 963 278 218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150127/f2fec46a/attachment.html>
More information about the GraphHopper
mailing list