Google Map not displayed [closed]

It might be that you haven’t set your Google Maps API key. Or, if you have already set an API key then it might be due to any restrictions that you may have set for the API key such as restricting it to a specific domain. You can obtain a Google Maps API key from … Read more

google map Info window [closed]

Divi don’t have a option to pop up marker on load, but you can do it this way: Open file divi\includes\builder\scripts\frontend-builder-scripts.js find this: google.maps.event.addListener(marker, ‘click’, function() { if( infowindow_active ) { infowindow_active.close(); } infowindow_active = infowindow; infowindow.open( $this_map_container.data(‘map’), marker ); }); } }); } and replace with this: google.maps.event.addListener(marker, ‘click’, function() { if( infowindow_active ) … Read more

How to handle multiple distance matrix api request in loop to reduce load and request time?

I need to pass the lat and long for two address function calculate_distance($lat1, $lon1, $lat2, $lon2, $unit) { $theta = $lon1 – $lon2; $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); $dist = acos($dist); $dist = rad2deg($dist); $miles = $dist * 60 * 1.1515; $unit = strtoupper($unit); if ($unit == “K”) { … Read more

Google map iframe into wordpress theme [closed]

I’ve used it like this and it works well 😉 $(“.div”).html(“<iframe width=”850″ height=”450″ frameborder=”0″ scrolling=’no’ marginheight=”0″ marginwidth=”0″ src=”http://yourlocation.com”></iframe>”); $(“.div”).css(“display”,”block”);

Google Map Integration

I’m not sure to understand what you want here… You want something like yelp on the right? ( here ) That will update the website when you change your map boundaries? Edit: I think you should look at this plugin . Is it this?

ACF Google Maps – Multiple Pins

I’ve achieved this in the following website check the “Ubicación” bock. I did this using ACF Pro (5.0). Im sharing you the code you need in order to implement this. Hope this is what you are looking for (there are a few extra fields that are not needed). <?php $image = get_field(‘location_background_image’, ‘option’); $size=”background”; $location_background_image_url … Read more