google-map icon indicating copy to clipboard operation
google-map copied to clipboard

API key is required

Open martijnjanssen opened this issue 8 years ago • 5 comments

It seems that the google-maps API now requires a key for every request. Requests without an API key seem to be blocked.

<google-map latitude="52" longitude="4"></google-map>

I created the element above and did not provide a key. These were the repsponses I got: image

martijnjanssen avatar Oct 23 '16 10:10 martijnjanssen

That's right. New Maps API apps need to provide a key now. That's a requirement of the API.

On Sun, Oct 23, 2016, 3:23 AM Martijn Janssen [email protected] wrote:

It seems that the google-maps API now requires a key for every request. Requests without an API key seem to be blocked.

I created the element above and did not provide a key. These were the repsponses I got: [image: image] https://cloud.githubusercontent.com/assets/9624753/19625505/dd636680-991a-11e6-84bf-5814d3eff04d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleWebComponents/google-map/issues/336, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOigO_7Ns6yIiDcX7pIkBDzmLuUJrTAks5q2zW0gaJpZM4KeGNe .

ebidel avatar Oct 25 '16 18:10 ebidel

The examples don't all have an api-key property, this does not really comply with the fact that the API-key is required when including a google-maps element. I think the examples should represent the current situation, should they not?

martijnjanssen avatar Oct 31 '16 10:10 martijnjanssen

So far, it's only throwing a coupe of warnings, but working fine, isn't it on your side?

thexs-dev avatar Nov 10 '16 14:11 thexs-dev

It is working fine, just something that will be unexpected to new users. Nothing big.

martijnjanssen avatar Nov 14 '16 10:11 martijnjanssen

The demo links on https://www.webcomponents.org/element/GoogleWebComponents/google-map are not working because of this.

The message in the modal is : Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details.

And in the console : Google Maps API error: MissingKeyMapError

This is not for the example in readme.md, but for the Demo links on the left hand side, under Elements

sharkoz avatar Aug 08 '17 11:08 sharkoz