jungshadow / yfpp

A foul-mouthed election information application.
https://yourfuckingpollingplace.com
1 stars 1 forks source link

Feature/map directions updates #125

Closed jajohnso closed 4 years ago

jajohnso commented 4 years ago

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.