define(WRGMAPJSFUNCTIONS, <<<JAVASCRIPT
<script type="text/javascript">
//<![CDATA[
-var wrSleddingIcon = new GIcon();
-/*
-wrSleddingIcon.image = "bahn.png";
-wrSleddingIcon.shadow = "bahns.png";
+var wrSleddingIcon = new GIcon(G_DEFAULT_ICON);
+wrSleddingIcon.image = "/vorlagen/gmap_rodelbahn_c.png";
+wrSleddingIcon.shadow = "/vorlagen/gmap_rodelbahn_c_s.png";
wrSleddingIcon.iconSize = new GSize(17, 17);
wrSleddingIcon.shadowSize = new GSize(23, 23);
wrSleddingIcon.iconAnchor = new GPoint(9, 9);
wrSleddingIcon.infoWindowAnchor = new GPoint(9, 9);
-*/
function wrCreateMarker(latitude, longitude, name, icon) {
// 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:none;"></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";
}