修改地图

dev
夜笙歌 1 year ago
parent 520ac115b8
commit ac4221c97e

@ -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>`
}); });

Loading…
Cancel
Save