I use the google map field in and evens module, its very handy, but the client wanted to be able to link to the google maps site, if for instance clients wanted to use the directions or just look at a bigger map. I found this bit of code about a year ago and it worked
<a href="https://www.google.com/maps/place/<?php echo $location['address']; ?>" target="_blank">Click here for full map and Directions</a>
It has not stopped working, it use to link to a full map with marker. I assume that google made change. Is there anyway to get this working again?
I kind of got it working, but really I want it to bring up the marker and place name like before.
<a href="https://www.google.com/maps/place/<?php echo $location['address']; ?>/@<?php echo $location['lat'] . ',' . $location['lng']; ?>,16z" target="_blank">Click here for full map and Directions</a>
Hi Mr Keithy. Did you find a solution to this issue, to properly customize ACF Maps to also display the Google Maps standard directions/view larger map view? I personally feel like the default map display is pretty useless without directions capability built in. Thanks!
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users