Title: ACF: Google Map Extended
Author: CodeFish
Published: <strong>Novanm 12, 2015</strong>
Last modified: Desanm 18, 2015

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# ACF: Google Map Extended

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

[Download](https://downloads.wordpress.org/plugin/advanced-custom-fields-google-map-extended.zip)

 * [Details](https://hat.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#description)
 * [Reviews](https://hat.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#reviews)
 *  [Installation](https://hat.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#installation)
 * [Development](https://hat.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#developers)

 [Support](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/)

## Description

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.

#### Translations

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.

#### Website

http://code.fish

#### Please Vote and Enjoy

Your votes really make a difference! Thanks.

#### License

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

## Screenshots

 * [[
 * 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.

## Installation

 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.

## FAQ

  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).

## Reviews

![](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/) Me 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/) Desanm 9, 2016 1 reply

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/) Septanm 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/a117707ac1aa441a407dc803328c3663b3ac1e92fd2e8eca72a9cacdc8a274b6?
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/) Septanm 3, 2016 4 replies

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/) Septanm 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/) Septanm 3, 2016

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

 [ Read all 6 reviews ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/)

## Contributors & Developers

“ACF: Google Map Extended” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “ACF: Google Map Extended” into your language.](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields-google-map-extended)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/advanced-custom-fields-google-map-extended/),
check out the [SVN repository](https://plugins.svn.wordpress.org/advanced-custom-fields-google-map-extended/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/advanced-custom-fields-google-map-extended/)
by [RSS](https://plugins.trac.wordpress.org/log/advanced-custom-fields-google-map-extended/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

 *  Version **1.0.1**
 *  Last updated **10 years ago**
 *  Active installations **1,000+**
 *  WordPress version ** 3.8 or higher **
 *  Tested up to **4.4.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/advanced-custom-fields-google-map-extended/)
 * Tags
 * [acf](https://hat.wordpress.org/plugins/tags/acf/)[admin](https://hat.wordpress.org/plugins/tags/admin/)
   [advanced-custom-field](https://hat.wordpress.org/plugins/tags/advanced-custom-field/)
   [custom field](https://hat.wordpress.org/plugins/tags/custom-field/)[map field](https://hat.wordpress.org/plugins/tags/map-field/)
 *  [Advanced View](https://hat.wordpress.org/plugins/advanced-custom-fields-google-map-extended/advanced/)

## Ratings

 3.3 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/?filter=2)
 *  [  2 1-star reviews     ](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)

[See all reviews](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/)