Re: Makierungen auf einer Weltkarte
Verfasst: 05.02.2010 18:07
Juhu!
ich habs gelöst
ACP -> Posting ->BBcodes
BBCode usage:
HTML replacement:
Help line:
[ externes Bild ]
EDIT
na toll!
beim IE Funktioniert es natürlich nicht!
ich habs gelöst

ACP -> Posting ->BBcodes
BBCode usage:
Code: Alles auswählen
[Map={TEXT}]{TEXT2}[/Map]
Code: Alles auswählen
<script src="http://maps.google.com/maps?file=api&v=2.x&key=HIER API CODE EINTRAGEN!!!" type="text/javascript"></script>
<script type="text/javascript">
var map = null;
var geocoder = null;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(0.0000000, 0.0000000), 13 );
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GScaleControl());
map.addControl(new GOverviewMapControl());
geocoder = new GClientGeocoder();
showAddress("{TEXT}");
}
}
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " doesn't exists");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml("<br \/><strong>{TEXT}: {TEXT2}<\/strong>");
}
}
);
}
}
</script>
<body onload="initialize()" onunload="GUnload()">
<form action="#" onsubmit="showAddress(this.address.value); return false">
<p>
<input type="text" size="60" name="address" value="{TEXT}" />
<input type="submit" value="Go!" />
</p>
<div id="map_canvas" style="width: 550px; height: 500px"></div>
</form>
Code: Alles auswählen
[Map=Location]description[/Map]
EDIT
na toll!
beim IE Funktioniert es natürlich nicht!
