|
|
@ -164,10 +164,7 @@ export default {
|
|
|
|
setMarker(e, i) {
|
|
|
|
setMarker(e, i) {
|
|
|
|
let marker = new AMap.Marker({
|
|
|
|
let marker = new AMap.Marker({
|
|
|
|
position: e, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
|
|
|
|
position: e, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
|
|
|
|
title: `
|
|
|
|
title: `经度:${e[0]}\n纬度:${e[1]}\n时间:${i}`,
|
|
|
|
经度:${e[0]}
|
|
|
|
|
|
|
|
纬度:${e[1]}
|
|
|
|
|
|
|
|
时间:${i}`,
|
|
|
|
|
|
|
|
offset:new AMap.Pixel(-2.5,-2.5),
|
|
|
|
offset:new AMap.Pixel(-2.5,-2.5),
|
|
|
|
content:`<div style="width: 5px;height: 5px; border-radius: 50%;background-color: #1890ff"> </div>`
|
|
|
|
content:`<div style="width: 5px;height: 5px; border-radius: 50%;background-color: #1890ff"> </div>`
|
|
|
|
});
|
|
|
|
});
|
|
|
|