Home › Forums › General Issues › Click to view large map (google maps) › Reply To: Click to view large map (google maps)
Here’s a snippet that I’ve used before to bring up a larger map view with directions.
<a href="https://www.google.com/maps?saddr=My+Location&daddr=<?php $location = get_field('map'); echo $location['lat'] . ',' . $location['lng']; ?>">Get Directions</a>
If you just want the straight map, I think the url format is is: https://www.google.com/maps/@latitude,longitude,16z
(16z is the zoom level, so set whatever number you want)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.