当前位置:网站首页>Baidu Map 3D rotation and tilt angle adjustment
Baidu Map 3D rotation and tilt angle adjustment
2022-04-23 17:03:00 【Eli-sun】
<!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, 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>
<!--
Can be in Baidu map - Developing documents - Coordinate picker Search the place you want and get the longitude and latitude of the place
-->
<div id="map"></div>
<script>
console.log(window.BMapGL);
var map = new BMapGL.Map('map') // Initialize map
var point = new BMapGL.Point(116.196608,40.253428) // Set map coordinates
map.centerAndZoom(point, 18) // Central Map display level
map.enableScrollWheelZoom(true) // Zoom in and out of the map through the scroll wheel
var heading = 0
map.setHeading(heading) // Adjust the rotation angle
map.setTilt(70) // Adjust the tilt angle
// setInterval(()=>{
// heading++
// map.setHeading(heading)
// },500)
</script>
</body>
</html>
版权声明
本文为[Eli-sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230554289731.html
边栏推荐
- Error in v-on handler: "typeerror: cannot read property 'resetfields' of undefined"
- websocket
- groutine
- [problem solving] [show2012] random tree
- Use case labeling mechanism of robot framework
- Wiper component encapsulation
- Pytorch: the pit between train mode and eval mode
- Mock test using postman
- vscode如何比较两个文件的异同
- Sub database and sub table & shardingsphere
猜你喜欢
∑GL-透视投影矩阵的推导
English | day15, 16 x sentence true research daily sentence (clause disconnection, modification)
Getting started with JDBC
MySQL master-slave replication
【WPF绑定3】 ListView基础绑定和数据模板绑定
Milvus 2.0 质量保障系统详解
Modify the test case name generated by DDT
批量制造测试数据的思路,附源码
DDT + Excel for interface test
STM32__03—初识定时器
随机推荐
vscode如何比较两个文件的异同
ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
VLAN advanced technology, VLAN aggregation, super VLAN, sub VLAN
First knowledge of go language
An essay on the classical "tear down the wall in thinking"
TypeError: set_ figure_ params() got an unexpected keyword argument ‘figsize‘
Read a blog, re understand closures and tidy up
Introduction to new functions of camtasia2022 software
Zhimeng dedecms security setup Guide
Go language, array, string, slice
Use case labeling mechanism of robot framework
PostgreSQL column storage and row storage
Log4j output log information to file
PostgreSQL列存与行存
Deeply understand the relevant knowledge of 3D model (modeling, material mapping, UV, normal), and the difference between displacement mapping, bump mapping and normal mapping
Deepinv20 installation MariaDB
The new MySQL table has a self increasing ID of 20 bits. The reason is
freeCodeCamp----shape_ Calculator exercise
Generate random numbers with high quality and Gaussian distribution
Encapsulating the logging module