Extension:Maps

From MediaWiki.org
Jump to: navigation, search
shortcut: Maps
MediaWiki extensions manual - list
Crystal Clear action run.png
Maps

Release status: stable

MapsLogo.png
Implementation Parser function, Tag
Description Allows users to display maps and coordinate data using multiple mapping services.
Author(s) Jeroen De Dauw and others
Last version 2.0.1 (2012-12-13)
MediaWiki 1.17.* or higher
PHP >=5.2
Database changes no
License GPL v2+
Download Go to section
Example Maps examples
Hooks used
LanguageGetMagic

AdminLinks
UnitTestsList

Bugs: list open list all report

Maps is the MediaWiki extension that provides the ability to visualize geographic data with dynamic, JavaScript based, mapping API's such as Google Maps and OpenLayers in your wiki pages. It has built-in support for geocoding, displaying maps, displaying markers and geospatial shapes, adding pop-ups, and more. Maps allows extensive customization of your maps, either per map, or via a general setting affecting all maps on your wiki.

Contents

[edit] Requirements

The latest Maps requires:

Alternatively you can get Maps 1.0.5 which requires:

[edit] Download

Quick link: Download Maps 2.0.1 (.zip file)

You can download the extension directly from the MediaWiki source code repository (browse code). You can get:

One of the extensions tags

Not all extensions have tags. Some extensions have tags for each release, in which case those tags have the same stability as the release. To download a tag

  • Go to the tags list
  • Click the name of the tag you want to download
  • Click "snapshot"
The latest version of one of the extensions branches

Each extension has a master branch containing the latest code (might be unstable). Extensions can have further branches as well.

  • Go to the branches list
  • Click the branch name
  • Click "snapshot"
A snapshot made during the release of a MediaWiki version.

This might be unstable and is not guaranteed to work with the associated MediaWiki version.

After you've got the code, save it into the extensions/Maps directory of your wiki.

If you are familiar with git and have shell access to your server, you can obtain the extension, with all its tags and branches, as follows:

cd extensions
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Maps.git


[edit] Installation

Once you have downloaded the code, place the Maps directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

# Maps
require_once( "$IP/extensions/Maps/Maps.php" );

[edit] Documentation and examples

Since MediaWiki.org does not have Maps installed the usage documentation is placed on semantic-mediawiki.org, where live examples work and use can be made of the automatic documentation features of Maps.

Go to the Maps documentation or the Maps examples.

[edit] Gallery

Some screenshots of inline maps using the display map and display points parser hooks:

[edit] Development

Major refactoring is currently going on at the 3.0.x branch.

[edit] Sites that use Maps

Are you using Maps? Then be sure to add your wiki to the top of this list, and feel free to link your favorite Maps-using articles!

[edit] External links

[edit] See also