Hallo.
Wiess jemand wie man Googlemaps zum laufen kriegt.
Habe mich auch beim google registriert und den Code in der Google Konfiguration angegeben.
Weiss aber nicht wo ich genau den HTML-Code,der vom google generiert wurde platzieren soll.![]()
Danke
Hallo.
Wiess jemand wie man Googlemaps zum laufen kriegt.
Habe mich auch beim google registriert und den Code in der Google Konfiguration angegeben.
Weiss aber nicht wo ich genau den HTML-Code,der vom google generiert wurde platzieren soll.![]()
Danke
zeig mal welchen modul du da hast![]()
Hallo.
Also ich muss ja den Zip-File entpacken.
Darin befinden sich ja 2 weitere zip-file.Naehmlich mod_google_maps_sidebar-2.1.zip
und die Komponente mod_google_maps-2.1.zip.
Nun ich habe beide installiert.
Habe mich auch daraufhin beim google registriert.
In der Konfig muss ich ja den google API key eingeben,der vom Google generiert wird.
daraufhin musst man den ebenfalls generierten HTML-Code in XSL bei der GoogleMaps
Konfig einfügen.
Ich weiss leider nicht wo ich das genau platzieren muss und ob ich auch alles korrekt
ausgeführt habe.
Vielen Dank
Hier der XSL Code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<div class="infoWindow" style="white-space:nowrap;width:175px;">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="info">
<!-- This is the info window for all the markers in the Joomla database -->
<p>
<b><xsl:value-of select="name"/></b>
<br /><xsl:value-of select="address"/>
<br /><xsl:value-of select="city"/>, <xsl:value-of select="state"/><xsl:text> </xsl:text><xsl:value-of select="zipcode"/>
<br />
<xsl:if test="avatar">
<img>
<xsl:choose>
<xsl:when test="avatar/@thumb = 1">
<xsl:attribute name="src">images/comprofiler/tn<xsl:value-of select="avatar"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">images/comprofiler/<xsl:value-of select="avatar"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</xsl:if>
</p>
</xsl:template>
<xsl:template match="Result">
<!-- This is the info window for all the Yahoo Local Search component -->
<p>
<xsl:choose>
<xsl:when test="BusinessUrl">
<a>
<xsl:attribute name="href">
<xsl:value-of select="BusinessUrl"/>
</xsl:attribute>
<b><xsl:value-of select="Title"/></b>
</a>
</xsl:when>
<xsl:otherwise>
<b><xsl:value-of select="Title"/></b>
</xsl:otherwise>
</xsl:choose>
<br /><xsl:value-of select="Address"/>
<br /><xsl:value-of select="City"/>, <xsl:value-of select="State"/>
<br /><xsl:value-of select="Phone"/>
</p>
</xsl:template>
<!-- Here are some common things you can do in your info window
Adding Driving Directions
1. Add the following code into the info template where you want the driving directions
<br /><br />
<form action="http://maps.google.com/maps" method="get" target="_blank">
<i>ADDRESS</i>: <br /><input type="text" name="" size="20" /><br />
<input type="hidden" name=""><xsl:attribute name="value"><xsl:value-of select=""/><xsl:text>, </xsl:text><xsl:value-of select=""/>, <xsl:value-of select=""/><xsl:text> </xsl:text><xsl:value-of select="60318"/></xsl:attribute></input>
<input type="submit" value="Directions"/></form><br />
Adding HTML into the Info Window
1. Put the HTML you want added into the misc field of the marker
2. add the following line into the info template where you want this HTML to go: <xsl:copy-of select=""/>
Hier der generierte HTML-Code von Google:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta **********="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAk8ODmUU5CWCIu7718Z_v uxSpTHsX0Tixi-fwdIf5FNTmC9tvzBRBj9neWB1MRevh0b9y5dpCle08Yw"
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>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>
das steht doch da.. soweit ich das sehen kann...
und so weiter..1. Add the following code into the info template where you want the driving directions
aber ohne es selber zu testen kann cih auch nicht viel sagen.. vll. macht sich das gut auf meiner hp dann veruch ich es auch mal zum laufen zu bekommen.
Lesezeichen