Share via

Azure maps, show/hide route toggle

Anonymous
2021-12-22T14:18:48.093+00:00

Hi

Is it possible to show/hide an existing route via a toggle button without recalculating the route?

Azure Maps
Azure Maps

An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. rbrundritt 21,711 Reputation points Volunteer Moderator
    2022-01-03T17:12:52.717+00:00

    Sure. I'm assuming you are displaying a route on Azure Maps using a line layer. Simply change the visibility option on the line layer to hide/show it.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.