扩展:地图

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Maps and the translation is 22% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎asturianu • ‎français • ‎polski • ‎русский • ‎ဖၠုံလိက် • ‎中文 • ‎日本語
Starting with the 4.0 release this extension incorporates all the functionality from the now obsolete Semantic Maps extension.
MediaWiki扩展手册
OOjs UI icon advanced.svg
Maps
发布状态: 稳定版
MapsLogo.png
实现 Parser function, Tag
描述 Allows users to display maps and coordinate data using multiple mapping services.
作者 Jeroen De Dauw and others
最新版本 See RELEASE NOTES
MediaWiki 1.27+
PHP 7.1+
数据更新
Composer mediawiki/maps
许可协议 GNU General Public License 2.0 or later
下载
README
例子 Maps examples
使用的钩子
LanguageGetMagic
AdminLinks
UnitTestsList
翻译Maps扩展如果在translatewiki.net可用
检查使用和版本矩阵。

The extension Maps enables your MediaWiki pages to visualize geographic data with dynamic, JavaScript-based mapping APIs such as Google Maps, OpenStreetMap, and OpenLayers in your wiki pages. It has built-in support for geocoding, displaying maps, displaying markers and geospatial shapes, adding pop-ups, and more and allows extensive customization per map, or for all maps on your wiki. For more information, including installation instructions, see the documentation on GitHub. The semantic part of extension adds semantic capabilities to this extension. This includes the ability to add, edit, aggregate and visualize coordinate data stored through the Semantic MediaWiki extension.

下载与安装

参见安装说明

Usage

See the user documentation.

Gallery of examples

regular

Some screenshots of inline maps created using the display_map parser hook:

semantic

Some screenshots of Semantic MediaWiki :

外部链接

Responsive Skins

The following needs to be added to "MediaWiki:Common.css" to make the maps show correctly in a responsive skin, e.g. the Foreground skin:

/* fix google maps little man in responsive skin */
.gm-style img {
    max-width: none;
}

The reason is that maps are being written directly as a div container and unfortunately the skin's CSS is the entire site for the img attribute.

参见