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