barryhunter / classygmaps

Rip-off of Classic Google Maps, get a mostly functional version of Classic Maps, implemented with the Maps API
26 stars 14 forks source link

Classic maps html stopped working #129

Open egoldobin opened 5 years ago

egoldobin commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

egoldobin commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 ...........

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 ;-)