According to the Maps API, you have to clear the map on the
directionsRenderer. For the element, that's something like:

<google-directions>.directionsRenderer.setMap(null);


On Thu, Jul 23, 2015 at 8:55 AM Paul Rondeau <[email protected]>
wrote:

> Hi,
>
> I was wondering if it is possible to remove or change
> google-map-directions once drawn on a google-map element?
>
> Currently I have something like in the screenshot provided. But if I want
> to let the user try another route is there a way to do this without
> reloading the page?
>
> I've tried manually modifying the Light dom with no success:
>
>     Polymer.dom(parent).removeChild('google-map-directions');
>
>
> Thanks,
> Paul
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/4e3535b8-78bd-4ed9-b762-124f079fac7f%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/4e3535b8-78bd-4ed9-b762-124f079fac7f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CACGqRCCu_ERU_ofxjK1hehUDLvnc76%2B6bHD7X77__oxHm05VmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to