ThinkGeo.com    |     Documentation    |     Premium Support

Google Maps Overlay- License Key

Hi,


What will happend when i enter wrong license key in GoogleMapsOverlay? Will it be some alert or warning message appear same as web Edition?


i try pass an empty or wrong license key, but i still can load the google map. Can anybody tell me this? thanks.



Bv,


Thanks for your post!
 
The license key seems only for the web application development, and its application one license key is valid for one domain name. For the desktop application, it is said that” If you are developing on a local drive (file://), the key check is skipped in the Google Maps Javascript API and it is less restrictive in the Google Maps API for Flash.”, so it seems the license key do not need to be provided  when in Desktop application.
 
You can find more detail information for how the Google Maps APIs key system works here:
code.google.com/apis/maps/faq.html#keysystem
 
Any more questions please let me know.
 
Thanks,
 
Sun

Hi Sun, 
  
 Thank you for the detailed reply.

You are welcome, bv 
  
 Glad to help you, and any more questions please let me know. 
  
 sun

hello,
There a few years ago I used the API Google (ThinkGeo.MapSuite.DesktopEdition.GoogleMapsOverlay) without problem.
With the same program now Google  returns :



Le serveur distant a retourné une erreur : (403) Interdit.
à ThinkGeo.MapSuite.DesktopEdition.GoogleMapsOverlay.0xY=(GeoCanvas 1BY=)
à ThinkGeo.MapSuite.DesktopEdition.GoogleMapsOverlay.DrawCore(GeoCanvas canvas)
à ThinkGeo.MapSuite.DesktopEdition.Overlay.tRM=(GeoCanvas thM=)
à ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.7RU=(IEnumerable`1 7hU=)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.6xU=(RectangleShape 7BU=)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.OhY=()
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.NhY=(Int32 NxY=)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()

Do you think it is now necessary to mention a key?


Thank you.





Hi Eric, 
  
 Sorry I don’t know what the exception speak but it looks like 403 error. Please see the link here:  
  
 developers.google.com/maps/documentation/business/articles/usage_limits#http403 
  
 It looks because usage limits exceeded, if it’s necessary for you to visit more tiles one day, you maybe need a key. Please get more detail information from Google’s documentation about it. 
  
 Regards, 
  
 Don

Thanks Don for your reply.



I work with MapSuite Desktop Edition 5.5.0.0





At the beginning of this topic it is stated


"it seems the license key do not need to be provided  when in Desktop application."

and in my case it worked well without key.




I first looked for an explanation in the Google API and the cause could be using an older version of API (?).

I wondered which version is used by calling :

ThinkGeo.MapSuite.DesktopEdition.GoogleMapsOverlay (5.5.0.0)

 Now if a key is really necessary, do you know how to get into the Google console?


Thank you.


Hi Eric, 
  
 In the topic, Sun mentioned the validation is skipped it’s for Javascript API but it looks we are using static maps API for desktop edition. 
  
 I am sorry I cannot check what’s the API version in GoogleMapsOverlay of 5.5 now, but I think you can try our latest 8.0 to make sure whether that’s caused by older version of Google API. 
  
 About Google console, I think you can read the “What usage limits apply to the Maps API?” part in developers.google.com/maps/faq. It speak about the limit number and have a link to Google console. 
  
 Regards, 
  
 Don 


Thank you.

I’ll try when I have some time

Eric

Hi Eric, 
  
 Any update please let us know. 
  
 Regards, 
  
 Don