(Google map extension and a fix for a bug that killed me hours of investigations...)
 
(Redirected page to MediaWiki's Google maps)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
[http://www.evanmiller.org/ Evan Miller] wrote a wonderful [[MediaWiki]] extension to support [[Google Maps]].
+
#REDIRECT [[MediaWiki's Google maps]]
 
+
<center>
+
<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
+
36.02439, -104.966125 Wish I was there...
+
</googlemap>
+
</center>
+
 
+
You get this simply enough:
+
 
+
<pre>
+
<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
+
36.02439, -104.966125 Wish I was there...
+
</googlemap>
+
</pre>
+
 
+
= Bugs =
+
 
+
Oddly enough, it seems there's a bug in the distributed files. May be it only affects some implementations. If you see the map in the wiki article, but do see the map in the editor (when you click the icon), try to edit the file ''GoogleMaps.body.php'', and, according to [http://www.mediawiki.org/wiki/Extension_talk:Google_Maps#FIXED_in_the_latest_releases_9.2F29.2F09], change the line:
+
 
+
      function render16 ( $pContent, $pArgv, &$pParser ) {
+
to
+
      function render16 ( $pContent, $pArgv, $pParser ) {
+
 
+
It might still cause problems behind the scene but at least the end user gets to see the map.
+

Latest revision as of 07:32, 14 October 2011