]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions.js
Remove endpoint markers in disable method
[rails.git] / app / assets / javascripts / index / directions.js
index e0463ef8de00d4306fa0f3c53069a8bbef9f322d..04298d125ebbf2aa6c019b8d855e1872a17783ac 100644 (file)
@@ -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;