(Bugs)
m
Line 1: Line 1:
 +
= Google Map extension for [[MediaWiki]] =
 +
 
[http://www.evanmiller.org/ Evan Miller] wrote a wonderful [[MediaWiki]] extension to support [[Google Maps]].
 
[http://www.evanmiller.org/ Evan Miller] wrote a wonderful [[MediaWiki]] extension to support [[Google Maps]].
  
Line 15: Line 17:
 
</pre>
 
</pre>
  
= Bugs =
+
== 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:
 
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:
Line 29: Line 31:
 
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 =
+
== Links ==
  
 
* http://www.mediawiki.org/wiki/Extension:Google_Maps
 
* http://www.mediawiki.org/wiki/Extension:Google_Maps

Revision as of 07:30, 14 October 2011

Google Map extension for MediaWiki

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