Title: Advanced Custom Fields: Leaflet Field
Author: jensnilsson
Published: <strong>10 ເມສາ 2013</strong>
Last modified: 4 ພະຈິກ 2014

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/advanced-custom-fields-leaflet-field/assets/banner-772x250.
png?rev=697376)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/advanced-custom-fields-leaflet-field_dfd8ce.
svg)

# Advanced Custom Fields: Leaflet Field

 ໂດຍ [jensnilsson](https://profiles.wordpress.org/jensnilsson/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/advanced-custom-fields-leaflet-field.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/advanced-custom-fields-leaflet-field/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/advanced-custom-fields-leaflet-field/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/advanced-custom-fields-leaflet-field/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/advanced-custom-fields-leaflet-field/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/)

## ຄຳອະທິບາຍ

This plugin adds a [Leaflet](http://leafletjs.com) map field to the [Advanced Custom Fields](http://www.advancedcustomfields.com/)
plugin. Use it to display maps with markers, lines and shapes along with your posts
and pages.

 * Add multiple markers with popups to the map.
 * Draw polylines, polygons and rectangles.
 * The field stores both your zoom-level and viewport location.
 * Function to render the map in your theme is included in the plugin: `<?php the_leaflet_field('
   my_leaflet_field' ); ?>`, just plug and play!
 * Supports ACF4 and ACF5 (Pro)

### Instructions

A rendering function is provided in the plugin. If you want to use it all you have
to do is use `the_leaflet_field( 'my_leaflet_field' );` where you want to render
the map.

### To do

Things I plan to add to the plugin:

 1. Adding images to popups.
 2. Provide a tool for importing GeoJSON-structured data into the field.

### GitHub

If you want the latest development version of this plugin it is available over at
my [github repository](https://github.com/jensjns/acf-leaflet-field/). The github
repository will always have the latest code and may occasionally be broken and not
work at all.

## ພາບໜ້າຈໍ

[⌊Leaflet field with markers, a popup, a polyline and a polygon.⌉⌊Leaflet field 
with markers, a popup, a polyline and a polygon.⌉[

Leaflet field with markers, a popup, a polyline and a polygon.

[⌊Settings for the Leaflet field.⌉⌊Settings for the Leaflet field.⌉[

Settings for the Leaflet field.

## ການຕິດຕັ້ງ

 1. Upload `advanced-custom-fields-leaflet-field` to the `/wp-content/plugins/` directory
 2. Make sure you have [Advanced Custom Fields](http://www.advancedcustomfields.com/)
    installed and activated
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Add a Leaflet field to a ACF field group and save
 5. The field is now ready for use

## ຄຳຖາມທີ່ພົບເລື້ອຍ

  I activated the plugin but nothing cool happened ;(

This is not a standalone plugin, you need to have [Advanced Custom Fields](http://www.advancedcustomfields.com/)
installed and activated for it to work.

## ການຣີວິວ

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

### 󠀁[Un jeu d’enfant – Excellent – Merci](https://wordpress.org/support/topic/un-jeu-denfant-excellent-merci/)󠁿

 [coudenhov](https://profiles.wordpress.org/coudenhov/) 29 ມີນາ 2019

WordPress 5.1 – ACF Pro 5.7 Je veux vraiment remercier l’auteur de cet Advanced 
Custom Field for ACF. D’une simplicité exceptionnelle : aucun besoin de créer des
fonctions compliquées, juste à insérer le code php dans la page. De plus ses possibilités
d’ajouter des points pour marquer les lieux, des lignes pour les entourer… Waouh
Really thanks for this awesome ACF field. Laurent de Coudenhove

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

### 󠀁[Not working](https://wordpress.org/support/topic/not-working-2644/)󠁿

 [Mladen Gradev](https://profiles.wordpress.org/joe8104/) 3 ກັນຍາ 2018

Yep, not working, blank field.

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

### 󠀁[Outdated and broken](https://wordpress.org/support/topic/outdated-and-broken/)󠁿

 [TDR](https://profiles.wordpress.org/tdr/) 13 ສິງຫາ 2018

Shame it isn’t working. Would be a killer alternative for the now paid google maps

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

### 󠀁[Still Works](https://wordpress.org/support/topic/still-works-111/)󠁿

 [tschopo](https://profiles.wordpress.org/tschopo/) 21 ມິຖຸນາ 2017

It still works. -1 star for no continued developement. I have Problems showing the
map in an ajax modal window.

 [ ອ່ານການຣີວິວທັງໝົດ 7 ລາຍການ ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Advanced Custom Fields: Leaflet Field” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນ
ຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “Advanced Custom Fields: Leaflet Field” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields-leaflet-field)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/advanced-custom-fields-leaflet-field/),
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/advanced-custom-fields-leaflet-field/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/advanced-custom-fields-leaflet-field/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/advanced-custom-fields-leaflet-field/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.2.1

 * Fixed a bug where polylines, polygons and rectangles wouldn’t be rendered to 
   the map when no markers were present on the map.

#### 1.2.0

 * More polished UI.
 * Added support for drawing polylines, polygons and rectangles.
 * Added OpenStreetMap Black and White as Map Provider option.
 * Fixed a bug where a popup couldn’t be opened after it had been opened once.

#### 1.1.2

 * 4.3.9 Compatibility patch

#### 1.1.1

 * Added support for ACF 5 (PRO)

#### 1.1.0

 * Added support for OpenStreetMap as tile-provider. This will be the new default
   tile-provider.
 * Switched to geoJson for data-structure.

#### 1.0.0

 * Migrated the plugin into field-template for v3 & v4 support.
 * New tool: Locate tool.
 * Fixed repeater-support.

#### 0.2.0

 * Added support for binding popups to markers.

#### 0.1.0

 * Release

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.2.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **12 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **80+**
 *  ເວີຊັນ WordPress ** 3.4 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.0.38**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/advanced-custom-fields-leaflet-field/)
 * ແທັກ
 * [acf](https://lo.wordpress.org/plugins/tags/acf/)[acf4](https://lo.wordpress.org/plugins/tags/acf4/)
   [admin](https://lo.wordpress.org/plugins/tags/admin/)[advanced custom fields](https://lo.wordpress.org/plugins/tags/advanced-custom-fields/)
   [custom fields](https://lo.wordpress.org/plugins/tags/custom-fields/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/advanced-custom-fields-leaflet-field/advanced/)

## ການໃຫ້ຄະແນນ

 3.1 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 3 ລາຍການ     ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 3 ລາຍການ     ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/?filter=1)

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/advanced-custom-fields-leaflet-field/)