Closed Mehditerranee closed 4 years ago
I'm currently trying to put a route map on my website. I want to display the road and itinerary instructions at the click of a button.
But when I click a second time on the button, itinerary instructions are displayed a second time as you can see below :
How can I prevent this behavior?
Most likely you are creating a second instance of the control an adding it to the map. Hard to tell without seeing an example, though.
I'm currently trying to put a route map on my website. I want to display the road and itinerary instructions at the click of a button.
But when I click a second time on the button, itinerary instructions are displayed a second time as you can see below :
How can I prevent this behavior?