Sep 8th, 2017, 2:35 PM
(Sep 7th, 2017, 12:29 PM)nelsondcosta Wrote:(Sep 6th, 2017, 6:52 PM)Polkafest Wrote:(Aug 23rd, 2017, 7:20 AM)nelsondcosta Wrote: bump?!
I changed some code to get it working, and you need a google maps api key from https://developers.google.com/maps/docum...et-api-key.
if ($has_google_map_field)
// this is the changed code
echo "<script>var map;function initMap(){map=new google.maps.Map(document.getElementById('google_maps_field'),{center:{lat:52.005595,lng:5.8263877},zoom:12})}</script><script defer src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSorryuseyourownkeyiXzStAkoS6Qo&callback=initMap\"&type=\"text/javascript\
</script>\n";
// comment, this is not required any more echo "<script src=\"http://maps.google.com/maps/api/js?sensor=false\"></script>\n";
I ll test and give thefeeback
WORKS
Nelson Costa.