]> git.openstreetmap.org Git - rails.git/commitdiff
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)
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


No differences found