Select to view content in your preferred language

RouteTracker reroute event

752
1
08-13-2020 10:22 AM
JayBowman
Emerging Contributor

I have a Xamarin Navigation app and I'm trying to implement rerouting. I've looked at your sample code. But for a live application do i need to add more code to the RerouteStarted and RerouteCompleted events on the RouteTracker.. Specifically on the completed event do i need to clear out the mapview graphicsOverlays and rebuild a new graphicsOverlay. with the new route?

0 Kudos
1 Reply
ZackAllen
Esri Contributor

Hi Jay. The workflow in the rerouting sample should work for a live application. If you plan on using the same symbology for the rerouted route, you can continue to update the geometry of the graphic you already have. We do this in the sample here.

If you plan on keeping the old route displayed or changing the symbology of the new route, you will need to add code for an additional graphic. You can add both of these graphics to the same overlay.

I hope this is helpful,

Zack

0 Kudos