当前位置:网站首页>【百度地图API】您所使用的地图JS API版本过低,已不再维护,为保证地图基本功能 正常使用,请尽快升级到最新版地图JS API
【百度地图API】您所使用的地图JS API版本过低,已不再维护,为保证地图基本功能 正常使用,请尽快升级到最新版地图JS API
2022-07-24 05:18:00 【amogogo12】
出现原因
最近有些使用百度API的网站网页还在使用1.0或者1.4版本的JS API文件,导致出现这样的错误,示范如下图:
如何修改
在https://lbsyun.baidu.com/apiconsole/key#/home申请应用,会得到AK
复制上面的AK,然后在地图html添加API,替换之前的链接
替换后的链接如下:
<script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=AK密钥"></script>
或者
<script type="text/javascript" src="//api.map.baidu.com/api?v=3.0&ak=AK密钥"></script>
重新刷新页面应该就更新正常了。
边栏推荐
猜你喜欢
随机推荐
赶紧进来!!轻松掌握C语言“顺序”、“分支”、“循环”三大结构
树状结构+节点
作用域与作用域链
4. Draw a red triangle and a yellow square on the screen. Triangle in the back, small; Square in front, big. Using the fusion technology, the triangle can be seen through the square, and the source an
useRef 创建动态引用
动画 效果
ros启动非本机节点
C文件读写加链表增删改查
02-移动端页面适配
关于作为行业人从业人员的一点思考
Sorting out some common server instructions and some binding instructions in csgo
JS:为什么 [] == ![] 返回 true ?
VS 调试
3. 在屏幕上绘制一个底是正方形的五面锥体,锥体的底面在XOZ平面上,锥顶在Y轴上。用下图给锥体的四个三角形面做纹理映射,使得锥体的四个面分别是红橙黄绿色。
Hurry in!! Easily master the three structures of "sequence", "branch" and "cycle" of C language
C2 random generation function seed, numpy. Random. Seed(), TF. Random. Set_ Seed Learning + reprint and sorting
Modify jupyter save path
Cmake笔记
/etc/rc.local 设置UI程序开机自启动
A collation of the basic usage of numpy









