0

MissingKeyMapError on gmaps component

asked 2016-06-28 07:11:08 +0800

LuigiFabbri gravatar image LuigiFabbri
46 5

Hello,

when I display the google map with gmaps component, I get the following error:

Google Maps API error: Google Maps API error: MissingKeyMapError

delete flag offensive retag edit

8 Answers

Sort by ยป oldest newest most voted
0

answered 2016-07-03 16:29:58 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
0

answered 2016-07-08 20:53:45 +0800

LuigiFabbri gravatar image LuigiFabbri
46 5

Thanks Darksu, but as I put the key in my code?

link publish delete flag offensive edit
0

answered 2016-07-17 12:49:10 +0800

Darksu gravatar image Darksu
1991 1 4

Hello LuigiFabbri,

Please refer to the following example provided by zk

https://www.zkoss.org/zkdemo/reporting/google_map

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2016-07-21 06:47:26 +0800

LuigiFabbri gravatar image LuigiFabbri
46 5

Hello Darksu,

Thank you very much

Luigi Fabbri

link publish delete flag offensive edit
0

answered 2016-07-22 08:41:48 +0800

Gemteks gravatar image Gemteks
1 1

No, it's not a solution. I have the same problem. I append the api-key attatched to url, but map still not works.

Another problem, the sandbox of google map encounter some problem (www.zkoss.org/zksandbox/#m8)

link publish delete flag offensive edit
0

answered 2016-07-22 09:39:31 +0800

Dimitriszk gravatar image Dimitriszk
1

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.

link publish delete flag offensive edit
0
link publish delete flag offensive edit
0

answered 2017-05-04 10:24:09 +0800

cor3000 gravatar image cor3000
6280 2 7

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.

http://tracker.zkoss.org/projects/ZKGMAPS/issues/ZKGMAPS-12

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2016-06-28 07:11:08 +0800

Seen: 71 times

Last updated: May 04 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More