Hello, i use the following Script to read Markers and place it with an infowindow with tabs. I get an Error : "a is undefined in ...maps.gstatic.com/intl/de_ALL/ mapfiles/250a/maps2.api/main.js Row 706.
Can anyone give me a solution of that ? You can see the Webside on http://www.pgschmitz.de/index.php?id=164&no_cache=1 Thank you function initialize() { if (GBrowserIsCompatible()) { var i = 0; //Icon Definition var cicon = new GIcon(); cicon.iconSize=new GSize(22,22); cicon.iconAnchor=new GPoint(11,11); cicon.infoWindowAnchor=new GPoint(11,11); // Icon Array var gicons = []; gicons["grosso"] = new GIcon(cicon, "fileadmin/schmitz/template/ images/grosso.png"); gicons["fach"] = new GIcon(cicon, "fileadmin/schmitz/template/ images/fach.png"); gicons["blau"] = new GIcon(cicon, "fileadmin/schmitz/template/ images/blau.png"); // Start: Funktion zum erstellen des Markers und Eventwindows function createMarker(point,name,icon,tab1,tab2) { // Erstellen des Markers mit dem entsprechenden Icon var marker = new GMarker(point, gicons[icon]); var tabs = []; var content1; var content2; GEvent.addListener(marker, "click", function() { GDownloadUrl(tab1, function(html,responseCode) { content1 = html;} ); GDownloadUrl(tab2, function(html,responseCode) { content2 = html;} ); marker.openInfoWindowTabsHtml([new GInfoWindowTab('Uebersicht', 'test'), new GInfoWindowTab('Oeffnungszeiten', 'test2')]); //[new GInfoWindowTab('Uebersicht', content1), new GInfoWindowTab('Oeffnungszeiten', content2)]) return marker; })}; // Ende: Funktion zum erstelln des Markers und Eventwindows // Start: Erstellen der Karte var map = new GMap2(document.getElementById("kd_map")); // Festlegen des Center-Punktes map.setCenter(new GLatLng(51.50167,7.091954), 9); // Kartennavigation map.addControl(new GLargeMapControl()); //Kartentypen map.addControl(new GMapTypeControl()); } // Ende: Erstellen der Karte // Start: Auslesen der Daten aus der Datei data.xml GDownloadUrl("fileadmin/schmitz/template/marker/data.xml", function(data, responseCode) { var xml = GXml.parse(data); var markers = xml.documentElement.getElementsByTagName("marker"); for (var i = 0; i < markers.length; i++) { var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")), parseFloat(markers[i].getAttribute("lng"))); var label = markers[i].getAttribute("kdname"); // Auslesen der Icontype-Information var icon = markers[i].getAttribute("icon"); var tab1 = "fileadmin/schmitz/template/marker/"; tab1 += markers[i].getAttribute("tab1"); var tab2 = "fileadmin/schmitz/template/marker/"; tab2 += markers[i].getAttribute("tab2"); //Erzeugen des Markers mit Icontype als Bild var marker = createMarker(point,label,icon,tab1,tab2); map.addOverlay(marker); } }); } -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
