(Google map extension and a fix for a bug that killed me hours of investigations...)
 
Line 3: Line 3:
 
<center>
 
<center>
 
<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
 
<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
36.02439, -104.966125 Wish I was there...
+
36.02439, -104.966125, Wish I was there...
 
</googlemap>
 
</googlemap>
 
</center>
 
</center>
Line 11: Line 11:
 
<pre>
 
<pre>
 
<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
 
<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
36.02439, -104.966125 Wish I was there...
+
36.02439, -104.966125, Wish I was there...
 
</googlemap>
 
</googlemap>
 
</pre>
 
</pre>
Line 24: Line 24:
  
 
It might still cause problems behind the scene but at least the end user gets to see the map.
 
It might still cause problems behind the scene but at least the end user gets to see the map.
 +
 +
= Links =
 +
 +
* http://www.mediawiki.org/wiki/Extension:Google_Maps

Revision as of 16:33, 31 October 2010

Evan Miller wrote a wonderful MediaWiki extension to support Google Maps.

<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12"> 36.02439, -104.966125, Wish I was there... </googlemap>

You get this simply enough:

<googlemap version="0.9" lat="35.983007" lon="-104.897804" zoom="12">
36.02439, -104.966125, Wish I was there...
</googlemap>

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 [1], 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.

Links