Home » Questions » Computers [ Ask a new question ]

Options for Google Maps over SSL

Options for Google Maps over SSL

"We recently discovered that the Google Maps API does not play nicely with SSL. Fair enough, but what are some options for overcoming this that others have used effectively?

Will the Maps API work over SSL (HTTPS)?

At this time, the Maps API is not
available over a secure (SSL)
connection. If you are running the
Maps API on a secure site, the browser
may warn the user about non-secure
objects on the screen.

We have considered the following options

Splitting the page so that credit card collection (the requirement for SSL) is not on the same page as the Google Map.
Switching to another map provider, such as Virtual Earth. Rumor has it that they support SSL.
Playing tricks with IFRAMEs. Sounds kludgy.
Proxying the calls to Google. Sounds like a lot of overhead.

Are there other options, or does anyone have insight into the options that we have considered?"

Asked by: Guest | Views: 339
Total answers/comments: 4
Guest [Entry]

"I'd agree with the previous two answers that in this instance it may be better from a usability perspective to split the two functions into separate screens. You really want your users to be focussed on entering complete and accurate credit card information, and having a map on the same screen may be distracting.

For the record though, Virtual Earth certainly does fully support SSL. To enable it you simple need to change the script reference from http:// to https:// and append &s=1 to the URL, e.g.

<script src=""http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1"" type=""text/javascript""></script>

becomes

<script src=""https://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1&s=1"" type=""text/javascript""></script>"
Guest [Entry]

"Just to add to this

http://googlegeodevelopers.blogspot.com/2011/03/maps-apis-over-ssl-now-available-to-all.html

Haven't tried migrating my SSL maps (ended up using Bing maps api) back to Google yet but might well be on the cards."
Guest [Entry]

"This seems like a buisness requirements/usability issue - do you have a good reason for putting the map on the credit card page? If so, maybe it's worth working through some technical problems.

You might try using Mapstraction, so you can switch to a provider that supports SSL, and switch back to Google if they support it in the future."
Guest [Entry]

"I would go with your first solution. This allows the user to focus on entering their credit card details.

You can then transfer them to another webpage which asks or provides them further information relating to the Google Map."