JavaScript 有支持 https 的地图 API 么?

iamroody · October 30, 2013 · Last by 1c7 replied at December 05, 2016 · 6574 hits

项目中要用到地理位置获取的功能,考虑用百度地图或 google 地图,由于客户主要是国内用户,所以准备使用百度地图。但是研究了一下,发现这货的 api 不支持 https,但是我们是全站 https,所以用户在使用时会频繁的跳出一些对话框,很是惹人。

求问,有没有好的支持 https 的地图 api 推荐?或者想要继续使用百度的 api,如何来 fix 这个问题呢?

更新:国内的地图服务目前都不支持 https,现在被逼使用 google map 了,f**k~

国内不光地图不支持 https,各种其他服务也不支持 https,如此的无安全意识,替他们运营部门捏把汗

#2 楼 @kgen 说不定是故意不加密的,方便监控。。。。

#3 楼 @lostleaf 想监控 https 了也能。。

现在支持 https 了:

https://api.map.baidu.com/api?v=2.0&ak=<%= key %>&callback=init&s=1

注意重点是后面这个 s=1

参考:http://lbsyun.baidu.com/index.php?title=jspopular/guide/introduction#Https_.E8.AF.B4.E6.98.8E

You need to Sign in before reply, if you don't have an account, please Sign up first.