Tolkien Gateway

User:Eldarion Telcontar/Google Maps for Arda/Installation

< User:Eldarion Telcontar | Google Maps for Arda(Difference between revisions)
m (Download-Link updated)
(updated download link once again)
 
(3 intermediate revisions by one user not shown)
Line 3: Line 3:
 
== Basic Installation in Five Easy Steps ==
 
== Basic Installation in Five Easy Steps ==
  
1. Download this file, and unzip it into a directory on your webspace: [http://rapidshare.de/files/48672616/Tiles.zip.html Download!]
+
1. Download this file, and unzip it into a directory on your webspace: [http://rapidshare.com/files/406126828/Tiles.zip Download!]
  
It should create a "Tiles" folder with six subfolders for the zoom levels.  
+
It should create a "Tiles" folder with five subfolders for the zoom levels.  
  
2. Go sign up for a Google Maps API key from the [http://maps.google.com/apis/maps/signup.html Google website].
+
2. Go sign up for a Google Maps API key from the [http://code.google.com/intl/de-DE/apis/maps/signup.html Google website].
  
 
3. Download this file, and unzip it into your "extensions" directory: [http://gilgalad.piranho.de/extension/GoogleMaps_Arda.zip Download!]
 
3. Download this file, and unzip it into your "extensions" directory: [http://gilgalad.piranho.de/extension/GoogleMaps_Arda.zip Download!]
Line 17: Line 17:
 
  var wgGoogleMapsTiles = 'path of the tile images folder from step 1 goes here (e.g. "http://www.testsite.com/Tiles")';
 
  var wgGoogleMapsTiles = 'path of the tile images folder from step 1 goes here (e.g. "http://www.testsite.com/Tiles")';
  
5. Add this to the end of LocalSettings.php (but before the final "?>"):
+
5. Add this to the end of LocalSettings.php in the MediaWiki directory (but before the final "?>"):
  
 
  $wgGoogleMapsKey = "your key from step 2 goes here";
 
  $wgGoogleMapsKey = "your key from step 2 goes here";

Latest revision as of 13:10, 10 July 2010

Note: Version 0.1 works with MediaWiki 1.5 and up. Note, however, the Editor's Map will only be available if you're using MediaWiki 1.6 or greater.

[edit] Basic Installation in Five Easy Steps

1. Download this file, and unzip it into a directory on your webspace: Download!

It should create a "Tiles" folder with five subfolders for the zoom levels.

2. Go sign up for a Google Maps API key from the Google website.

3. Download this file, and unzip it into your "extensions" directory: Download!

It should create a "GoogleMaps_Arda" folder with a few files.

4. Go in this folder and add this to the beginning of the EditorsMap.js:

var wgGoogleMapsTiles = 'path of the tile images folder from step 1 goes here (e.g. "http://www.testsite.com/Tiles")';

5. Add this to the end of LocalSettings.php in the MediaWiki directory (but before the final "?>"):

$wgGoogleMapsKey = "your key from step 2 goes here";
$wgGoogleMapsTiles = "path of the tile images folder from step 1 goes here (e.g. "http://www.testsite.com/Tiles")";
require_once( "$IP/extensions/GoogleMaps_Arda/GoogleMaps.php" );

If all went well, you should be good to go!