Extension:Gis/installation

Installation
The gis extension is compatible with both version 1.4 and 1.5 of MediaWiki.

The extension can be found under extensions/gis in the MediaWiki CVS repository. After having checked out from CVS, move the extensions/gis directory to the $mediawiki/extensions directory and add these lines to LocalSettings.php:

If the $wgMapsourcesURL definition is omitted, the geo tag will not include a link to the map sources.

If inclusion of database.php is omitted, there will be no database, so the neighborhood and map support functions are disabled.

If using the database function, the gis database must be enabled. This may be done via the phpMyAdmin database maintenance tool, running gisdb.sql. Remember to replace /*$wgDBprefix*/ with your actual prefix. It can also be done directly in MySQL:

# mysql -u USERNAME -p use wikidb; source extensions/gis/gisdb.sql; quit;

If the map sources are used, a suitable map source file should be installed in Wiki:Map sources</tt> (or equivalent). You can use the map source example as a starting point.