Extension:MultiMaps/zh
![]() | 此擴展目前不再活躍維護! 儘管它可能仍然工作,但任何錯誤報告或功能請求將很可能被忽略。 如果您對承擔開發與維護該擴展的任務工作感興趣,您可以請求自己的存儲庫。 As a courtesy, you may want to contact the author. 或者您應移除該模板,並在頁面的{{Extension/zh }}信息框中將您自己列為擴展的維護人員。 |
![]() 發行狀態: 不再維護 |
|
---|---|
![]() |
|
實現 | 解析器擴充功能 |
描述 | Allows users to display maps and coordinate data using multiple mapping services |
作者 | Pavel Astakhov (pastakhov留言) |
最新版本 | 0.7.3 (2019-06-15) |
MediaWiki | |
PHP | 5.3+ |
資料庫變更 | 否 |
授權條款 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
範例 | osmwiki:Wiki:Maps |
|
|
multimaps |
|
季度下載量 | 6 (Ranked 136th) |
翻譯MultiMaps擴充功能 | |
問題 | 開啟的任務 · 回報錯誤 |
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 地圖 extension.
Documentation
To quickly display a map with all-default settings at position N10° and E10°, write:
{{#multimaps: 10, 10 }}
Example
Example available at:
Installation
- 下載檔案,並將解壓後的
MultiMaps
資料夾移動到extensions/
目錄中。
開發者和代碼貢獻人員應從Git安裝擴展,輸入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiMaps - 將下列程式碼放置在您的LocalSettings.php 的底部:
require_once "$IP/extensions/MultiMaps/MultiMaps.php";
完成 – 在您的wiki上導覽至Special:Version,以驗證已成功安裝擴充功能。
Configuration
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
![]() | 此擴充功能在以下wiki農場/託管網站和/或軟件包中提供: 這不是一份權威名單。 即使某些wiki農場/託管網站和/或軟件包未在這裏列出,它們也可能提供此擴充功能。 請檢查你的wiki農場/託管網站或軟件包以確認提供情況。 |