The directions plugin for mapBox doesn't seem to be updating the input values for the origin and destination fields after the initial page render. It works for the first map, but subsequent map openings result in empty inputs for the direction fields.
As a work-around, added some imperative code inside the on load handler for the map to fill the inputs in if the function calls don't do their job.
The directions plugin for mapBox doesn't seem to be updating the input values for the origin and destination fields after the initial page render. It works for the first map, but subsequent map openings result in empty inputs for the direction fields.
As a work-around, added some imperative code inside the on load handler for the map to fill the inputs in if the function calls don't do their job.