# up geo
This commit is contained in:
parent
434d9bd012
commit
636e0877b7
|
@ -20,6 +20,7 @@ export default {
|
|||
map: null,
|
||||
flag: false,
|
||||
mapClick: false,
|
||||
geo: [],
|
||||
defaultPositions: [
|
||||
{
|
||||
title: '海洋公园',
|
||||
|
@ -164,6 +165,8 @@ export default {
|
|||
var str = ['定位成功']
|
||||
str.push('经度:' + data.position.getLng())
|
||||
str.push('纬度:' + data.position.getLat())
|
||||
this.geo = [data.position.getLng(), data.position.getLat()]
|
||||
console.log(this.geo)
|
||||
if (data.accuracy) {
|
||||
str.push('精度:' + data.accuracy + ' 米')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue