X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dad6bca7530f0f7d240dc21d3369cf71edcf41bb..c9f495cb18ac70b0b31822c9aac2a1c95f7d626e:/app/assets/javascripts/index/directions.js?ds=sidebyside diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index e0463ef8d..04298d125 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -325,9 +325,7 @@ OSM.Directions = function (map) { map .removeLayer(popup) - .removeLayer(polyline) - .removeLayer(endpoints[0].marker) - .removeLayer(endpoints[1].marker); + .removeLayer(polyline); }; return page;