Ready to use javascript google map not working

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
rganguly
 
 
Posts: 104
Joined: Sat Feb 12, 2022 1:41 pm

Ready to use javascript google map not working

Post by rganguly »

Hi,

Ready to use javascript, google map with info is not working. In browser console it is showing "google is not defined". Error in GoogleMapInit.

Please help...
Running WYSIWYG Web Builder since 2022...
User avatar
Pablo
 
Posts: 23021
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Ready to use javascript google map not working

Post by Pablo »

Did you enter your API Key?

Note: if you need help then always include the URL of the page (or a demo project).
In this case, a demo project will not work, because Google Maps only works online.
User avatar
rganguly
 
 
Posts: 104
Joined: Sat Feb 12, 2022 1:41 pm

Re: Ready to use javascript google map not working

Post by rganguly »

Pablo wrote: Thu Nov 10, 2022 7:10 am Did you enter your API Key?
Yes, it was working on WWB17.
Running WYSIWYG Web Builder since 2022...
User avatar
rganguly
 
 
Posts: 104
Joined: Sat Feb 12, 2022 1:41 pm

Re: Ready to use javascript google map not working

Post by rganguly »

Pablo wrote: Thu Nov 10, 2022 7:10 am Did you enter your API Key?

Note: if you need help then always include the URL of the page (or a demo project).
In this case, a demo project will not work, because Google Maps only works online.
It is not working after publish it on xampp on my localhost.
Running WYSIWYG Web Builder since 2022...
User avatar
Pablo
 
Posts: 23021
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Ready to use javascript google map not working

Post by Pablo »

There are no differences in this script. it 100% the same as in WWB18. Because it's a standard Google script.

It will not work on a local host because the API key is associated with your domain.
User avatar
rganguly
 
 
Posts: 104
Joined: Sat Feb 12, 2022 1:41 pm

Re: Ready to use javascript google map not working

Post by rganguly »

Pablo wrote: Thu Nov 10, 2022 7:23 am There are no differences in this script. it 100% the same as in WWB18. Because it's a standard Google script.

It will not work on a local host because the API key is associated with your domain.
Okay, got that, my bad.
Thanks....
Running WYSIWYG Web Builder since 2022...
User avatar
h3rnan
 
 
Posts: 70
Joined: Sat Mar 05, 2016 8:53 pm
Location: Uruguay
Contact:

Re: Ready to use javascript google map not working

Post by h3rnan »

Hi, if you don't want to fight with api..I have created an extensión for that, check my extensions in webbuilderfx.com
I dont use api key and Is always working ok.
It's an alternative.
Kind regards.
Hernán.
Hernán Pena
Web Developer / IT Administrator
https://webbuilderfx.com
support@montevideocapital.com
alan_sh
 
 
Posts: 1780
Joined: Tue Jan 01, 2019 5:50 pm

Re: Ready to use javascript google map not working

Post by alan_sh »

I don't use JS at all. I find the map location on Google maps. Click on the 'share' link and get an iframe url from there. I then insert it into an HTML object and put that into a layer grid.

Works fine. Here's an example https://www.manhoc.hoc.org.uk/
User avatar
h3rnan
 
 
Posts: 70
Joined: Sat Mar 05, 2016 8:53 pm
Location: Uruguay
Contact:

Re: Ready to use javascript google map not working

Post by h3rnan »

alan_sh wrote: Thu Nov 10, 2022 11:59 am I don't use JS at all. I find the map location on Google maps. Click on the 'share' link and get an iframe url from there. I then insert it into an HTML object and put that into a layer grid.

Works fine. Here's an example https://www.manhoc.hoc.org.uk/
Exactly, the idea of my extension is just to add the code. Without using api key.
Many of my clients have had problems with the api and the best solution I found is with the code directly and bye bye api key.
Hernán Pena
Web Developer / IT Administrator
https://webbuilderfx.com
support@montevideocapital.com
User avatar
rganguly
 
 
Posts: 104
Joined: Sat Feb 12, 2022 1:41 pm

Re: Ready to use javascript google map not working

Post by rganguly »

h3rnan wrote: Thu Nov 10, 2022 12:03 pm
alan_sh wrote: Thu Nov 10, 2022 11:59 am I don't use JS at all. I find the map location on Google maps. Click on the 'share' link and get an iframe url from there. I then insert it into an HTML object and put that into a layer grid.

Works fine. Here's an example https://www.manhoc.hoc.org.uk/
Exactly, the idea of my extension is just to add the code. Without using api key.
Many of my clients have had problems with the api and the best solution I found is with the code directly and bye bye api key.
Hi,

Ready to use javascript Google map with info is not working even on the original domain and server.
Showing "google is not defined". Google iframe is working fine. Thanks to @h3rnan & @alan_sh.
Running WYSIWYG Web Builder since 2022...
Post Reply