当前位置:网站首页>Basic case of Baidu map
Basic case of Baidu map
2022-04-23 17:03:00 【Eli-sun】
<script type="text/javascript"
src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=cXG18I5SNt2EZNvG7CVyE4jjTr8swlo4"
></script>
// This was introduced ak To apply for a Baidu map developer account , You can click in through the following website
https://lbsyun.baidu.com/index.php?title=jspopularGL/guide/helloworld
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script type="text/javascript"
src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=cXG18I5SNt2EZNvG7CVyE4jjTr8swlo4"
></script>
<style>
html{
height: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body{
height: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map{
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
.anchorBL, .BMap_cpyCtrl{
display: none;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
console.log(window.BMapGL);
var map = new BMapGL.Map('map') // Initialize map
var point = new BMapGL.Point(116.404,39.915) // Set map coordinates
map.centerAndZoom(point, 10) // Central Map display level
map.enableScrollWheelZoom(true) // Zoom in and out of the map through the scroll wheel
</script>
</body>
</html>
版权声明
本文为[Eli-sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230554289813.html
边栏推荐
- 面试百分百问到的进程,你究竟了解多少
- 1-4 configuration executable script of nodejs installation
- Detailed explanation of Niuke - Gloves
- Scope and scope chain in JS
- How to implement distributed locks with redis?
- Rtklib 2.4.3 source code Notes
- ∑GL-透视投影矩阵的推导
- PostgreSQL column storage and row storage
- New keyword learning and summary
- 1-3 nodejs installation list configuration and project environment
猜你喜欢

VLAN高级技术,VLAN聚合,超级Super VLAN ,Sub VLAN

Bottom processing of stack memory in browser

Smart doc + Torna generate interface document

Modify the test case name generated by DDT

【生活中的逻辑谬误】稻草人谬误和无力反驳不算证明

面试百分百问到的进程,你究竟了解多少

STM32__ 03 - beginner timer

DDT + Excel for interface test

org. apache. parquet. schema. InvalidSchemaException: A group type can not be empty. Parquet does not su

Detailed explanation of the penetration of network security in the shooting range
随机推荐
Calculation formula related to tolerance analysis
Summary of common websites
PostgreSQL列存与行存
Use case labeling mechanism of robot framework
聊一聊浏览器缓存控制
Milvus 2.0 質量保障系統詳解
STM32__ 03 - beginner timer
Customize my_ Strcpy and library strcpy [analog implementation of string related functions]
Production environment——
Derivation of Σ GL perspective projection matrix
On lambda powertools typescript
Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme
Shell script -- shell programming specification and variables
Log4j output log information to file
Introduction to how to set up LAN
Error in v-on handler: "typeerror: cannot read property 'resetfields' of undefined"
org. apache. parquet. schema. InvalidSchemaException: A group type can not be empty. Parquet does not su
CentOS MySQL multi instance deployment
[registration] tf54: engineer growth map and excellent R & D organization building
DDT + Excel for interface test