Support

Account

Home Forums General Issues Click to view large map (google maps)

Solving

Click to view large map (google maps)

  • How can I create automatic link on a map that when it’s clicked it goes to the large google map view? My maps are quite small and I would like add this option, in something kind of automatic way so that client doesn’t have to bother about it when creating new maps. Is it possible?

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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.