From c2dd0d1203bd4e37cbd896bde4b15f85fcce8b78 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Sat, 08 Oct 2022 17:26:43 +0800
Subject: [PATCH] 更换为接口查询影像数据
---
src/position/position.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/position/position.js b/src/position/position.js
index 1091582..eb56b4b 100644
--- a/src/position/position.js
+++ b/src/position/position.js
@@ -1,6 +1,6 @@
/**
* 高德地图定位
-*
+*
*/
// export const location = {
// undefined
@@ -34,7 +34,7 @@
AMap.plugin('AMap.Geolocation', function () {
var geolocation = new AMap.Geolocation({
// 是否使用高精度定位,默认:true
- enableHighAccuracy: true,
+ enableHighAccuracy: true
// 设置定位超时时间,默认:无穷大
// timeout: 10000,
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
@@ -48,13 +48,13 @@
geolocation.getCurrentPosition()
AMap.event.addListener(geolocation, 'complete', onComplete)
AMap.event.addListener(geolocation, 'error', onError)
- function onComplete(data) {
+ function onComplete (data) {
// data是具体的定位信息
- fn(data);
+ fn(data)
}
- function onError(data) {
+ function onError (data) {
// 定位出错
- fn(data);
+ fn(data)
}
})
-};
\ No newline at end of file
+}
--
Gitblit v1.9.3