--- a/include/common-geo.inc.php +++ b/include/common-geo.inc.php @@ -27,13 +27,13 @@ if (sizeof($mapPoints) < 1) return 'map error'; if (sizeof($mapPoints) === 1) { - $markers = 'markers={$mapPoints[0][0]},{$mapPoints[0][1]}'; + $markers = 'markers='.$mapPoints[0][0].','.$mapPoints[0][1]; } else { if (!$numbered) { $markers = 'markers='; } if ($path) { - $markers.= 'markers={$mapPoints[0][0]},{$mapPoints[0][1]}&path='; + $markers.= 'markers='.$mapPoints[0][0].','.$mapPoints[0][1].'&path='; } foreach ($mapPoints as $index => $mapPoint) { if ($twotone && $index == 0) { @@ -56,15 +56,23 @@ } } $output = ''; - if ($collapsible) - $output.= '

Open Map...

'; - if (isIOSDevice()) + if ($collapsible) { + $output.= '

Open Map...

+ + + + '; + } + if (isIOSDevice()) { $output.= 'map of stop location'; - else + } + else { $output.= 'map of stop location'; - - if ($collapsible) + } + + if ($collapsible) { $output.= '
'; + } return $output; }