flx:应急报警添加姓名

This commit is contained in:
X_Rian 2024-08-08 16:21:30 +08:00
parent 9ab04c4f78
commit db706b3cc3

View File

@ -664,6 +664,11 @@ export default {
// offset: new AMap.Pixel((-15 * (index + 1)), -30),
})
console.log(item);
normalMarker.setLabel({
// offset: new AMap.Pixel(20, -10), //
content: item.alarmPersonName, //
direction: 'top' //
});
normalMarker.content =
'<p><b>报警姓名:</b>' + item.alarmPersonName + '</p>' +
'<p><b>类型:</b>' + item.emergencyTypeName + '</p>' +