|
@@ -133,9 +133,7 @@ export default {
|
|
this.AMap = await this.getMapLoader()
|
|
this.AMap = await this.getMapLoader()
|
|
// 自定义定位按钮
|
|
// 自定义定位按钮
|
|
this.geolocation = new AMap.Geolocation({
|
|
this.geolocation = new AMap.Geolocation({
|
|
- enableHighAccuracy: true, // 高精度定位
|
|
|
|
timeout: 3000, // 定位超时时间
|
|
timeout: 3000, // 定位超时时间
|
|
- zoomToAccuracy: true, // 定位成功后再调整视野
|
|
|
|
showCircle: false, // 定位成功有个圆形范围
|
|
showCircle: false, // 定位成功有个圆形范围
|
|
showButton: false // 是否显示按钮
|
|
showButton: false // 是否显示按钮
|
|
})
|
|
})
|