| |
| Publicado el 23,junio 2016 - 10:08 |
Hi,
as of today I'm getting java script errors in my WD application. This is caused by the map control which tries to execute a html-script (create as a tamp file in c:\users\arie\appdata\loca\ emp When I open this file in a browser myself it's telling me the Google map api key is missing.
That is true. So I added this line of code, using a valid API key MapLicenseGgl(sMyApiKey)
But still the error remains. Also the generated temporary HTML file does not show me this key, which I would expect to be in it somewhere.
Anyone knows about this error? Does it matter where in my code the MapLicenseGgl() is used? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 10:11 |
Arie
I have the same problems :mad:
Jan |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 10:31 |
Arie
I had a java update last night. Maybe that is the problem ??
Jan |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 10:33 |
That looks like NLexit instead of BRexit 
For now I removed the map control (wasn't used very much in my app anyway) But I will try to solve it anyway |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 10:35 |
Probably! Windows forced a restart of my laptop this morning
But my app runs on a terminal server environment at the customers site. I can't do anything about that, like undoing such updates. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 10:42 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 11:02 |
Error is caused by a change in the Google policy last night, but Google reverted that already.
According to our French collegues the function MapLicenseGgl() should be used BEFORE opening windows, i.e. in the project init section.
However, the old situation seems to work again, so I cannot confirm if that works. |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 57 mensajes |
|
| Publicado el 23,junio 2016 - 11:42 |
Hi,
The problem is on the Google side.
The Google Maps APIs rules have been changed on June 22, 2016. To sum up, now an API key is required. You will have to add a call to the MapLicenseGgl() command with the API key in the init code of your project before using any Map control.
Google details are here : https://developers.google.com/maps/pricing-and-plans/standard-plan-2016-update
Have a nice day
-- Loïc HAMEL Support Technique PC SOFT |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 12:06 |
Hi, go here : https://developers.google.com/maps/documentation/javascript/get-api-key
and get a javascript key. In the PROJECT CODE of your app(s) add the following:
gsGoogleMAPSID is string gsGoogleMAPSID="yourapistring" MapLicenseGgl(gsGoogleMAPSID)
Do the same for WD and WebDEV apps. Most of your WebDEV apps (at your users sites) will still work, even if you don't add the above code. BUT when you test them from a NEW website domain (or your localhost) they will fail ...
Steven Sitas |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 16:30 |
Steven,
I still have the same problem after your solution. I add it to the project code. Is there something else i need to do?
Sammy |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 18:17 |
Sammy, It works fine here and at my customers ... One thing to point out is that my projects are all unicode, so my strings are actually unicode strings. Maybe that's the problem ? You could try : MapLicenseGgl("yourkey") directly, without passing it a string
Steven Sitas |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 19:26 |
FYI: PCSoft has published 2 new post on its technical blog (french) on this specific subject. I do not know if they are available in english, but worse case scenario: google translate is your friend
Best regards |
| |
| |
| | | |
|
| | |