Specify route id to display map.
This commit is contained in:
parent
1fd3b88cf0
commit
e3eb7b30f0
1 changed files with 1 additions and 1 deletions
|
@ -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>';
|
||||
|
|
Reference in a new issue