views:

1289

answers:

4

We are using Google Maps over https using a free maps API key. The Google Maps API FAQ says:

"The Google Maps JavaScript API and Google Static Maps API can be accessed over a secure (https) connection by Google Maps API Premier customers. If the Google Maps APIs are used with a free Maps API key on a secure site, the browser may warn the user about non-secure objects on the screen."

My understanding of the above is that the API will work anyway, but users might get a security warning. For us, however, the map will not display at all, rendering the page completely unusable.

Does anybody know if Google is blocking use of the maps API over https with free maps API keys?

+3  A: 

From a quick look at the google maps premier site it seems like they probably are blocking it. One of the listed features is the "ability to provide secure maps over https"

http://code.google.com/apis/maps/documentation/premier/

Okay, here is some more specific info:

http://code.google.com/apis/maps/faq.html#ssl

It seems like you are probably getting a blank map because you are attempting to access with https a service that is only available to premiere members

Alex.Bullard
A: 

no, google will let you display the map even if you are using free google API's over https login. It definitely gives you a pop up box asking for a yes/no but your map will be displayed for sure.

Thanks

Aashish
A: 

You might be able to work around the problem by using OpenStreetMap instead. It doesn't present a super easy solution, because OpenStreetMap's main tile server does not support HTTPS connections, however there are various things you're allowed to do with OpenStreetMap which google would never allow.

Some more discussion of this on the OpenStreetMap forum: http://forum.openstreetmap.org/viewtopic.php?id=5546

Harry Wood
A: 

Hi,

I am using Google Maps over https using a free maps API key. It is showing map correctly in Firefox and IE7, but in IE8 it is showing error like "'GOverlay' is undefined".

Please help to get me out from this error.

Thanks, Ruchi

Ruchi