当前位置:网站首页>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
F12Open the developer console , Error reporting foundGET file://api.map.baidu.com/api?type=webgl&v=1.0&ak=**************** net::ERR_FILE_NOT_FOUNDUncaught 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 )~
边栏推荐
- The latest 2022 review of "small sample deep learning image recognition"
- Flink task exit process and failover mechanism
- About Estimation Statistics
- Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
- 我的勇敢对线之路--详细阐述,浏览器输入URL发生了什么
- 迷失在MySQL的锁世界
- Create applet from 0
- Codeforces round 264 (Div. 2) C gargari and Bishop [violence]
- 20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
- Jerry's transmitter crashed after the receiver shut down [chapter]
猜你喜欢

Make (convert) ICO Icon

2022.6.28

Open3d mesh filtering

21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)

Lavel PHP artisan automatically generates a complete set of model+migrate+controller commands
![Jericho turns on the display icon of the classic Bluetooth hid mobile phone to set the keyboard [chapter]](/img/f4/8464bf9b66a1215265ac873f286688.png)
Jericho turns on the display icon of the classic Bluetooth hid mobile phone to set the keyboard [chapter]

Variables, process control and cursors (MySQL)

【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001

VHDL实现单周期CPU设计

海思3559万能平台搭建:RTSP实时播放的支持
随机推荐
SSL证书错误怎么办?浏览器常见SSL证书报错解决办法
Variables, process control and cursors (MySQL)
【达梦数据库】备份恢复后要执行两个sql语句
Matlab Error (Matrix dimensions must agree)
[untitled]
leetcode
Significance and measures of source code confidentiality
Create applet from 0
Cocos2d-x box2d physical engine compilation settings
SQL中删除数据
R数据分析:cox模型如何做预测,高分文章复现
VHDL implementation of arbitrary size matrix addition operation
19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
pip只下载不安装
哈夫曼树基本概念
Basic concepts of Huffman tree
When you go to the toilet, you can clearly explain the three Scheduling Strategies of scheduled tasks
cocos3——8. Implementation Guide for beginners
【colmap】已知相机位姿情况下进行三维重建
Domcontentloaded and window onload