Change map parameter to be array of coordinates.
This commit is contained in:
parent
6c4b29c37f
commit
51629eeece
2 changed files with 20 additions and 8 deletions
|
@ -29,7 +29,7 @@ if (isValidStop($_GET["stop"])){
|
|||
echo '<div id="routes" class="tab-pane fade in active" role="tabpanel">';
|
||||
PrintRoutes($_GET["stop"]);
|
||||
echo '</div><div id="map" class="tab-pane fade" role="tabpanel">';
|
||||
ShowMap($stop['lat'],$stop['lon']);
|
||||
ShowMap(array(array($stop['lat'],$stop['lon'])));
|
||||
echo '</div></div>';
|
||||
} else {
|
||||
echo '<span style="display:inline-block" class="alert alert-danger" role="alert">No such stop. <a href="javascript:history.back()">Go back?</a></span>';
|
||||
|
|
Reference in a new issue