Google Maps API v3 over HTTPS?

风格不统一 提交于 2019-12-22 09:13:33

问题


Is there a https version of the google maps api v3? I have a site that uses https and am getting annoying mixed secure and non-secure content errors in IE. I read that in v2 you had to pay to get this, but haven't seen anything for v3.


回答1:


Update

As of March 2011

The Maps API v3, Static Maps API, and Maps API Web Services are now available to all developers over https:


This is one of my big problems with Google Maps. If you want to access Google Maps javascript via https you have to sign up as a Google Maps Premier customer.

There is a Google Maps API issue on the topic with lots of mutinous comments, but the final word from Google is that they will not be supporting this functionality in the free API.

This particular problem is close to my heart as I have spent the last few days porting one of our projects over to Bing Maps (it does support https).




回答2:


Yesterday Google announced that sites may use the v3 API for free over https:

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




回答3:


Try replacing

http://maps.google.com/maps

with

https://maps-api-ssl.google.com/maps



回答4:


Google does allows https access for Maps API v3, Static Maps API, and Maps API Web Services.

But with one condition:

If your site uses SSL because you charge for access to your application, or because your application is not publicly accessible to all users, you must still purchase a Maps API Premier license.



来源:https://stackoverflow.com/questions/3753968/google-maps-api-v3-over-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!