GoogleMaps Control


#1

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


AppStudio 6.3.0.2 released!
#2

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


#3

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.


#4

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


#5

The GoogleMap control has an apiKey property.


#6

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

#7

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


#8

sent to gh@ (20 characters needed)


#9

Here is what I see when I try it:


#10

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.


#11

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


#12

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



#13

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.


#14

That’s it!

Thank’s a lot.

Best Regards
Christian


#15

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


#16

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 https://en.wikipedia.org/wiki/Content_Security_Policy”. This link does not actually provide help. I would suggest using e.g. something like this link “https://developers.google.com/web/fundamentals/security/csp/”.

Bernd


#17

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