小白初试,这里用广西省为例,但是感觉百度地图加载属实有点慢=。=
以下是完整代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=TLjkUDAFsU0vyG7dVn6f8Hbx165SCELO"></script>
<script type="text/javascript" src="https://bj.bcebos.com/v1/mapopen/api-demos/data/province.js"></script>
<script src="https://code.bdstatic.com/npm/mapvgl@1.0.0-beta.141/dist/mapvgl.min.js"></script>
<script src="https://bj.bcebos.com/v1/mapopen/cms/bmapgldemo/custom/mapstyleblack.js"></script>
<title>广西壮族自治区</title>
<style>
h