CN-1218 feat: 地图悬浮框下钻后去掉国旗占位
This commit is contained in:
@@ -165,6 +165,8 @@ export default {
|
||||
pktRetransPercent: t.packetRetransScore ? t.packetRetransScore.pktRetransPercent : null
|
||||
}
|
||||
t.tooltip = {}
|
||||
t.tooltip.width = t.province ? 0 : 18
|
||||
t.tooltip.marginRight = t.province ? 0 : 6
|
||||
t.tooltip.data = {
|
||||
establishLatencyMs: valueToRangeValue(data.establishLatencyMs, unitTypes.time).join(' '),
|
||||
httpResponseLatency: valueToRangeValue(data.httpResponseLatency, unitTypes.time).join(' '),
|
||||
@@ -241,7 +243,7 @@ export default {
|
||||
generatePolygonTooltipHTML () {
|
||||
const html = `
|
||||
<div class="map-tooltip" style="padding-bottom: 10px;">
|
||||
<div class="map-tooltip__title"><img src="/images/flag/{id}.png" class="filter-country-flag"/>{name}</div>
|
||||
<div class="map-tooltip__title"><img src="/images/flag/{id}.png" style="width: {tooltip.width}px;height: 12px;margin-right: {tooltip.marginRight}px;"/>{name}</div>
|
||||
<div class="map-tooltip__content">
|
||||
<div class="content-title">{tooltip.text.traffic}</div>
|
||||
<div class="content-row">
|
||||
|
||||
Reference in New Issue
Block a user