Oh I see, that worked exactly as I wanted. Thanks! On Thursday, July 23, 2015 at 5:03:24 PM UTC-4, Eric Bidelman wrote: > > 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] > <javascript:>> 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] <javascript:>. >> 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/1ff8d83e-30a1-4553-96f8-e8040067840d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
