Home › Forums › ACF PRO › How to add Info popup window to Google Map › Reply To: How to add Info popup window to Google Map
Hi,
have you tried to do something like this?
<div id="map1" class="acf-map col-lg-7 bgImage" data-zoom="14">
<?php
$location = get_field('google_map_location');
if( $location ):
$gm_headline = get_field('gm_headline');
$gm_description = get_field('gm_description');
?>
<div class="marker" data-lat="<?php echo esc_attr($location['lat']); ?>" data-lng="<?php echo esc_attr($location['lng']); ?>"></div>
<?php endif; ?>
</div>
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.