百度地图web api 手机端文字太小如何解决
下图是我的地图
如何修改为下面这种
下面是我写的html和js
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
border: 0;
}
body {
width: 100vw;
height: 100vh;
background: aqua;
}
button {
padding: 1.3vh 3vw;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 2.5px;
font-weight: 500;
color: #000;
background-color: #fff;
border: none;
border-radius: 45px;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease 0s;
cursor: pointer;
outline: none;
}
button:hover {
background-color: #23c483;
box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
color: #fff;
transform: translateY(-3px);
}
button:active {
transform: translateY(-1px);
}
</style>
</head>
<body>
<button onclick="init(Callback)"> Button
</button>
<script type="text/javascript">
function Callback(value) {
console.log(value)
}
</script>
<script type="text/javascript" src="/static/phone_baidumap.js"></script>
</body>
</html>
下面是js链接
https://hhyq.lanzouy.com/iYO0e097cn0h
我的需求,将百度地图内的文字或整个地图放大到正常能看见即可,如图二的地图