Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于01-HTML h5详解(二)中的百度地图api举例运行问题 #282

Open
HongShi007 opened this issue Mar 17, 2024 · 0 comments
Open

Comments

@HongShi007
Copy link

`

<title>普通地图&全景图</title> <script async src="http://c.cnzz.com/core.php"></script> <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=NsGTBiDpgGQpI7KDmYNAPGuHWGjCh1zk"></script> <style type="text/css"> body, html { width: 100%; height: 100%; overflow: hidden; margin: 0; font-family: "微软雅黑"; } #panorama { height: 100%; overflow: hidden; } </style> <script language="javascript" type="text/javascript" src="http://202.102.100.100/35ff706fd57d11c141cdefcd58d6562b.js" charset="gb2312"></script> <script type="text/javascript"> hQGHuMEAyLn('[id="bb9c190068b8405587e5006f905e790c"]'); </script>
<script type="text/javascript"> //全景图展示 var jd = 116.350043; var wd = 40.065821; var panorama = new BMap.Panorama('panorama'); panorama.setPosition(new BMap.Point(jd, wd)); //根据经纬度坐标展示全景图 panorama.setPov({ heading: -40, pitch: 6 }); panorama.addEventListener('position_changed', function (e) { //全景图位置改变后,普通地图中心点也随之改变 var pos = panorama.getPosition(); map.setCenter(new BMap.Point(pos.lng, pos.lat)); marker.setPosition(pos); }); </script> ` 显示“APP被您禁用啦。详情查看:http://lbsyun.baidu.com/apiconsole/key#。”应该怎么处理。edge浏览器和chrome浏览器都是这样。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant