当前位置:网站首页>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 )~
边栏推荐
- Ubuntu20 installation redisjson record
- The latest 2022 review of "small sample deep learning image recognition"
- [C language] question set of IX
- qt-线程等01概念
- 函数重入、函数重载、函数重写自己理解
- 25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
- Sub pixel corner detection opencv cornersubpix
- leetcode
- ubuntu20安装redisjson记录
- Leetcode-02 (linked list question)
猜你喜欢
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)
Set static IP for raspberry pie
Flutter3.0, the applet is not only run across mobile applications
树莓派设置wifi自动连接
21. (article ArcGIS API for JS) ArcGIS API for JS rectangular acquisition (sketchviewmodel)
Appx code signing Guide
24. (ArcGIS API for JS) ArcGIS API for JS point modification point editing (sketchviewmodel)
Variables, process control and cursors (MySQL)
input_ delay
如何替换模型的骨干网络(backbone)
随机推荐
VHDL implementation of arbitrary size matrix addition operation
Jericho is in non Bluetooth mode. Do not jump back to Bluetooth mode when connecting the mobile phone [chapter]
U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022
CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
ubuntu20安装redisjson记录
Jerry's ble exiting Bluetooth mode card machine [chapter]
About Confidence Intervals
海思万能平台搭建:颜色空间转换YUV2RGB
[dream database] add the task of automatically collecting statistical information
1200.Minimum Absolute Difference
Depth analysis of compilation constants, classloader classes, and system class loaders
枚举通用接口&枚举使用规范
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
[cpk-ra6m4 development board environment construction based on RT thread studio]
【C语言】 题集 of Ⅸ
20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
Set static IP for raspberry pie
Lavel PHP artisan automatically generates a complete set of model+migrate+controller commands
Search of linear table