Hello!
I have 2 tabs:
– Google map, i get it from documentation (https://www.advancedcustomfields.com/resources/google-map/)
– Street View (i want to display street view by lat and lng)
My code:
<div class="estate-tabs_item">
<div class="acf-map">
<div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
</div>
</div>
<div class="estate-tabs_item">
<div id="street-view">
<div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
</div>
</div>
What must i add to display street view in this div?
<div id="street-view"></div>
Hi @webgleb
I think you need to look over at the Google Map documentation:
https://developers.google.com/maps/documentation/javascript/streetview
ACF just gives you the basic data to construct the map: any further customization would need to be done on the Google Map API’s side.
Phil