$lon = $s['position_longitude'];
$staticMarkers[] = sprintf('%.3f,%.3f,bluer', $lat, $lon);
}
- if (count($staticMarkers) > 0) $staticLink .= '&' . implode('|', $staticMarkers);
+ if (count($staticMarkers) > 0) $staticLink .= '&markers=' . implode('|', $staticMarkers);
// Create <div/> element where the map is placed in
$mapName = 'wrgmap' . $this->mapsCount;
- $output .= '<div id="' . $mapName . '" style="width: 100%; height: 450px; border-style:none;"></div>';
+ $output .= '<div id="' . $mapName . '" style="width: 100%; height: 450px; border-style:none; display:none;"></div>';
// Return output
$output .= '<script type="text/javascript">' . "\n//<![CDATA[\n";
$output .= 'if (GBrowserIsCompatible()) {' . "\n";
+ $output .= "\tdocument.getElementById(\"$mapName\").style.display = \"block\";\n";
$output .= $this->addMap($mapName, $latitude, $longitude, $zoom);
foreach ($sleddingRoutes as $s) {
$lat = $s['position_latitude'];