Extension:DataMaps: Difference between revisions
Appearance
Content deleted Content added
work in progress page |
|||
| Line 39: | Line 39: | ||
: Identifier of the namespace that all maps will live in. |
: Identifier of the namespace that all maps will live in. |
||
: '''Default:''' <code>managed</code> (uses built-in namespace) |
: '''Default:''' <code>managed</code> (uses built-in namespace) |
||
;$wgDataMapsCaching |
|||
: Associative array of settings: |
|||
:; type |
|||
:: '''Default:''' <code>CACHE_ANYTHING</code> |
|||
:; ttl |
|||
:: '''Default:''' <code>86400</code> (1 day) |
|||
:; ttlExtensionThreshold |
|||
:: '''Default:''' <code>43200</code> (12 hours) |
|||
:; ttlExtensionValue |
|||
:: '''Default:''' <code>57600</code> (16 hours) |
|||
;$wgDataMapsDefaultApiMarkerBatch |
|||
: '''Default:''' <code>2500</code> |
|||
;$wgDataMapsMaxApiMarkerBatch |
|||
: '''Default:''' <code>5000</code> |
|||
;$wgDataMapsMarkerParserExpansionLimit |
|||
: '''Default:''' <code>800</code> |
|||
;$wgDataMapsUseInProcessParserCache |
|||
: '''Default:''' <code>true</code> |
|||
;$wgDataMapsDefaultFeatures |
;$wgDataMapsDefaultFeatures |
||
: Associative array which controls whether features are enabled by default on maps. |
: Associative array which controls whether features are enabled by default on maps. |
||
:;ShowCoordinates |
|||
: |
|||
:: Self-explanatory. |
|||
* <code>ShowCoordinates</code> ''(default: <code>true</code>)'': self-explanatory. |
|||
:: '''Default:''' <code>true</code> |
|||
| ⚫ | |||
:; ShowLegendAlwaysAbove |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
:: '''Default:''' <code>false</code> |
|||
| ⚫ | |||
:; RequireCustomMarkerIDs |
|||
| ⚫ | |||
:: '''Default:''' <code>false</code> |
|||
:; Search |
|||
| ⚫ | |||
:: '''Default:''' <code>false</code> |
|||
:; SortChecklistsByAmount |
|||
| ⚫ | |||
:: '''Default:''' <code>true</code> |
|||
;$wgDataMapsEnableCreateMap |
|||
: Enables visual map creation dialog to streamline the process for users. |
|||
: '''Default:''' <code>true</code> |
|||
;$wgDataMapsReportTimingInfo |
|||
: '''Default:''' <code>false</code> |
|||
;$wgDataMapsAllowExperimentalFeatures |
|||
: Enables any experimental features bundled in the release but disabled by default. |
|||
: '''Default:''' <code>false</code> |
|||
[[Category:Map extensions]] |
[[Category:Map extensions]] |
||
Revision as of 14:15, 8 November 2022
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 |
|
|
| Licence | GNU General Public License 2.0 or later |
| Download | GitHub:
Note: |
| 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
DataMapsin yourextensions/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
$wgDataMapsNamespaceIdto its ID.
Done – Navigate to Special:Versionon 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) - $wgDataMapsCaching
- Associative array of settings:
- type
- Default:
CACHE_ANYTHING - ttl
- Default:
86400(1 day) - ttlExtensionThreshold
- Default:
43200(12 hours) - ttlExtensionValue
- Default:
57600(16 hours)
- $wgDataMapsDefaultApiMarkerBatch
- Default:
2500 - $wgDataMapsMaxApiMarkerBatch
- Default:
5000 - $wgDataMapsMarkerParserExpansionLimit
- Default:
800 - $wgDataMapsUseInProcessParserCache
- Default:
true - $wgDataMapsDefaultFeatures
- Associative array which controls whether features are enabled by default on maps.
- ShowCoordinates
- Self-explanatory.
- Default:
true - ShowLegendAlwaysAbove
- Displays the legend above the map (mobile style) on all screens.
- Default:
false - RequireCustomMarkerIDs
- Requires every marker to have a unique identifier specified (for permanent links or collectible identification).
- Default:
false - Search
- Enables marker search in top-left corner of the map.
- Default:
false - SortChecklistsByAmount
- Sorts collectible marker groups by number of markers associated.
- Default:
true
- $wgDataMapsEnableCreateMap
- Enables visual map creation dialog to streamline the process for users.
- Default:
true - $wgDataMapsReportTimingInfo
- Default:
false - $wgDataMapsAllowExperimentalFeatures
- Enables any experimental features bundled in the release but disabled by default.
- Default:
false
Categories:
- Beta status extensions
- ContentHandler extensions
- Parser function extensions
- ParserFirstCallInit extensions
- ContentHandlerDefaultModelFor extensions
- CodeEditorGetPageLanguage extensions
- CanonicalNamespaces extensions
- GPL licensed extensions
- Extensions in GitHub version control
- All extensions
- Map extensions
- Leaflet extensions
- Mapping
