Extension:MultiMaps
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox. |
MultiMaps Release status: unmaintained |
|
---|---|
Implementation | Parser extension |
Description | Allows users to display maps and coordinate data using multiple mapping services |
Author(s) | Pavel Astakhov (pastakhovtalk) |
Latest version | 0.7.3 (2019-06-15) |
MediaWiki | |
PHP | 5.3+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
Example | osmwiki:Wiki:Maps |
|
|
multimaps |
|
Quarterly downloads | 9 (Ranked 124th) |
Translate the MultiMaps extension | |
Issues | Open tasks · Report a bug |
The MultiMaps extension allows users to display maps and coordinate data using multiple mapping services. Currently available maps are openstreetmap (by service leaflet), google, yandex and they can display markers, lines, polygons, rectangles, circles. Starting in version 0.7.3, it is also possible to assign an additional URL to a service.
If possible, the parameter syntax will be compatible with Maps extension.
Documentation
[edit]To quickly display a map with all-default settings at position N10° and E10°, write:
{{#multimaps: 10, 10 }}
Example
[edit]Example available at:
Installation
[edit]- Download and move the extracted
MultiMaps
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiMaps - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/MultiMaps/MultiMaps.php";
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
[edit]Parameter | Default | Comment |
---|---|---|
$egMultiMaps_AllowGeocoderTests | false
|
|
$egMultiMaps_MapServices | [
'Leaflet',
'Google',
'Yandex',
'Wikimedia' => [
'service' => 'Leaflet',
'attribution' => '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia maps</a> | Map data © <a href="osm.org/copyright">OpenStreetMap contributors</a>',
'source' => 'https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png',
]
];
|
lists all map services provided to the wiki users, first entry is default Since version 0.7.3 it is possible to specify different tile addresses and attribution notices and link them to a service as seen with Wikimedia. The |
$egMultiMaps_DefaultZoom | 14
|
default zoom level of map displays, can be configured individually for each map using zoom parameter
|
$egMultiMaps_SeparatorItems | ';'
|
|
$egMultiMaps_DelimiterParam | '~'
|
|
$egMultiMaps_OptionsSeparator | ','
|
delimiter between latitude and longitude |
$egMultiMaps_CoordinatesSeparator | ':'
|
Geographic coordinates can be a delimited list of values specified in the variable. |
$egMultiMaps_Width | 'auto'
|
default width of map displays, can be configured individually for each map using width parameter
|
$egMultiMaps_Height | '350px'
|
default height of map displays, can be configured individually for each map using height parameter
|
$egMultiMaps_IconAllowFromDirectory | false
|
If true, allow specify an icon for the marker from the directory |
$egMultiMaps_IconPath | "$wgScriptPath/mapicons"
|
provide a source for map icons using a URL |
An overview of OpenStreetMap-based map styles is located at osmwiki:Tile servers. Please always remember to review their usage policy before using.
See also
[edit]This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |