X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5853f81ee88a8a85ab35a78ea0ba288e638a6564..9d8ab7dbd11f9fff0faf82b948bf1a07e86aa5b7:/app/assets/javascripts/routing.js.erb diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index 7bb27f72b..42e4ba2bc 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -206,8 +206,8 @@ OSM.Routing=function(map,name,jqSearch) { row.append("
' + r.chosenEngine.creditline + '
'); }; - r.clickTurn=function(num,latlng) { - r.popup=L.popup().setLatLng(latlng).setContent(""+(num+1)+"
").openOn(r.map); + r.clickTurn=function(instruction,latlng) { + r.popup=L.popup().setLatLng(latlng).setContent(""+instruction+"
").openOn(r.map); }; r.highlightSegment=function(lineseg){ if (r.highlighted) map.removeLayer(r.highlighted);