Here’s a complete guide on adding a map field and retrieving it:
Recently, Google has started charging for the dynamic maps and other APIs. Most (probably all) of the maps features were free in the past but now you have to pay for it.
The pricing guide is a bit complex and recently, few of our clients complained about Google billing and asked us if there is a way to fix it.
There is way to fix it if you want to just use iFrames and embed the Google map address. But you can’t have have design control in that way. Also, you can’t have control on the scale, zoom or markers either.
There is another solution though. Static Maps.
It’s not free but if you think your website(s) is going to make less than 100k Google Maps API requests then you should go for it cause it’s free upto 100k requests every month and Google also gives away $200 in credit for new users.
If you decide to use the Google Maps STatic API and you have ACF field already added to your website, here’s how you can get those fields values.
Get ACF map value in PHP and make a static map
$location = get_field('location');
echo '
';
Get ACF map value in Laravel and make a static map
Read more about the Google Map fields used in the examples above.
ACF API examples Google key Laravel map