Title: Extensions for Leaflet Map
Author: hupe13
Published: <strong>2021 年 3 月 23 日</strong>
Last modified: 2026 年 6 月 9 日

---

搜索插件

![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)

# Extensions for Leaflet Map

 作者：[hupe13](https://profiles.wordpress.org/hupe13/)

[下载](https://downloads.wordpress.org/plugin/extensions-leaflet-map.5.2.zip)

 * [详情](https://cn.wordpress.org/plugins/extensions-leaflet-map/#description)
 * [评价](https://cn.wordpress.org/plugins/extensions-leaflet-map/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/extensions-leaflet-map/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/extensions-leaflet-map/#developers)

 [支持](https://wordpress.org/support/plugin/extensions-leaflet-map/)

## 描述

Extends the WordPress Plugin [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
with Leaflet Plugins and other functions.

### Functions

 * Create an elevation chart profile of a track. There are also acceleration, slope,
   speed and tempo chart profiles. You can also place multiple tracks on one map.
 * By default Leaflet Map uses tiles from openstreetmap.org or from the tile servers
   you configured. You can use more and switch between them.
 * Many markers on a map become confusing. You can cluster and shape them.
 * You can use Awesome markers.
 * You can group the elements on the map by criteria and show/hide them.
 * Create a “featured map”.
 * Create an overview map with geo-locations provided in the pages and posts.
 * Get a tooltip when hovering over an element.
 * You can design a choropleth map.
 * You can display the map in fullscreen mode.
 * Reset the map.
 * Gesture handling
 * Manage your files for Leaflet Map.
 * Help to migrate from [WP GPX Maps](https://wordpress.org/plugins/wp-gpx-maps/).
 * and more functions.

### Included Leaflet Plugins

#### Leaflet Plugins

 * [leaflet-elevation](https://github.com/Raruto/leaflet-elevation): A Leaflet plugin
   that allows to add elevation profiles using d3js.
 * [Leaflet.GeometryUtil](https://github.com/makinacorpus/Leaflet.GeometryUtil)
 * [Leaflet.i18n](https://github.com/yohanboniface/Leaflet.i18n): Internationalisation
   module for Leaflet plugins.
 * [leaflet-rotate](https://github.com/Raruto/leaflet-rotate): A Leaflet plugin 
   that allows to add rotation functionality to map tiles
 * [Leaflet.AlmostOver](https://github.com/makinacorpus/Leaflet.AlmostOver): This
   plugin allows to detect mouse click and overing events on lines, with a tolerance
   distance.
 * [@tmcw/togeojson](https://www.npmjs.com/package/@tmcw/togeojson): Convert KML,
   GPX, and TCX to GeoJSON.
 * [D3](https://github.com/d3/d3): Data-Driven Documents
 * [Leaflet-providers](https://github.com/leaflet-extras/leaflet-providers): An 
   extension that contains configurations for various tile providers.
 * [Leaflet.Control.Opacity](https://github.com/dayjournal/Leaflet.Control.Opacity):
   Makes multiple tile layers transparent.
 * [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster): Provides
   Beautiful Animated Marker Clustering functionality.
 * [Leaflet.MarkerCluster.PlacementStrategies](https://github.com/adammertel/Leaflet.MarkerCluster.PlacementStrategies):
   Styling Markerclusters.
 * [Leaflet.ExtraMarkers](https://github.com/coryasilva/Leaflet.ExtraMarkers): Shameless
   copy of Awesome-Markers with more shapes and colors.
 * [Leaflet List Markers](https://github.com/hupe13/leaflet-list-markers): A Leaflet
   Control for listing visible markers in the map.
 * [Leaflet.FeatureGroup.SubGroup](https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup):
   Grouping of Leaflet elements by options and features.
 * [Leaflet.Control.Layers.Tree](https://github.com/jjimenezshaw/Leaflet.Control.Layers.Tree):
   A Tree Layers Control for Leaflet.
 * [Leaflet Control Search](https://github.com/stefanocudini/leaflet-search): Search
   Markers/Features location by option or custom property.
 * [leaflet-choropleth](https://github.com/timwis/leaflet-choropleth): Choropleth
   plugin for Leaflet (color scale based on value).
 * [leaflet.zoomhome](https://github.com/torfsen/leaflet.zoomhome): Provides a zoom
   control with a “Home” button to reset the view.
 * [leaflet.fullscreen](https://github.com/brunob/leaflet.fullscreen): Simple plugin
   for Leaflet that adds fullscreen button to your maps.
 * [Leaflet.GestureHandling](https://github.com/Raruto/leaflet-gesture-handling):
   A Leaflet plugin that allows to prevent default map scroll/touch behaviours.
 * [turf](https://github.com/Turfjs/turf): Advanced geospatial analysis for browsers
   and Node.js

#### Included Font

 * [Font Awesome 6](https://fontawesome.com/download)

#### Documentation

Detailed documentation and examples in [German](https://leafext.de/) and [English](https://leafext.de/en/).

#### Thank you

Many thanks to everyone who found errors and provided ideas for new functions.

## 屏幕截图

[⌊Track with elevation and speed profiles⌉⌊Track with elevation and speed profiles⌉[

Track with elevation and speed profiles

[⌊ExtraMarkers⌉⌊ExtraMarkers⌉[

ExtraMarkers

[⌊Grouping and Tree View⌉⌊Grouping and Tree View⌉[

Grouping and Tree View

[⌊Markercluster PlacementStrategies⌉⌊Markercluster PlacementStrategies⌉[

Markercluster PlacementStrategies

[⌊Tooltip on Hover⌉⌊Tooltip on Hover⌉[

Tooltip on Hover

[⌊Manage Leaflet Map files⌉⌊Manage Leaflet Map files⌉[

Manage Leaflet Map files

## 安装

 * First you need to install and configure the plugin [Leaflet Map](https://wordpress.org/plugins/leaflet-map/).
 * Then install this plugin.
 * Go to Settings – Leaflet Map – Extensions for Leaflet Map and get documentation
   and settings options.

## 常见问题

### Is there a widget or other support for the editor?

 * Unfortunately both plugins – Leaflet Map and Extensions for Leaflet Map – only
   work with shortcodes.
 * If you have any questions please ask in the [forum](https://wordpress.org/support/plugin/extensions-leaflet-map/).

### My gpx file is not displayed!

 * Is the URL correct?
 * Does the webserver return the correct mime type (application/gpx+xml)?
    Put in
   your `.htaccess`: `AddType application/gpx+xml gpx RewriteRule .*\.gpx$ - [L,
   T=application/gpx+xml]

### It doesn’t work!

 * Are you using any caching plugin? Try to exclude at least these js files from
   caching:
    - /wp-content/plugins/extensions-leaflet-map/leaflet-plugins/leaflet-elevation-*
    - /wp-content/plugins/extensions-leaflet-map/leaflet-plugins/leaflet-gesture-
      handling-*
 * Are you using any plugin to comply with the GDPR/DSGVO? There might be a problem
   with that.
 * If you use a caching plugin and a GDPR/DSGVO plugin you need to distinguish whether
   the user has accepted the cookie or not.
 * Please ask in the [forum](https://wordpress.org/support/plugin/extensions-leaflet-map/)!

### Apropos GDPR/DSGVO

 * If you need a plugin for this try [DSGVO snippet for Leaflet Map and its Extensions](https://wordpress.org/plugins/dsgvo-leaflet-map/).
 * If you use [Complianz | GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
   see [here](https://complianz.io/leaflet-maps/).

## 评价

![](https://secure.gravatar.com/avatar/2c1434dab19df1614b0c6abdc3a105c6a5828f691a0acbe425d21f991c995eb0?
s=60&d=retro&r=g)

### 󠀁[Amazing](https://wordpress.org/support/topic/amazing-4241/)󠁿

 [willpom](https://profiles.wordpress.org/willpom/) 2026 年 5 月 30 日

***** Plugin***** Support

![](https://secure.gravatar.com/avatar/85c9e7d5619ccd5088f0d4c716f950290807b3323267499a393fef2e98be0413?
s=60&d=retro&r=g)

### 󠀁[The best support](https://wordpress.org/support/topic/the-best-support-73/)󠁿

 [sanjb](https://profiles.wordpress.org/sanjb/) 2025 年 8 月 22 日

An excellent module with a top support ! Thanks a lot.

![](https://secure.gravatar.com/avatar/11027d12fe62e019b6c6542e2a36921ad2f9d65132d483df19503661e4a3fadc?
s=60&d=retro&r=g)

### 󠀁[Super responsive developer!](https://wordpress.org/support/topic/super-responsive-developer/)󠁿

 [splaquet](https://profiles.wordpress.org/splaquet/) 2025 年 8 月 4 日

One day I asked a question about one of the Leaflet plugins, the next day he completed
integrating and included customizations! I’ve had some responsive developers, but
this was pretty close to a “best ever” ranking!

![](https://secure.gravatar.com/avatar/b7f269408c579b2d187b9cf81ae5c48269d5218c4a3af453c46f49b160532ca3?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-3450/)󠁿

 [pepcapdewp](https://profiles.wordpress.org/pepcapdewp/) 2024 年 3 月 27 日

I used to display my cycling tracks using Leaflet and several extensions, but this
plugin makes the work way easier!

![](https://secure.gravatar.com/avatar/4a4f15b180e4a0fbb0f21a2ff66db7fbb19bf6ce654455648b5254ededb47415?
s=60&d=retro&r=g)

### 󠀁[Incredible support!](https://wordpress.org/support/topic/incredible-support-133/)󠁿

 [Tomek](https://profiles.wordpress.org/typ/) 2024 年 1 月 20 日

Incredible support!

![](https://secure.gravatar.com/avatar/05dbc552e036e22669e9e6d8b4d5e3aeb43881753c4805a7b05a46fa5ed82a19?
s=60&d=retro&r=g)

### 󠀁[Great tool with excellent support](https://wordpress.org/support/topic/great-tool-with-excellent-support-2/)󠁿

 [larus-argentatus](https://profiles.wordpress.org/ecce-homo/) 2023 年 10 月 13 
日

The extensions open up lots of loads of useful possibilities for mapping, so a big
big thank you for creating, supporting users and continuing development. Keep up
the excellent work.

 [ 阅读所有24条评价 ](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

## 贡献者及开发者

「Extensions for Leaflet Map」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ hupe13 ](https://profiles.wordpress.org/hupe13/)

「Extensions for Leaflet Map」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/extensions-leaflet-map/contributors)
为本插件所做的贡献。

[帮助将「Extensions for Leaflet Map」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/extensions-leaflet-map)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/extensions-leaflet-map/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/extensions-leaflet-map/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/extensions-leaflet-map/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/extensions-leaflet-map/)。

## 更新日志

### 5.2 / 260609

 * new shortcode: leaflet-geojson-extramarker – a mix of leaflet-geojson and leaflet-
   extramarker
 * fixed XSS in targetmarker
 * improvements on thickbox

### Previous

[Changelog](https://github.com/hupe13/extensions-leaflet-map-github/blob/main/CHANGELOG.md)

## 额外信息

 *  版本 **5.2**
 *  最后更新：**1 周前**
 *  活跃安装数量 **3,000+**
 *  WordPress 版本 ** 6.2 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.2 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/extensions-leaflet-map/) 、 [English (US)](https://wordpress.org/plugins/extensions-leaflet-map/)、
   [German](https://de.wordpress.org/plugins/extensions-leaflet-map/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/extensions-leaflet-map/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/extensions-leaflet-map/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/extensions-leaflet-map)
 * 标签
 * [geojson](https://cn.wordpress.org/plugins/tags/geojson/)[GPX](https://cn.wordpress.org/plugins/tags/gpx/)
   [hover](https://cn.wordpress.org/plugins/tags/hover/)[leaflet](https://cn.wordpress.org/plugins/tags/leaflet/)
   [marker](https://cn.wordpress.org/plugins/tags/marker/)
 *  [高级视图](https://cn.wordpress.org/plugins/extensions-leaflet-map/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  24 条 5 星评价     ](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

## 贡献者

 *   [ hupe13 ](https://profiles.wordpress.org/hupe13/)

## 支持

最近两个月解决的问题：

     总计 3，已解决 2

 [查看支持论坛](https://wordpress.org/support/plugin/extensions-leaflet-map/)