Page 1 of 1

Script Error "google is not defined" in Render ...

PostPosted: 27 Jul 2017 23:41
by zsleo
Please advise what I am missing...

This is the first time I a using JQGMap3 for a serious project.

I have taken the JQGMap3Frame PAS and DFM from the CGD Demo source code to use it in a small test app.

When I create an display JQGMap3Frame I get a pop-up with the error "Script Error "google is not defined" in Render Async! Processing Full Submit...".

I have not changed any code in JQGMap3Frame.

Help please

Re: Script Error "google is not defined" in Render ...

PostPosted: 04 Aug 2017 09:19
by Alexander Bulei
Hi zsleo,

I've changed the way of functioning of components, which works with google libraries.
So, in next beta build, you have the new component IWCGGoogleLibLoader, and now this component is required to work properly with google libraries.

Here you have the change log:

Code: Select all
4.0.1.44

Core
- Added: new component IWCGGoogleLibLoader - component to load the Google Javascript API & Libraries
- Added: new component IWCGJQGAC - Google Place Autocomplete (input)

IWCGJQGMap3, IWCGJQGMap3Ex
- MAJOR Change: Now, those components require to have assigned GoogleLibLoader property (IWCGGoogleLibLoader)
- Added: new GoogleLibLoader property


IWCGJQGMap3
- DEPRECATED: GoogleMapsAPIUrl, GoogleMapsExpermental & GoogleApiKey properties in favor of IWCGGoogleLibLoader

IWCGJQGMap3Ex
- DEPRECATED: LoadOptions property in favor of IWCGGoogleLibLoader


Best Regards.

Re: Script Error "google is not defined" in Render ...

PostPosted: 04 Aug 2017 23:01
by zsleo
I look forward to the release.

Thanks

Re: Script Error "google is not defined" in Render ...

PostPosted: 14 Aug 2017 03:28
by zsleo
Alexander,

Thanks. This is now working well.

I have been experimenting / playing with IWCGJQGMap3Ex and I can't figure how to get the Route to display.

I altered your demo as follows but can't figure out if a callback is required and if so how to trigger it.

CGGoogleComps_01.7z


Regards

Re: Script Error "google is not defined" in Render ...

PostPosted: 14 Aug 2017 15:32
by Alexander Bulei
Hi zsleo,

You're doing it right...there was small problem with rendering of Route on IWCGJQGMap3Ex...which I've already fixed.

Thanks.

Best Regards.