<script type=text/javascript src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=您的密钥"></script>
需要在
<script> var map = new BMapGL.Map('c'); map.centerAndZoom(new BMapGL.Point(116.414, 39.915), 15); map.enableScrollWheelZoom(true); // 创建点标记 var marker1 = new BMapGL.Marker(new BMapGL.Point(116.414, 39.915)); // 在地图上添加点标记 map.addOverlay(marker1); </script>
之前