FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Maps Error
#4
(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 Smile
Nelson Costa.
Reply


Messages In This Thread
Google Maps Error - by nelsondcosta - Jul 31st, 2017, 3:57 AM
RE: Google Maps Error - by nelsondcosta - Aug 23rd, 2017, 7:20 AM
RE: Google Maps Error - by Polkafest - Sep 6th, 2017, 6:52 PM
RE: Google Maps Error - by nelsondcosta - Sep 7th, 2017, 12:29 PM
RE: Google Maps Error - by nelsondcosta - Sep 8th, 2017, 2:35 PM
RE: Google Maps Error - by borgeeee - Nov 8th, 2017, 12:09 AM
RE: Google Maps Error - by nelsondcosta - Nov 8th, 2017, 9:03 AM
RE: Google Maps Error - by weems085 - Dec 30th, 2017, 1:20 AM
RE: Google Maps Error - by Polkafest - Jan 23rd, 2018, 7:02 PM
RE: Google Maps Error - by nelsondcosta - Jan 24th, 2018, 1:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)