|
发表帖子
API/SDK版本号: |
1.4 |
产品: |
2D地图 |
手机型号: |
|
使用接口: |
Javascript |
本帖最后由 九龙在天9 于 2017-9-7 15:18 编辑
使用以下方式加载:
https://webapi.amap.com/maps?v=1.4.0&key=xxx
执行plugin脚本:
map.plugin(["AMap.ToolBar", "AMap.Scale", "AMap.OverView"],
function() {
map.addControl(new AMap.ToolBar());
map.addControl(new AMap.Scale());
map.addControl(new AMap.OverView({ isOpen: true }));
}
);
但是部分图片是用http方式加载的,如下:
https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/mapcontrols.png'. This content should also be served over HTTPS.
contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/map_view.png'. This content should also be served over HTTPS.
contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/toolbar_rbg.png'. This content should also be served over HTTPS.
2contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/map_view.png'. This content should also be served over HTTPS.
contact-us:1 Mixed Content: The page at 'https://mydomain.com/contact-us' was loaded over HTTPS, but requested an insecure image 'http://webapi.amap.com/theme/v1.3/sharp.png'. This content should also be served over HTTPS.
应该修正为: 所有资源应该通过https方式加载。
|
|