当前位置:网站首页>Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND
Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND
2022-07-07 03:33:00 【Senior brother Xiaokang】
List of articles
One 、 Find the problem
On Baidu map open platform — Instance Center , The operation is all right .
- Copy , Replace ak
- Keep locally html file
- open html, The interface is blank
F12
Open the developer console , Error reporting foundGET file://api.map.baidu.com/api?type=webgl&v=1.0&ak=**************** net::ERR_FILE_NOT_FOUND
Uncaught ReferenceError: BMapGL is not defined
Two 、 solve the problem
It's obvious , Script script
Can't access , Led to BMapGL
Undefined .
I'll take a look at this script carefully src, It's strange at first sight .
<script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak= Your key "></script>
I'll try //
I added https:
, And then it's all right ...
The solution is in script
Medium src
Add... At the front https:
<script src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak= Your key "></script>
Feel good , Just one button three times ( give the thumbs-up + Focus on + Collection )~
边栏推荐
- R data analysis: how to predict Cox model and reproduce high score articles
- 20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
- ubuntu20安装redisjson记录
- The version control of 2021 version is missing. Handling method
- 卡尔曼滤波-1
- Appx代码签名指南
- 制作(转换)ico图标
- 美国空军研究实验室《探索深度学习系统的脆弱性和稳健性》2022年最新85页技术报告
- Flink Task退出流程与Failover机制
- SSL证书部署
猜你喜欢
海思3559万能平台搭建:RTSP实时播放的支持
Set static IP for raspberry pie
如何自定义Latex停止运行的快捷键
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
数学归纳与递归
Flink task exit process and failover mechanism
图形化工具打包YOLOv5,生成可执行文件EXE
1200.Minimum Absolute Difference
When you go to the toilet, you can clearly explain the three Scheduling Strategies of scheduled tasks
源代码保密的意义和措施
随机推荐
变量、流程控制与游标(MySQL)
海思3559万能平台搭建:RTSP实时播放的支持
Delete data in SQL
存储过程与函数(MySQL)
Mathematical induction and recursion
LAB1配置脚本
数学归纳与递归
About Estimation Statistics
2022.6.28
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
Jerry's phonebook acquisition [chapter]
注意力机制原理
sshd[12282]: fatal: matching cipher is not supported: aes256- [email protected] [preauth]
Jerry's broadcast has built-in flash prompt tone to control playback pause [chapter]
Vernacular high concurrency (2)
Function reentry, function overloading and function rewriting are understood by yourself
Netperf and network performance measurement
【C语言】 题集 of Ⅸ
qt-线程等01概念
【无标题】