Merge pull request #11 from danstowell/jsrouting-pulldownchange
[rails.git] / app / assets / javascripts / routing.js.erb
index 4ea30fa000759677b03f8c20c1757e62d9af54f4..fbec3e7e3ada6e072eea4fd87ffdd670782dd837 100644 (file)
@@ -211,6 +211,8 @@ OSM.Routing=function(map,name,jqSearch) {
                        $('#turnbyturn').append(row);
                        cumulative+=step[3];
                }
+               $('#sidebar_content').append('<p id="routing_credit">' + r.chosenEngine.creditline + '</p>');
+
        };
        r.clickTurn=function(num,latlng) {
                r.popup=L.popup().setLatLng(latlng).setContent("<p>"+(num+1)+"</p>").openOn(r.map);