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


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="<?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:,longitude,16z
    (16z is the zoom level, so set whatever number you want)

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

The topic ‘Click to view large map (google maps)’ is closed to new replies.