GoogleMaps Control

Is there a known issue with 6.3.0.2 regarding the GoogleMaps Control? It shows a grey space and tiles saying no Pictures available. Was working fine with 6.2.7.2. whithout any change to the source. Probably Fixed in 6.3.0.3?

Best Regards
Christian Probst

No, this is not fixed in 6.3.0.3. Thanks for reporting this!

I’m not seeing this here. Are there any messages on the Console? There may be an issue with the API key. Changes were made there.

I have the same Problem with the GoogleMaps Control.
From the release note: "Controls: Google Maps: Use apiKey when initializing."
But where and how to do that?

– amagg

The GoogleMap control has an apiKey property.

the property apiKey is old stuff, since 6.2.4.: "Controls: GoogleMaps now has API property."
And it worked fine till 6.3. So how to initialize? I’m using BASIC

  • amagg

The API key was not be initialized properly in some circumstances. Any chance you can share a small sample which shows the problem?

sent to gh@ (20 characters needed)

Here is what I see when I try it:

I can see many “Content Securtiy Policy” Errors in the console, which do not show up in the 6.2.7.2 Version of the WebApp. They all refer to google maps resources in any way.

Are you running as a PhoneGap app or a Web App?

I don’t use phonegap so far. Problem as a WebApp, works fine as a Windows-Exe.


In Project Properties, you’ll find “ContentSecurityPolicy”. Set it to ‘none’.

You’ll need AppStudio 6.3 for this.

Content Security Policy is an evolving concept on the web. I expect we will see more of it in the future.

That’s it!

Thank’s a lot.

Best Regards
Christian

Thank you. Maybe you should change the help-text: “Required for PhoneGap”

I too do think that “Required for PhoneGap” is misleading. Already the Web App would not run because of “Refused to load the image …” when csp field is left blank. Additionally I would suggest to improve this hint provided for the csp property: “For more information, see Content Security Policy - Wikipedia”. This link does not actually provide help. I would suggest using e.g. something like this link “Content security policy”.

Bernd

The wording has been updated. Thanks for the link to the Google article - it is way more understandable than the one in Wikipedia.