Title: ACF: Google Map Extended
Author: CodeFish
Published: <strong>12 ພະຈິກ 2015</strong>
Last modified: 18 ທັນວາ 2015

---

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

![](https://ps.w.org/advanced-custom-fields-google-map-extended/assets/banner-772x250.
jpg?rev=1285012)

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

![](https://ps.w.org/advanced-custom-fields-google-map-extended/assets/icon-256x256.
png?rev=1285012)

# ACF: Google Map Extended

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

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

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

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

## ຄຳອະທິບາຍ

This plugin creates a new field for [Advanced Custom Fields (ACF)](https://wordpress.org/plugins/advanced-custom-fields/)

extending the functionality of the built-in Google Map field with several handy 
features:

 * Saves map center. You can center your maps wherever you want and indicate that
   you want to save that place as map center. This can be handy, if you want your
   front-end map to show some specific place in the center of the map (not necessary
   the location marker).
 * Saves zoom level.
 * Disables (optionally) map zooming with a scrollwheel. Sometimes you can get annoyed
   with your maps starting to zoom, when you scroll the post in the admin area. 
   This feature comes handy here.
 * Shows location coordinates. It is easy to get any place’s location coordinates(
   latitude and longitude) with this plugin by setting a marker to the place you
   need using user friendly map interface.
 * Compatible with the data format of the Google Map field coming with ACF. See 
   F.A.Q. for details.
 * Saves all maps shown at a page in the global array. This is a bonus for programmers.
   See F.A.Q. for details.

The plugin makes use of the Google Maps API version 3.
 The plugin doesn’t use an
API key and is therefore operating under the [restrictions of the free Google Maps API](https://developers.google.com/maps/faq#usage_pricing),
which should be more than enough for most websites.

#### Compatibility

This ACF field type is compatible with:

 * ACF 4
 * ACF 5 (PRO version)
 * Google Map field coming with ACF 4/5. See F.A.Q.

#### ​ການ​ແປ

The plugin is translated to:

 * French
 * German
 * Netherlands
 * Russian
 * Ukrainian

There is a POT file under the `lang` directory holding all translation strings, 
so it should be pretty easy to translate to other languages.

#### ເວັບໄຊ

http://code.fish

#### Please Vote and Enjoy

Your votes really make a difference! Thanks.

#### ລາຍເຊັ່ນ

This plugin is licensed under the GPLv2. See http://www.gnu.org/licenses/gpl-2.0.
html

## ພາບໜ້າຈໍ

 * [[
 * The extended options the plugin provides in the back-end.
 * [[
 * Field options include optional map zooming disabling with mouse scrollwheel.
 * [[
 * The plugin in action within a repeater field in the backend.

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

 1. Download [the source](https://github.com/codewahoo/acf-gme/archive/master.zip)
 2. Extract the archive into the plugin folder in your WordPress installation (usually`/
    wp-content/plugins/` directory)
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Make sure to also have [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
    plugin installed.

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

  Q. How do I use this plugin?

**A.** This plugin mimics the behavior of the Google Map field coming with the woderful
Advanced Custom Fields plugin made by Elliot Condon.
 Make sure you read [the documentation](http://www.advancedcustomfields.com/resources/google-map/)
for the original field first. In order to benefit from the extended functionality
set the field type to **Google Map Extended**, when you create a new custom field
with ACF. If you do everything correctly, you will see a togglable ‘Map data’ label
below your map when editting a post/page with your custom fields.

To get the map data in the front-end code, simply request the field value with ACF
API call and you will get the latitude, longitude, address, map center and map zoom.

    ```
    <?php
      $values = get_field('*****FIELD_NAME*****');
      $lat = $values['lat'];
      $lng = $values['lng'];
      $address = $values['address'];
      $map_center_lat = $values['center_lat'];
      $map_center_lng = $values['center_lng'];
      $map_zoom = $values['zoom'];
    ?>
    ```

  Q. Can I upgrade the Google Map fields I had created using just ACF with this 
plugin?

**A.** Yes, you can. First, you should delete the built-in Google Map fields you
want to upgrade in the corresponding field groups under Custom Fields.
 Then you
should create replacement Google Map Extended fields with **the same _Field Name_**.
Once done and field group saved, you can refresh the back-end pages making use of
ACF Google Map fields and enjoy the extended functionality.

  Q. Can I change the map’s look/behavior in the back-end using JavaScript?

**A.** Yes. All maps are saved to the global array called acf_gme_maps. The array
contains instances of acf_gme class and is indexed with the field IDs. You can use
all class methods or get direct access to the map through _map_ property.
 acf_gme[‘
acf-field-acf_extended_map-564232b63c93e’].map.setZoom(10) This code will set the
map’s zoom to 10.

  Q. How do I get the plugin to show a map on the website?

**A.** You should do some front-end coding to do that, as this plugin (likewise 
Advanced Custom Fields itself) gives you the back-end features only and stores the
data in your website’s database.
 Please see [code examples at ACF website](http://www.advancedcustomfields.com/resources/google-map/#code-examples).

## ການຣີວິວ

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

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

 [AkaruMaster](https://profiles.wordpress.org/akarumaster/) 26 ພຶດສະພາ 2017

Not working now – security google map problem?

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

### 󠀁[IT needs API update, not working right now.](https://wordpress.org/support/topic/it-needs-api-update-not-working-right-now/)󠁿

 [gruntek](https://profiles.wordpress.org/gruntek/) 9 ທັນວາ 2016 1 ການຕອບກັບ

Google now require API. Your plugin need an update.

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

### 󠀁[Almost there.](https://wordpress.org/support/topic/almost-there-27/)󠁿

 [broodi](https://profiles.wordpress.org/broodi/) 3 ກັນຍາ 2016

Had to uninstall because it throws javascript errors. This killed the ability to
upload media OR change the permalink. Too bad this is a cool plugin. I’ll keep an
eye-out for an update.

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

### 󠀁[The must-have of the ACF Google Maps Field](https://wordpress.org/support/topic/the-must-have-of-the-acf-google-maps-field/)󠁿

 [WPO+](https://profiles.wordpress.org/ivanpr/) 3 ກັນຍາ 2016 4 ການຕອບກັບ

Great plugin. Thank you. I’ve being ‘Listening’ the Google Zoom events and updating
the additional Map Zoom select drop-box previously, but your solution is so much
better. Thank you!

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

### 󠀁[A More Powerful ACF Google Maps Field](https://wordpress.org/support/topic/a-more-powerful-acf-google-maps-field/)󠁿

 [Kevin Hoffman](https://profiles.wordpress.org/kevinwhoffman/) 3 ກັນຍາ 2016

Fantastic plugin that adds much-needed functionality to the ACF Google Map field.
I appreciate that the array of key-value pairs is saved in exactly the same way 
as the default Google Map field, but with the addition of values for zoom, center_lat,
and center_lng: array( 'address' => '', 'lat' => '', 'lng' => '', 'zoom' => '', '
center_lat' => '', 'center_lng' => '', ) Ultimately this data allows you to recreate
the exact Google Map that the user creates in WP Admin on the front-end of your 
site – something that simply isn’t possible with the default ACF Google Map field.
Keep up the great work!

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

### 󠀁[Does what it say](https://wordpress.org/support/topic/does-what-it-say-3/)󠁿

 [ThemeChimps](https://profiles.wordpress.org/themechimps/) 3 ກັນຍາ 2016

I was looking exactly how to save map zooming and here it comes. Nice!

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

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

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

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

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

[ແປ “ACF: Google Map Extended” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields-google-map-extended)

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

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

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

#### 1.0.1

 * Fix minor UI bugs
 * Language: Updated POT file
 * Language: Updated Netherlands translation
 * Language: Updated Russian translation
 * Language: Updated Ukrainian translation
 * Language: Added French translation
 * Language: Added German translation

#### 1.0.0

 * Initial Release

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

 *  ເວີຊັນ **1.0.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **10 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **800+**
 *  ເວີຊັນ WordPress ** 3.8 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.4.34**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/advanced-custom-fields-google-map-extended/)
 * ແທັກ
 * [acf](https://lo.wordpress.org/plugins/tags/acf/)[admin](https://lo.wordpress.org/plugins/tags/admin/)
   [advanced-custom-field](https://lo.wordpress.org/plugins/tags/advanced-custom-field/)
   [custom field](https://lo.wordpress.org/plugins/tags/custom-field/)[map field](https://lo.wordpress.org/plugins/tags/map-field/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/advanced-custom-fields-google-map-extended/advanced/)

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

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

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

[Your review](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/)

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

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

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

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

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