define(WRGMAPJSFUNCTIONS, <<<JAVASCRIPT
<script type="text/javascript">
//<![CDATA[
-var wrSleddingIcon = new GIcon();
+var wrSleddingIcon = new GIcon(G_DEFAULT_ICON);
/*
+var wrSleddingIcon = new GIcon();
wrSleddingIcon.image = "bahn.png";
wrSleddingIcon.shadow = "bahns.png";
wrSleddingIcon.iconSize = new GSize(17, 17);
// Create <div/> element where the map is placed in
$mapName = 'wrgmap' . $this->mapsCount;
- $output .= '<div id="' . $mapName . '" style="width: 700px; height: 450px; border-style:solid; border-width:medium; border-color:blue;"></div>';
+ $output .= '<div id="' . $mapName . '" style="width: 100%; height: 450px; border-style:solid; border-width:medium; border-color:blue;"></div>';
// Return output
$output .= '<script type="text/javascript">' . "\n//<![CDATA[\n";
// returns a string that creates a map object called 'map'
private function addMap($mapName) {
- return "\tmap = new GMap2(document.getElementById(\"$mapName\"));\n" .
+ return "\tvar map = new GMap2(document.getElementById('$mapName'), {'mapTypes': [G_NORMAL_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP, G_SATELLITE_MAP]});\n" .
"\tmap.addControl(new GLargeMapControl());\n" .
"\tmap.addControl(new GMapTypeControl());\n" .
"\tmap.addControl(new GScaleControl());\n" .
"\tmap.setCenter(new GLatLng(47.267648, 11.404655), 10);\n" .
- "\tmap.setMapType(G_SATELLITE_MAP);\n" .
+ "\tmap.setMapType(G_PHYSICAL_MAP);\n" .
"\tmap.enableScrollWheelZoom();\n";
}