Jump to content

Extension:DataMaps

From mediawiki.org
Revision as of 06:08, 30 September 2022 by Alex44019 (talk | contribs) (work in progress page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
MediaWiki extensions manual
DataMaps
Release status: beta
Implementation ContentHandler , Parser function
Author(s) alex4401 (Alex44019talk)
Latest version 0.12.0
MediaWiki 1.37
PHP >= 8.1
Database changes No
  • $wgEnableFandomPortingTools
  • $wgEnableCreateMap
  • $wgAllowExperimentalFeatures
  • $wgMaxApiMarkerBatch
  • $wgPublicSchemaPath
  • $wgEnableMapLazyLoading
  • $wgUseInProcessParserCache
  • $wgUseCodeMirror
  • $wgMarkerParserExpansionLimit
  • $wgEnableOnWikiFeatureFlags
  • $wgEnableVisualEditor
  • $wgEnableTransclusionAlias
  • $wgEnableLoadMapButton
  • $wgUseCodeEditor
  • $wgApiCaching
  • $wgNamespaceId
  • $wgDefaultApiMarkerBatch
  • $wgFullLinksUpdateBudget
  • $wgReportTimingInfo
Licence GNU General Public License 2.0 or later
Download
Example ARK: Survival Evolved Wiki
Temtem Wiki

The DataMaps extension lets you display interactive maps without additional services.

Installation

  • Download and place the file(s) in a directory called DataMaps in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'DataMaps' );
    
  • Optionally, if you do not want to use the built-in namespace create one and set $wgDataMapsNamespaceId to its ID.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Wikis on wiki.gg can request this extension to be enabled via the platform's representatives.

Configuration parameters

$wgDataMapsNamespaceId
Identifier of the namespace that all maps will live in.
Default: managed (uses built-in namespace)
$wgDataMapsDefaultFeatures
Associative array which controls whether features are enabled by default on maps.
  • ShowCoordinates (default: true): self-explanatory.
  • ShowLegendAlwaysAbove (default: false): displays the legend above the map (mobile style) on all screens.
  • RequireCustomMarkerIDs (default: false): requires every marker to have a unique identifier specified (for permanent links or collectible identification).
  • Search (default: false): enables marker search in top-left corner of the map.
  • SortChecklistsByAmount (default: true): sorts collectible marker groups by number of markers associated.