mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 07:10:27 +08:00
优化地图标签
This commit is contained in:
@@ -57,10 +57,24 @@ Vue.component("traffic-map-box", {
|
|||||||
areaColor: "#E9F0F9",
|
areaColor: "#E9F0F9",
|
||||||
borderColor: "#DDD"
|
borderColor: "#DDD"
|
||||||
},
|
},
|
||||||
|
label: {
|
||||||
|
show: false,
|
||||||
|
fontSize: "10px",
|
||||||
|
color: "#fff",
|
||||||
|
backgroundColor: "#8B9BD3",
|
||||||
|
padding: [2, 2, 2, 2]
|
||||||
|
},
|
||||||
emphasis: {
|
emphasis: {
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
areaColor: "#8B9BD3",
|
areaColor: "#8B9BD3",
|
||||||
opacity: 1.0
|
opacity: 1.0
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
show: true,
|
||||||
|
fontSize: "10px",
|
||||||
|
color: "#fff",
|
||||||
|
backgroundColor: "#8B9BD3",
|
||||||
|
padding: [2, 2, 2, 2]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//select: {itemStyle:{ areaColor: "#8B9BD3", opacity: 0.8 }},
|
//select: {itemStyle:{ areaColor: "#8B9BD3", opacity: 0.8 }},
|
||||||
@@ -107,6 +121,12 @@ Vue.component("traffic-map-box", {
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
areaColor: bgColor,
|
areaColor: bgColor,
|
||||||
opacity: fullOpacity
|
opacity: fullOpacity
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
show: true,
|
||||||
|
formatter: function (args) {
|
||||||
|
return args.name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
|
|||||||
Reference in New Issue
Block a user