-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
when I display the google map with gmaps component, I get the following error:
Google Maps API error: Google Maps API error: MissingKeyMapError
Hello LuigiFabbri,
Based on Google's official documentation and error messages you have the following error:
MissingKeyMapError
The script element that loads the API is missing the required authentication parameter. If you are using the standard Maps JavaScript API, you must use a key parameter with a valid API key. If you are a Premium Plan customer, you must use either a client parameter with your client ID or a key parameter with a valid API key.
https://developers.google.com/maps/documentation/javascript/error-messages#deverrorcodes
Best Regards,
Darksu
Thanks Darksu, but as I put the key in my code?
Hello LuigiFabbri,
Please refer to the following example provided by zk
https://www.zkoss.org/zkdemo/reporting/google_map
Best Regards,
Darksu
Hello Darksu,
Thank you very much
Luigi Fabbri
I am having the same issue although I have issued a key from Google (as per the instructions). When using 127.0.0.1 to access the server, the map works fine (probably Google does not request a key in this case). When I am trying to access the page through localhost or any other dns name or even the actual IP, I get the following error: Google Maps API error: MissingKeyMapError.
Due to a change in the google maps API you have to upgrade to ZK GMaps 3.0.4 (maven version or download), otherwise the API Key will not be sent in the gmaps API URL correctly.
Asked: 2016-06-28 07:11:08 +0800
Seen: 71 times
Last updated: May 04 '17