Extension:OpenLayers

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎asturianu • ‎polski • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
OpenLayers
Release status: stable
Description Makes OpenLayers module available
Author(s) Paladox, Yaron Koren
Latest version 1.0.0 (2016-01-21)
MediaWiki 1.23+
PHP 5.4+
Database changes No
License GNU General Public License 2.0 or later
Download
Translate the OpenLayers extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

The OpenLayers extension makes the OpenLayers module available.

Installation

  • Download and place the file(s) in a directory called OpenLayers in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'OpenLayers' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'OpenLayers' );, you need to use:

require_once "$IP/extensions/OpenLayers/OpenLayers.php";