开发者 | codewahoo |
---|---|
更新时间 | 2015年12月19日 05:15 |
PHP版本: | 3.8 及以上 |
WordPress版本: | 4.4 |
版权网址: | 版权信息 |
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.
License
This plugin is licensed under the GPLv2. See http://www.gnu.org/licenses/gpl-2.0.html
/wp-content/plugins/
directory)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 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. ` `
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.
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.
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.