No categories assigned

OpenLayers

Revision as of 14:36, 7 December 2017 by Lsireta (talk | contribs)

The OpenLayers extension makes the OpenLayers module available.

Installation[<a href="https://www.mediawiki.org/w/index.php?title=Extension:OpenLayers&action=edit&section=1" title="Edit section: Installation">edit source]

  • Download and place the file(s) in a directory called OpenLayers in your extensions/ folder.
<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:

Attachments

Discussions