Title: ACF: Google Map Extended
Author: CodeFish
Published: <strong>12. studenoga 2015.</strong>
Last modified: 18. prosinca 2015.

---

Pretraga dodataka

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

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

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

# ACF: Google Map Extended

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

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

 * [Detalji](https://hr.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/advanced-custom-fields-google-map-extended/#developers)

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

## Opis

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.

#### Kompatibilnost

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.

#### Prijevodi

The plugin is translated to:

 *  Francuski
 * Njemački
 * Nizozemska
 * Ruski
 * Ukrajinski

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.

#### Licenca

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

## Snimke zaslona

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

## Instalacija

 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. Aktivirajte dodatak kroz izbornik ‘Dodaci’ u WordPressu
 4. Make sure to also have [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
    plugin installed.

## ČPP

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

## Recenzije

![](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. svibnja 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/) 09. prosinca 2016. 1 odgovor

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/) 03. rujna 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/) 03. rujna 2016. 4 odgovora

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/) 03. rujna 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/) 03. rujna 2016.

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

 [ Pročitajte svih 6 recenzija ](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/reviews/)

## Suradnici i Programeri

“ACF: Google Map Extended” je softver otvorenog koda. Sljedeće osobe su doprinijele
ovom dodatku.

Suradnici

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

[Prevedite “ACF: Google Map Extended” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields-google-map-extended)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/advanced-custom-fields-google-map-extended/),
pogledajte [SVN spremište](https://plugins.svn.wordpress.org/advanced-custom-fields-google-map-extended/)
ili se pretplatite na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/advanced-custom-fields-google-map-extended/)
od [RSS](https://plugins.trac.wordpress.org/log/advanced-custom-fields-google-map-extended/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### 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**
 *  Zadnje ažuriranje **prije 10 godina**
 *  Aktivnih instalacija **900+**
 *  WordPress inačica ** 3.8 ili viša **
 *  Testirano do **4.4.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/advanced-custom-fields-google-map-extended/)
 * Oznaka
 * [acf](https://hr.wordpress.org/plugins/tags/acf/)[admin](https://hr.wordpress.org/plugins/tags/admin/)
   [advanced-custom-field](https://hr.wordpress.org/plugins/tags/advanced-custom-field/)
   [custom field](https://hr.wordpress.org/plugins/tags/custom-field/)[map field](https://hr.wordpress.org/plugins/tags/map-field/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/advanced-custom-fields-google-map-extended/advanced/)

## Ocjena

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

## Suradnici

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

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/advanced-custom-fields-google-map-extended/)