Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic maps html stopped working #129

Open
egoldobin opened this issue Sep 27, 2018 · 8 comments
Open

Classic maps html stopped working #129

egoldobin opened this issue Sep 27, 2018 · 8 comments

Comments

@egoldobin
Copy link

Now it shows "This page can't load Google Maps correctly" pop-up and covers the maps with a shaddow where it is written "For development purposes only".

Any fix?

@barryhunter
Copy link
Owner

Are you loading the version from gokml.net or a local copy?

Google have recently changed policies, that the API can't be loaded without a key. I've put a key on gokml.net, but is restricted to the free quota. (about 500 views a day)

It used to work locally without a key, but that has changed.

@cxw42
Copy link

cxw42 commented Sep 27, 2018

I had the same problem; adding the key seems to have fixed it. Thanks, Barry!

@egoldobin
Copy link
Author

Are you loading the version from gokml.net or a local copy?

I was using local copy.

Google have recently changed policies, that the API can't be loaded without a key. I've put a key on gokml.net, but is restricted to the free quota. (about 500 views a day)

How do I start using a key? Should I just download a new HTML version?

@barryhunter
Copy link
Owner

barryhunter commented Sep 27, 2018

You need need to signup and get your own key, and then edit your file to use your new key
https://developers.google.com/maps/documentation/javascript/get-api-key

You could create a key WITHOUT any referer restriction (so can use on local urls) - just make sure you don't disclose the key to anyone else!

You shouldn't copy the key from gokml.net as you will be using up the quota, which is already a scarce commodity. (although the API may block even working)

@CuriousJM
Copy link

I have signed in to Google Cloud Platform and have obtained the api-key. I have also downloaded the html file (http://gokml.net/maps) also but don't know where to insert the new key in the html code. (I know how to edit html file).

As per Google Maps Platform Documentation

When loading the Maps JavaScript API, substitute YOUR_API_KEY in the code below with the API key you got ...........

<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" type="text/javascript"></script>

Please advise where to add above script code. I couldn't find anything in the html code downloaded.

You could create a key WITHOUT any referer restriction (so can use on local urls)

How do I create a key Without any referrer restriction.

Thanking you in advance.

@CuriousJM
Copy link

CuriousJM commented Sep 29, 2018

Please ignore my comments sent about 3 hours back.
I down loaded http://gokml.net/maps afresh and this time I found the proper script code as shown below;

api

I have replaced api_key (the blurred area) with My_Api_Key and saved the html file on local disk. The GSV is working fine now .
Hope I have done the correct thing.
And a big thank you for Classy Gmaps. I love it.

@ziggzaggy
Copy link

I have replaced api_key (the blurred area) with My_Api_Key and saved the html file on local disk. The GSV is working fine now .
Hope I have done the correct thing.
And a big thank you for Classy Gmaps. I love it.

Thank you for that, I've just done the same, can't do without Classy Gmaps, google's new one is hopeless.

@egoldobin
Copy link
Author

You need need to signup and get your own key, and then edit your file to use your new key
https://developers.google.com/maps/documentation/javascript/get-api-key

You could create a key WITHOUT any referer restriction (so can use on local urls) - just make sure you don't disclose the key to anyone else!

You shouldn't copy the key from gokml.net as you will be using up the quota, which is already a scarce commodity. (although the API may block even working)

Thanks a lot. It works as good as before with API key ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants