You are viewing an old version of this page. Return to the latest version.
OpenLayers
-
- Last edited 6 years ago by Lsireta
-
-
- No status information
The OpenLayers extension makes the OpenLayers module available.
Installation[<a href="https://www.mediawiki.org/w/index.php?title=Extension:OpenLayers&action=edit§ion=1" title="Edit section: Installation">edit source]
- Download and place the file(s) in a directory called
OpenLayers
in yourextensions/
folder.
- Add the following code at the bottom of your LocalSettings.php:
<span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'OpenLayers'</span> <span class="p">);</span>
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:
<span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/OpenLayers/OpenLayers.php"</span><span class="p">;</span>
Source: mediawiki