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