FORUMS


Hello There, Guest! Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Maps Error
#1
Hello guys, 

Im getting a error using Google Maps Module, when I opem any form, I have an error.

[Image: google.png]


Attached Files Thumbnail(s)
   
Leeroy Jenkins...
Reply
#2
bump?!
Leeroy Jenkins...
Reply
#3
(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";
Reply
#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
Leeroy Jenkins...
Reply
#5
(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 Smile

WORKS Smile
Leeroy Jenkins...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)