|
|
@ -119,7 +119,7 @@ const setMarker = async () => {
|
|
|
|
offset: new AMap.Pixel(0, 0),
|
|
|
|
offset: new AMap.Pixel(0, 0),
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
direction: 'top',
|
|
|
|
direction: 'top',
|
|
|
|
content: `<div class='info'>${e.carLicense || ''} - <span style="color: ${e.state === 0? 'green">在线':'red">离线'}</span></div><div class='info'>${e.two || ''} ${e.three || ''}</div><div class='info'>${e.four || ''}</div>`, //设置文本标注内容
|
|
|
|
content: `<div class='info'>${e.carLicense || ''} - <span style="color: ${e.state === 0? 'green">在线':'red">离线'}</span></div><div class='info'>${e.two || ''} ${e.three || ''}</div><div class='info'>${e.laseRuntime || ''}</div>`, //设置文本标注内容
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|