summaryrefslogtreecommitdiffabout
authorWojciech Polak <polak@gnu.org>2010-08-07 09:56:16 (GMT)
committer Wojciech Polak <polak@gnu.org>2010-08-07 09:56:16 (GMT)
commit22099b8b7fc2695f0a021060822fe958cf99abd3 (patch) (side-by-side diff)
tree47417a464cd9e40564f47cdc302d416d1e985205
parent5c3bdf49c2523794a07e185d00bccc5fb16cc55b (diff)
downloadcheetah-22099b8b7fc2695f0a021060822fe958cf99abd3.tar.gz
cheetah-22099b8b7fc2695f0a021060822fe958cf99abd3.tar.bz2
Google Maps no longer requires an API key.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--frontend/lib/config-sample.php1
-rw-r--r--xslt/v2/feed.xsl3
2 files changed, 1 insertions, 3 deletions
diff --git a/frontend/lib/config-sample.php b/frontend/lib/config-sample.php
index 1be1afd..1e9a124 100644
--- a/frontend/lib/config-sample.php
+++ b/frontend/lib/config-sample.php
@@ -23,7 +23,6 @@ $CONF['trsExpireDays'] = 7;
$CONF['feedEngine'] = 'cth';
$CONF['google.key'] = 'GOOGLE-API-KEY';
-$CONF['google.mapkey'] = 'GOOGLE-MAP-KEY';
$CONF['google.analytics'] = 'GA-CODE';
$CONF['fb.app_id'] = 'FACEBOOK-APP-ID';
diff --git a/xslt/v2/feed.xsl b/xslt/v2/feed.xsl
index c56eedf..f6f67bd 100644
--- a/xslt/v2/feed.xsl
+++ b/xslt/v2/feed.xsl
@@ -1010,10 +1010,9 @@
<xsl:template name="show-map">
<xsl:param name="lat"/>
<xsl:param name="long"/>
- <xsl:variable name="mapkey" select="'ABQIAAAAvLLQCnhTw46NwnzLhmeTWxTKCotwoHIH9XR8xmEaA1ptUXasrBR183bAB_OU-il8VLNhl9DX6kkXYA'"/>
<div class="mapembedded">
<a href="http://maps.google.com/maps?q={normalize-space($lat)},{normalize-space($long)}">
- <img osrc="http://maps.google.com/staticmap?zoom=12&amp;size=175x120&amp;maptype=mobile&amp;markers={normalize-space($lat)},{normalize-space($long)}&amp;key={$mapkey}"
+ <img osrc="http://maps.google.com/maps/api/staticmap?sensor=false&amp;zoom=12&amp;size=175x120&amp;markers={normalize-space($lat)},{normalize-space($long)}"
width="175" height="120" alt="Google Maps" title="Google Maps" />
</a>
</div>

Return to:

Send suggestions and report system problems to the System administrator.