官网例子,比着写的,操作的。。。但是跑不起来
一直断在
// 使用高精度位置
Laya.Geolocation.enableHighAccuracy = true;
index.html配置如下:
<!--jsfile--Custom-->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=LIhOlvWfdiPYMCsK5wsqlFQD8wW4Bfy6"></script>
<!--jsfile--Custom-->
代码是抄的官网例子直接复制粘贴