Extension:DataMaps

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

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

MediaWiki support plan
Main development and testing is done on the same version of MediaWiki that wiki.gg (1.39 as of December 2022) is running or planning to switch to (1-3 months ahead). Older versions may receive limited supported when requested.

Configuration parameters

 * $wgDataMapsNamespaceId
 * Identifier of the namespace that all maps will live in.
 * Default:  (uses built-in namespace)


 * $wgDataMapsApiCaching
 * Since version 0.14.0.
 * Associative array of settings controlling API output caching.
 * type
 * Type of cache to use.
 * Default:
 * ttl
 * Expiry time (in seconds) of cached API responses.
 * Default:  (1 day)
 * ttlExtensionThreshold
 * Remaining time-to-live (in seconds) of cached API responses needed for the time to be extended.
 * Default:  (12 hours)
 * ttlExtensionValue
 * Number of seconds to extend a soon-to-be-expired cached API response's life.
 * Default:  (16 hours)


 * $wgDataMapsDefaultApiMarkerBatch
 * Number of markers the API will return by default in a single response.
 * Default:


 * $wgDataMapsMaxApiMarkerBatch
 * Maximum number of markers an API client can request.
 * Default:


 * $wgDataMapsMarkerParserExpansionLimit
 * Parser expansion limit used when parsing marker labels and descriptions.
 * Default:


 * $wgDataMapsUseInProcessParserCache
 * If set to true, API will use a least recently used cache (in memory of the process handling the request) when processing markers (when uncached).
 * Default:


 * $wgDataMapsDefaultFeatures
 * Associative array which controls whether features are enabled by default on maps.
 * ShowCoordinates
 * Self-explanatory.
 * Default:
 * RequireCustomMarkerIDs
 * Requires every marker to have a unique identifier specified (for permanent links or collectible identification).
 * Default:
 * Search
 * Enables marker search in top-left corner of the map.
 * Default:
 * SortChecklistsByAmount
 * Sorts collectible marker groups by number of markers associated.
 * Default:


 * $wgDataMapsFullLinksUpdateBudget
 * Since version 0.14.0.
 * Controls total time (in seconds) that can be spent on parsing marker wikitext to perform complete links table updates.
 * Set to `0` to disable.
 * Default:


 * $wgDataMapsEnableCreateMap
 * Enables visual map creation dialog to streamline the process for users.
 * Since version 0.13.2.
 * Default:


 * $wgDataMapsEnableVisualEditor
 * Enables visual map editor to streamline the process for users.
 * This does not use the VisualEditor extension.
 * Since version 0.14.0.
 * Default:


 * $wgDataMapsReportTimingInfo
 * Includes timing information in API output for profiling purposes.
 * Default:


 * $wgDataMapsAllowExperimentalFeatures
 * Enables any experimental features bundled in the release but disabled by default.
 * Default: