]> git.openstreetmap.org Git - rails.git/commit
Remove conditional for polyline layer
authorTucker Chapman <tucker.r.chapman@gmail.com>
Sat, 16 Jan 2021 23:00:57 +0000 (18:00 -0500)
committerTom Hughes <tom@compton.nu>
Thu, 28 Jan 2021 10:31:33 +0000 (10:31 +0000)
commitd257e678429a84c6759f8d64566a91a2f61bfca8
treeda2b8754c403ae0ee64816cbd0ff7e92fb3b4670
parent810e4da85ab65100d1d4d7ad6a302755da67b4d9
Remove conditional for polyline layer

When a user searches for a route and one is not found the polyline
layer is removed - if they then change the mode of transportation the
event listener will not reroute if there is no polyline layer.

This commit removes the conditional that prevents the routing code from
re-running after the polyline has been removed.

Fixes #3050
Closes #3055
app/assets/javascripts/index/directions.js