|
|
|
@ -36,6 +36,14 @@ export class PopupService { |
|
|
|
* 处理单个标记弹窗 |
|
|
|
*/ |
|
|
|
handleSingleMarkerPopup(markerData: MarkerData): string { |
|
|
|
let gpsTypeName = '' |
|
|
|
if (markerData.gpsType === 0) { |
|
|
|
gpsTypeName = 'GPS' |
|
|
|
} else if (markerData.gpsType === 1) { |
|
|
|
gpsTypeName = 'WIFI' |
|
|
|
} else if (markerData.gpsType === 2) { |
|
|
|
gpsTypeName = '基站' |
|
|
|
} |
|
|
|
return ` |
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${markerData.name}</div> |
|
|
|
<div style="color: ${markerData.statusColor};"> |
|
|
|
@ -54,10 +62,10 @@ export class PopupService { |
|
|
|
<div>信号:${markerData.sig||''}</div> |
|
|
|
<div>时间:${markerData.timeStr ? markerData.timeStr : '-'} </div> |
|
|
|
<div> |
|
|
|
坐标:${markerData.coordinates[0].toFixed(6)}, ${markerData.coordinates[1].toFixed(6)}/${markerData.gpsType===0?"GPS":"基站"} |
|
|
|
坐标:${markerData.coordinates[0].toFixed(6)}, ${markerData.coordinates[1].toFixed(6)}/${gpsTypeName} |
|
|
|
</div> |
|
|
|
` |
|
|
|
// gpsType:0表示GPS,550表示基站(或者非0就判定为基站)
|
|
|
|
// gpsType:新0 GPS、1 Wi-Fi、2 基站,旧0表示GPS,550表示基站(或者非0就判定为基站)
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|