i managed to integrate google maps:
http://www.sl-kosmetikschule.de/karte.phtml
you have to signup for google maps...
http://www.google.de/apis/maps/signup.html
in the generated example-code you have to copy
Code: Select all
<script src="http://maps.google.com/maps?file=api&v=2&key=yourkey"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
place
Code: Select all
load()
create an article with html content-part:
Code: Select all
<div id="map" style="width: 500px; height: 300px"></div>
if you wish you can fine-tune:
Code: Select all
<script src="http://maps.google.com/maps?file=api&v=2&key=yourkey"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
// Creates a marker at the given point with label
function createMarker(point) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml("<br><b>your name</b><br>your adress");
});
return marker;
}
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 15);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var point = new GLatLng(37.4419, -122.1419);
map.addOverlay(createMarker(point));
}
}
//]]>
</script>
http://maps.google.com/
enter your adress ... find it...
at the top right there is a link to copy the url to this map to clipboard.... paste it in an editor or something.... find the coordinates in that string... usually after the LL=... ...take it. paste it in GLatLng... be happy!
Cheers
SNap