Specify route id to display map.

This commit is contained in:
George Kaklamanos 2016-02-20 19:56:47 +02:00
parent 1fd3b88cf0
commit e3eb7b30f0

View file

@ -30,7 +30,7 @@ if (isValidRoute($_GET['route'])){
PrintStops($route,'go');
PrintStops($route,'come');
echo '</div><div id="map" class="tab-pane fade" role="tabpanel">';
ShowMap(0,0);
ShowMap(getPositionOfRoute($route['id']));
echo '</div></div>';
} else {
echo '<span style="display:inline-block" class="alert alert-danger" role="alert">No such route. <a href="javascript:history.back()">Go back?</a></span>';