<p>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?</p>

<blockquote>
  <p><a href="http://code.google.com/support/bin/answer.py?answer=65301&amp;topic=10945" rel="noreferrer">Will the Maps API work over SSL (HTTPS)?</a></p>
  
  <p>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.</p>
</blockquote>

<p>We have considered the following options</p>

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

<p>Are there other options, or does anyone have insight into the options that we have considered?</p>

[{'answer_id': 3476, 'author': 'GateKiller', 'author_id': 383, 'author_profile': 'https://Stackoverflow.com/users/383', 'pm_score': 2, 'selected': False, 'text': '<p>I would go with your first solution. This allows the user to focus on entering their credit card details.</p>\n\n<p>You can then transfer them to another webpage which asks or provides them further information relating to the Google Map.</p>\n'}, {'answer_id': 3898, 'author': 'palmsey', 'author_id': 521, 'author_profile': 'https://Stackoverflow.com/users/521', 'pm_score': 3, 'selected': False, 'text': '<p>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.</p>\n\n<p>You might try using <a href="http://www.mapstraction.com/" rel="noreferrer">Mapstraction</a>, so you can switch to a provider that supports SSL, and switch back to Google if they support it in the future.</p>\n'}, {'answer_id': 20612, 'author': 'Gary', 'author_id': 2330, 'author_profile': 'https://Stackoverflow.com/users/2330', 'pm_score': 5, 'selected': True, 'text': '<p>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.</p>\n\n<p>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 &amp;s=1 to the URL, e.g.</p>\n\n<pre><code>&lt;script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1" type="text/javascript"&gt;&lt;/script&gt;\n</code></pre>\n\n<p>becomes</p>\n\n<pre><code>&lt;script src="https://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1&amp;s=1" type="text/javascript"&gt;&lt;/script&gt;\n</code></pre>\n'}, {'answer_id': 1500201, 'author': 'cope360', 'author_id': 48044, 'author_profile': 'https://Stackoverflow.com/users/48044', 'pm_score': 2, 'selected': False, 'text': '<p>If you are a <a href="http://www.google.com/enterprise/earthmaps/maps.html" rel="nofollow noreferrer">Google Maps API Premier</a> customer, then SSL is supported.  We use this and it works well.  </p>\n\n<p>Prior to Google making SSL available, we proxyed all the traffic and this worked acceptably.  You lose the advantage of Google\'s CDN when you use this approach and you may get your IP banned since it will appear that you are generating a lot of traffic.</p>\n'}, {'answer_id': 5337403, 'author': 'Pasted', 'author_id': 1308097, 'author_profile': 'https://Stackoverflow.com/users/1308097', 'pm_score': 3, 'selected': False, 'text': '<p>Just to add to this</p>\n\n<p><a href="http://googlegeodevelopers.blogspot.com/2011/03/maps-apis-over-ssl-now-available-to-all.html">http://googlegeodevelopers.blogspot.com/2011/03/maps-apis-over-ssl-now-available-to-all.html</a></p>\n\n<p>Haven\'t tried migrating my SSL maps (ended up using Bing maps api) back to Google yet but might well be on the cards.</p>\n'}, {'answer_id': 11800462, 'author': 'Bhupendra', 'author_id': 1574777, 'author_profile': 'https://Stackoverflow.com/users/1574777', 'pm_score': 1, 'selected': False, 'text': '<p>If you are getting SECURITY ALERT on IE 9 while displaying Google maps, use</p>\n\n<pre><code>&lt;script src="https://maps.google.com/maps?file=api&amp;v=2&amp;hl=en&amp;tab=wl&amp;z=6&amp;sensor=true&amp;key=&lt;?php echo $key;?&gt;\n" type="text/javascript"&gt;&lt;/script&gt;\n</code></pre>\n\n<p>instead of</p>\n\n<pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&amp;sensor=SET_TO_TRUE_OR_FALSE"\n  type="text/javascript"&gt;&lt;/script&gt;\n</code></pre>\n'}, {'answer_id': 44341756, 'author': 'Panayiotis Hiripis', 'author_id': 3342967, 'author_profile': 'https://Stackoverflow.com/users/3342967', 'pm_score': 0, 'selected': False, 'text': '<p>I \'ve just removed the http protocol and it worked!</p>\n\n<p>From this:</p>\n\n<pre><code>&lt;script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"&gt;&lt;/script&gt;\n</code></pre>\n\n<p>To this:</p>\n\n<pre><code>&lt;script src="//maps.google.com/maps/api/js?sensor=true" type="text/javascript"&gt;&lt;/script&gt;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/3437', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/308/']