当前位置:网站首页>【百度地图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>
重新刷新页面应该就更新正常了。
边栏推荐
- Draw a circle and a square on the screen. The square is in front and the circle is behind. You can move the square through the keyboard. In the following cases, the square can only move within the cir
- 关键字_02break与continue
- Sorting out some common server instructions and some binding instructions in csgo
- useRef 创建动态引用
- String_ Method_ 01match method
- 6. Draw a Bezier curve and a Bezier surface on the screen
- 新语法01_Es6新语法
- 浏览器的本地存储
- What is the function of key
- JS - 鼠标键盘配置 及 浏览器禁止操作
猜你喜欢
随机推荐
Some experience of using D2L package and related environment configuration
16进制转rgb
Draw a square on the screen and use ice BMP texture maps the square; Draw a yellow teapot after the square. Assuming that the square is transparent, draw the mixed effect of teapot and square; Adjust
5.模板缓存,绘制一个正方形只能在三角形内移动
New grammar 01_ ES6 new syntax
新建 umi 项目,Error: Rendered more hooks 或者 Rendered fewer hooks
程序员工具合集!(转载)
libc.so.6/glibc交叉编译
Constructor_ Map constructor
OpenGL draws two points on the screen, a blue point on the right, using anti aliasing technology, and a red point on the left, without anti aliasing technology. Compare the difference between the two
Programmer tools collection! (Reprinted)
聊聊强缓存与协商缓存
浏览器的本地存储
Cmake笔记
Function_ generalization
Opengl模拟现实生活中,球掉到地面上再弹起来的过程,在屏幕上绘制一个球,球从上往下掉,碰到地面,再弹起来。
4. 在屏幕上绘制一个红色三角形,一个黄色正方形。三角形在后,小;正方形在前,大。使用融合技术,使得可以透过正方形看到三角形,源和目标融合因子分别为GL_SRC_ALPHA和GL_ONE_MINUS
Scikit learn notes
WIX 路径中带空格
C语言实现三子棋?五子棋?不,是n子棋









