---
title: "WEC Map lädt die Karte nicht"
url: "https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2008-10-08"
last_reply: "2011-11-28"
replies: 16
solved: false
page: 1
pages: 1
lang: "de"
---

# WEC Map lädt die Karte nicht

Extensions · 16 Antworten · gestartet 2008-10-08

## Eröffnungsbeitrag

**Atomfried** · 2008-10-08 · [Beitrag #1](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/1)

Hallo!
ich habe ein Problem bei dem ich mittlerweile am verzweifeln bin. Ich habe die ext. wec_map installiert um eine Google Map auf der Webseite einzublenden. Leider wird die Karte nicht geladen. das Div bleibt leer!

weder die simple map noch die table map mit den koordinaten aus tt_adress werden angezeigt.
alle stylesheets habe ich auch mal testweise rausgenommen, jedoch ohne erfolg. ich weiss nun nicht mehr was ich noch tun kann um den fehler zu finden.

Der API Key funktioniert, da ich den Testcode von google auf den server geladen habe und dort wird die karte angezeigt.

bin für jeden hinweis dankbar!

T3 Version: 4.2.1 + TV
wec_map 2.2.0

hier ist der code den die extension generiert:

```html
<div class="tx-wecmap-pi3">
		<table><tr><td><div id="map420" class="tx-wecmap-map" style="width:400px; height:400px;"></div><script type="text/javascript">
/*<![CDATA[*/
var map420;
var markers_map420 = [];
var markerContent_map420 = [];
var markerTabs_map420 = [];
var map420_to_arr = [];
var map420_from_arr = [];

function toHere_map420(groupid, id) {
			tabs = [];
			tabLabels = markerTabs_map420[groupid][id];
			text = markerContent_map420[groupid][id];
			dirs = map420_to_arr[groupid][id];
			for (var i=0; i < text.length; i++) {
				if(i==0) {
					tabs.push(new GInfoWindowTab(tabLabels[i], dirs));
				} else {
					tabs.push(new GInfoWindowTab(tabLabels[i], text[i]));					
				}

			};
			markers_map420[groupid][id].openInfoWindowTabsHtml(tabs);
		}
function fromHere_map420(groupid, id) {
			tabs = [];
			tabLabels = markerTabs_map420[groupid][id];
			text = markerContent_map420[groupid][id];
			dirs = map420_from_arr[groupid][id];
			for (var i=0; i < text.length; i++) {
				if(i==0) {
					tabs.push(new GInfoWindowTab(tabLabels[i], dirs));
				} else {
					tabs.push(new GInfoWindowTab(tabLabels[i], text[i]));					
				}

			};
			markers_map420[groupid][id].openInfoWindowTabsHtml(tabs);
		}
function setDirections_map420(fromAddress, toAddress, mapName) {	
	      	window["gdir_"+mapName].load("from: " + fromAddress + " to: " + toAddress, {locale: "en"});
			map420.closeInfoWindow();
	    }
function map420_createMarker(id, point, icon, dir_title, groupid, address) {
			var marker = new GMarker(point, icon);
			var tabs = [];
			var tabLabels = markerTabs_map420[groupid][id];
			var text = markerContent_map420[groupid][id];
			if(text){
				for (var i=0; i < text.length; i++) {
					tabs.push(new GInfoWindowTab(tabLabels[i], text[i]));
				};	if(dir_title) {
				if(!(map420_to_arr[groupid] instanceof Array)) map420_to_arr[groupid] = [];
				map420_to_arr[groupid][id] = text[0];
				map420_to_arr[groupid][id] += '<br /><div id="map420_todirform_'+groupid+'_'+id+'" class="todirform"><form action="#" onsubmit="setDirections_map420(document.getElementById(\'tx-wecmap-directions-from-map420\').value, \'' + point.y + ', ' + point.x + ' ('+ dir_title +')\', \'map420\'); return false;">';
				map420_to_arr[groupid][id] += '<label class="startendaddress" for="tx-wecmap-directions-from-map420">Start Addresse</label><input type="text" name="saddr" value="'+ address +'" id="tx-wecmap-directions-from-map420" />';
				map420_to_arr[groupid][id] += '<input type="submit" name="submit" value="Go" /></form></div>';
				if(!(map420_from_arr[groupid] instanceof Array)) map420_from_arr[groupid] = [];
				map420_from_arr[groupid][id] = text[0];
				map420_from_arr[groupid][id] += '<br /><div id="map420_fromdirform_'+groupid+'_'+id+'" class="" fromdirform=""><form action="#" onsubmit="setDirections_map420( \'' + point.y + ', ' + point.x + ' ('+ dir_title +')\', document.getElementById(\'tx-wecmap-directions-to-map420\').value, \'map420\'); return false;">';
				map420_from_arr[groupid][id] += '<label class="startendaddress" for="tx-wecmap-directions-to-map420">Ziel Addresse</label><input type="text" name="daddr" value="'+ address +'" id="tx-wecmap-directions-to-map420" />';
				map420_from_arr[groupid][id] += '<input type="submit" name="submit" value="Go" /></form></div>';
			}	
				marker.bindInfoWindowTabsHtml(tabs);
			}
			return marker;
		}
function map420_triggerMarker(group, id, zoom) {
			marker = markers_map420[group][id];
			map420.setZoom(zoom);
			map420.panTo(marker.getPoint());
			
			setTimeout("GEvent.trigger(marker, 'click')",300);
		}
function handleErrors_map420() {
				   if (gdir_map420.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
				     alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: " + gdir_map420.getStatus().code);

				   else if (gdir_map420.getStatus().code == G_GEO_SERVER_ERROR)
				     alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: " + gdir_map420.getStatus().code);

				   else if (gdir_map420.getStatus().code == G_GEO_MISSING_QUERY)
				     alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: " + gdir_map420.getStatus().code);

				   else if (gdir_map420.getStatus().code == G_GEO_UNAVAILABLE_ADDRESS)
				    alert("The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.\n Error code:  " + gdir_map420.getStatus().code);

				   else if (gdir_map420.getStatus().code == G_GEO_BAD_KEY)
				     alert("The given key is either invalid or does not match the domain for which it was given. \n Error code: " + gdir_map420.getStatus().code);

				   else if (gdir_map420.getStatus().code == 	G_GEO_UNKNOWN_DIRECTIONS)
				     alert("We could not compute directions between the addresses. This is usually because there is no route available between the two points, or because we do not have data for routing in that region. \n Error code: " + gdir_map420.getStatus().code);

				   else if (gdir_map420.getStatus().code == G_GEO_BAD_REQUEST)
				     alert("A directions request could not be successfully parsed.\n Error code: " + gdir_map420.getStatus().code);

				   else alert("An unknown error occurred. Error code: " + gdir_map420.getStatus().code);
			}

function drawMap_map420() {
if (GBrowserIsCompatible()) {
map420 = new GMap2(document.getElementById("map420"));
gdir_map420 = new GDirections(map420, document.getElementById("map420_directions"));GEvent.addListener(gdir_map420, "error", handleErrors_map420);

map420.setCenter(new GLatLng(50.187458, 8.665952), 15, G_HYBRID_MAP);
map420.addControl(new GSmallMapControl());
map420.addControl(new GScaleControl());
map420.addControl(new GOverviewMapControl());
map420.addMapType(G_PHYSICAL_MAP);
map420.addControl(new GHierarchicalMapTypeControl());

var icon_map420 = new GIcon();
icon_map420.image = "typo3conf/ext/wec_map/images/mm_20_red.png";
icon_map420.shadow = "typo3conf/ext/wec_map/images/mm_20_shadow.png";
icon_map420.iconSize = new GSize(12, 20);
icon_map420.shadowSize = new GSize(22, 20);
icon_map420.iconAnchor = new GPoint(6, 20);
icon_map420.infoWindowAnchor = new GPoint(5, 1);

var mgr_map420 = new GMarkerManager(map420);

markers_map420[0] = [];
markerContent_map420[0] = [];
markerTabs_map420[0] = [];
markerContent_map420[0][0] = [];
markerTabs_map420[0][0] = [];
markerContent_map420[0][0].push('<div id="map420_marker_0_0" class="marker"><div class="\" infotitle="">, Frankfurter Hof</div><div>Oskar-Schindler-Strasse 5<br />Frankfurt, Hessen 60437</div></div><br /><div id="map420_dirmenu_0_0" class="dirmenu" style="white-space: nowrap;">Wegbeschreibung: <a href="#" onclick="toHere_map420(0,0); return false;">Hierhin</a> - <a href="#" onclick="fromHere_map420(0,0); return false;">Von hier</a></div>');
markerTabs_map420[0][0].push('Adresse');
markers_map420[0].push(map420_createMarker(0, new GLatLng(50.187958,8.665452), icon_map420, ', Frankfurter Hof', 0, ''));
mgr_map420.addMarkers(markers_map420[0], 0, 17);

mgr_map420.refresh();

} }
/*]]>*/
</script></td><td style="vertical-align: top;"><div id="map420_sidebar" class="sidebar" style="height:400px"><a href="#" style="display:block;" onclick="map420_triggerMarker(0, 0, 14); return false;"><div class="infotitle">, Frankfurter Hof</div></a></div></td></tr></table><div id="map420_directions"></div><table><form action="index.php?id=189&no_cache=1" id="a2f8807d1026b1f28e99ec25cf4316d22" name="a2f8807d1026b1f28e99ec25cf4316d22" enctype="multipart/form-data" method="post"><div style="display:none;"></div><tr><td>Radius:</td><td> <select name="map420_radius" size="1"><option value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option><option value="250">250</option></select> </td></tr><tr><td>Unit:</td><td> <select name="map420_kilometers" size="1"><option value="0" selected="selected">miles</option><option value="1">kilometers</option></select> </td></tr><tr><td>Address:</td><td> <input type="text" name="map420_address" size="20" value="" /> </td></tr><tr><td>City:</td><td> <input type="text" name="map420_city" size="20" value="" /> </td></tr><tr><td>State:</td><td> <input type="text" name="map420_state" size="20" value="" /> </td></tr><tr><td>ZIP:</td><td> <input type="text" name="map420_zip" size="20" value="" /> </td></tr><tr><td></td><td> <input type="submit" name="map420_submit" value="Submit" /> </td></tr></form></table>
	</div>
```

[/img]

## Antworten

### [#2](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/2) · celeron · 2009-01-09

Hallo,

hast Du eine Lösung gefunden.

Bei mir wird die Map auch nicht angezeigt.

Viele Grüße
celeron

### [#3](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/3) · astrula · 2009-01-21

Hallo,
ich schliesse mich der Liste an. Auch bei mir wird die Karte nicht angezeigt. Und das verrückteste ist, das es schon mal wunderbar funktioniert hat!!
Ich habe die neuste Version von TYPO3, templavoila und wec_map installiert.

Astrid

### [#4](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/4) · celeron · 2009-01-22

Hallo Astrid,

habe es bei mir hinbkommen.

Setz mal diesen Parameter in Dein Setup.

config.removeDefaultJS = 0

Viele Grüße
celeron

### [#5](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/5) · astrula · 2009-01-22

Hallo Celeron,
leider ändert das bei mir überhaupt nichts! Es muss an irgendetwas anderem liegen. Ist mir schleierhaft...
Aber Danke trotzdem. Vielleicht hat ja noch jemand eine Idee??

Danke im Voraus,
Astrid

### [#6](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/6) · Eros · 2009-01-22

Hallo,

die WEC Map gehört zu den Extensions, mit denen ich praktisch nie Probleme habe.

**Für eine simple map:**

**Statische Templates einbinden:**

WEC Map API
WEC Simple Map

**Und folgendes TS (Mit richtigem API-Key!!!):**

```typoscript
plugin.tx_wecmap_pi1 {
	apiKey = ABQIAAAA_blablabla

	width = 500
	height = 300

	showDirections = 0
	prefillAddress = 0
	initialMapType = G_SATELLITE_MAP

	zoomLevel = 14
	centerLat = 
	centerLong = 
	mapName =
	maxAutoZoom =
	showSidebar = 0

	controls {
		mapControlSize = large
		showOverviewMap = 1
		showMapType = 1
		showScale = 1
	}

	marker {
		title = COA
		title {
			10 = TEXT
			10.field = title
			10.wrap = <div class="infotitle"><strong>|</strong></div>
		}
		
		description = COA
		description {
			10 = TEXT
			10.field = description
			10.wrap = <div>|</div>		
			10.if.isTrue.field = description

			20 = TEXT
			20.field = street
			20.wrap = <br /> | <br/>
			20.if.isTrue.field = street

			30 = TEXT
			30.field = zip
			30.wrap = | &nbsp;
			30.if.isTrue.field = zip

			40 = TEXT
			40.field = city
			40.wrap = | <br/>
			40.if.isTrue.field = city
      
			50 = TEXT
			50.field = country
			50.wrap = | &nbsp;

			60 = TEXT
			60.field = state
			60.wrap = (|)
			60.if.isTrue.field = state
		}
	}
}
```

In der Flexform dann noch die Adresse eingeben. Fertig!

Vieleicht hilft's ja...

Tschaui

### [#7](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/7) · SomehowLost · 2009-01-29

Hallo zusammen,

ich habe eine Lösung gefunden, da es bei mir auch nicht ging.

Überprüft doch einfach mal, ob im Bodytag folgendes auf eurer Kartenseite drinsteht:  onload="T3_onloadWrapper();"
Wenn nicht liegt das daran, dass das im Object Browser "config.sourceopt.emptyBodyTag = 1" eingetragen ist. Stellt das auf 0 und dann dürfte es gehen. Bei mir lag es zumindest daran.

Viele Grüße

Somehowlost

### [#8](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/8) · Seneca · 2009-02-07

Hallo,

wenn ich mein Problem noch anfügen darf:
Ich habe die Karte in eine Seite integriert und habe von einer anderen Seite darauf verlinkt:
Wenn ich über diesen Link zur google map möchte, wird sie nicht angezeigt. Es heißt, es fehle der Api Key. Ich habe aber einen im Wec-Administrator für meine Domain gesetzt.
Wenn ich die Seite vom Backend her direkt aufrufe, wird die Karte sonderbarer Weise geladen, d.h. der Api key funktioniert.

Ich hatte gerade auch rggooglemap und lumogooglemap gleichzeitig installiert. Damit hatte ich aber gar keinen Erfolg. Als es dann mit wec-map sofort funktionierte, habe ich die beiden Extensions deinstalliert. Kann es damit zusammenhängen?

Oder liegt es an einer anderen Einstellung?

Gruß Seneca!

### [#9](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/9) · Seneca · 2009-02-09

Noch zur Präzisierung, vielleicht hilft das weiter:

Im IE kommt folgende Fehlermeldung:
Zeile: 4
Zeichen: 30
Fehler: Objekt erwartet
Code: 0

Har jemand eine Idee, wo mein Fehler stecken könnte?

Gruß
Seneca

### [#10](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/10) · Seneca · 2009-02-09

Hallo,

habe meinen Fehler inzwischen gefunden:
Den API key hatte ich für "domain.de" bei Google beantragt.
Im Wec-Admin allerdings hatte ich den key allerdings unter dem Domainnamen "www.domain.de" eingetragen!

Gruß
Seneca

### [#11](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/11) · Typo3Einsteiger · 2009-04-15

Hallo, ich habe ein Problemchen mit der WEC MAP 2.2.1.

Ich versuche die ganze Zeit vergeblich die erste Zoomstärke (also Standartzoomstärke) zu verändern.

Ich habe es mit folgender Anweisung im TS versucht, dies bringt jedoch nichts:

plugin.tx_wecmap_pi1.zoomLevel = 10

Weiss jemand wie ich dies einstellen kann?

### [#12](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/12) · Typo3Einsteiger · 2009-04-16

Geht es irgendwie, zwei Maps (Extension WEC MAP 2.2.1.), welche als Seiteninhalte direkt untereinander angezeigt werde mit zwei unterschiedliche Zoomfaktoren anzuzeigen oder kann ich den Zoomlevel nur Pauschal für alle Maps einstellen mit plugin.tx_wecmap_pi1.zoomLevel = 10?

### [#13](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/13) · saNdRo- · 2009-06-03

wenn ich das nochmal refreshen darf.

ich habe das gleiche problem, er lädt die Karte einfach nicht.

der onLoad ist drin und es ist meiner Meinung alles richtig konfiguriert.

<http://www.schmidinger.info/standort.html>

der Google-API-Key ist auch auf die Domain mit WWW eingetragen.

ich verstehe es nicht, vielleicht sieht es ja jemand.

### [#14](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/14) · wech · 2010-05-01

Hallo,

sollte jemand noch einmal das Problem haben immer drauf achten das in der Adresse keine ä,ö,ü, vorkommen

### [#15](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/15) · belnried · 2010-11-07

Hallo zusammen,

ich beschäftige mich noch nicht allzu lange mit Typo3, bin daher noch ein Anfänger in vielen Dingen.
Ich habe ebenfalls folgendes Problem:
Ich möchte mit Hilfe der Extension wec_map verschiedene Standorte von Usern anzeigen.
Nun habe ich die Extension ganz normal installiert und diese, wie in der Anleitung beschrieben, eingebunden.

Rufe ich die Unterseite mit der interaktiven Karte im FE auf, erscheint bei mit lediglich die Meldung
**"There doesn't seem to be anything to display. Make sure the map is configured correctly and there are users or markers set."**.

Im Backend werden die Adressen im Modul WEC Karten Administrator korrekt aufgelistet. Im Modul FE Benutzer Karte wird die Karte jedoch ebenfalls nicht dargestellt.
Ich benutze TYPO3 4.4.4.
Der Quellcode der entsprechenden Seite:

```html
<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
<html> 
<head> 
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

<title>Interaktive Karte</title> 
<meta name="generator" content="TYPO3 4.4 CMS"> 
 
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_1faa6d6a29.css?1288885741" media="all"> 
<link rel="stylesheet" type="text/css" href="uploads/tf/style.css?1288808969" media="all"> 
 
<script src="typo3temp/javascript_93077bb238.js?1209071156" type="text/javascript"></script> 
 
</head> 
<body> 
 
<div id="header_container"><img src="uploads/tf/Ostfalia-Logo.jpg" width="360" height="81" border="0" alt="Logo Grafik" title="Ostfalia Logo" /></div><div id="navi_container"><ul><li><a href="index.php?id=45" onfocus="blurLink(this);"  >Teilnehmerliste</a></li><li><a href="index.php?id=46" onfocus="blurLink(this);"  >Eigene Sitemap</a></li><li><a href="index.php?id=47" onfocus="blurLink(this);"  >LogIn</a></li><li><a href="index.php?id=41" onfocus="blurLink(this);"  >Sed ipsum</a></li><li><a href="index.php?id=42" onfocus="blurLink(this);"  >Interaktive Karte</a></li></ul></div><div id="content_container"> 
	<!--  CONTENT ELEMENT, uid:62/list [begin] --> 
		<div id="c62" class="csc-default" > 
		<!--  Header: [begin] --> 
			<div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Frontend Benutzer Karte</h1></div> 
		<!--  Header: [end] --> 
			
		<!--  Plugin inserted: [begin] --> 
			
	<!--
 
		BEGIN: Content of extension "wec_map", plugin "tx_wecmap_pi2"
 
	--> 
	<div class="tx-wecmap-pi2"> 
		<table><tr><td><p> 
				There doesn't seem to be anything to display. Make sure the map is
				configured correctly and there are users or markers set.
			</p></td><td style="vertical-align: top;"></td></tr></table> 
	</div> 
	
	<!-- END: Content of extension "wec_map", plugin "tx_wecmap_pi2" --> 
 
	
		<!--  Plugin inserted: [end] --> 
			</div> 
	<!--  CONTENT ELEMENT, uid:62/list [end] --> 
		</div><div id="contentBorder_container"></div> 
 
</body> 
</html>
```

Es wäre klasse, wenn mit jmd. in dieser Sache weiterhelfen könnte.

Beste Grüße
Benni

### [#16](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/16) · Plotz · 2011-02-24

> **belnried schrieb:**
>
> Es wäre klasse, wenn mit jmd. in dieser Sache weiterhelfen könnte.

Gerne doch.

Einfach im EM defaults der wec_map ändern:

- **Default Country** = Germany
- **Enable Geocoding Status** = on
- **Which URL to load the API from** = http://maps.google.**de**/maps?file=api&amp;v=%s&amp;key=%s&amp;hl=%s

Schon funktioniert das Geocoding im Plugin und es werden auch Orte geroutet, wenn nur die deutsche PLZ ohne Ortsname angegeben wird.

:D

### [#17](https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht/17) · anderlk · 2011-11-28

Falls nochmals jemand auf diesen Poist stößt:

Ein haäufiger Fehler ist noch dass man in den Extension Einstellungen im Extension Manager folgende Option aktivieren muss:

**Enable Gocoding Status**

MFG Andreas

[Bild: \[upl-image-preview uuid=7f98cbc7-85dd-5f29-81c5-7b0bf53e1899 url=https://www.typo3.net/assets/files/typo3net/636-wec_map.png alt=wec_map.png thumbnail_url=https://www.typo3.net/assets/files/typo3net/636-wec_map.png\]](https://www.typo3.net/assets/files/typo3net/636-wec_map.png)

---

Quelle: „WEC Map lädt die Karte nicht“, typo3.net, https://www.typo3.net/d/82574-wec-map-laedt-die-karte-nicht
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
