Extension:DatabaseGoogleExtension

What can this extension do?
This extension is based on the Google Maps extension by Evan Miller. It has been modified to store location data in a database table, and the user interface to edit this data has been extended with the ability to add polygons. It is also possible to provide a map on the search result page, where search hits that have a location associated with them are shown.

Installation
1. Untar the contents of the archive into your mediawiki root:

> cd $MEDIAWIKI > tar -zxvf $DOWNLOAD_DIR/dist-YYMMDDHHMM.tar.gz

2. Apply the patch:

> patch < core.patch > rm core.patch

3. Create the database table:

> psql -U $WIKIUSER $WIKIDB < docs/googlemaps_schema.txt

or

> mysql -u $WIKIUSER $WIKIDB < docs/googlemaps_schema.txt

4. Add the following lines to your LocalSettings.php:

> $wgGoogleMapsKey = ""; > require_once( "extensions/GoogleMaps/GoogleMaps.php" );

5. Create the DbSettings.php file, to contain your database configuration for the XMLRPC library parts: >          > $wgDBtype           = "mysql"; > $wgDBserver        = "localhost"; > $wgDBname          = "wikidb"; > $wgDBuser          = "wikidbuser"; > $wgDBpassword      = "wikidbpassword"; > $wgDBport          = "5432"; > $wgDBprefix        = ""; >         > ?>

6. Now edit your skin to include the googlemaps view, an example is in  skins/MonoBook-example.php

Changes to LocalSettings.php
$wgGoogleMapsKey = ""; require_once( "extensions/GoogleMaps/GoogleMaps.php" );