优化--中国地图-气泡地图

qianming 2 years ago
parent a8738fcfb4
commit a797577e17

@ -134,8 +134,16 @@ export const widgetAirbubbleMap = {
], ],
}, },
{ {
name: '字体设置', name: '地图设置',
list: [ list: [
{
type: 'el-switch',
label: '文字显示',
name: 'isShowMap',
required: false,
placeholder: '',
value: true
},
{ {
type: 'el-input-number', type: 'el-input-number',
label: '文字大小', label: '文字大小',

@ -215,24 +215,12 @@ export default {
options: { options: {
//backgroundColor: '#0F1C3C', //backgroundColor: '#0F1C3C',
tooltip: { tooltip: {
show: true, trigger: 'item',
formatter: function (params) { formatter: function (params) {
if (params.value.length >1 ) { if (params.value.length >1 ) {
return ( return params.data.name + "" + params.data.value[2];
"  " +
params.name +
"   " +
params.value[2] +
"  "
);
} else { } else {
return ( return params.name;
"  " +
params.name +
"   " +
params.value +
"  "
);
} }
} }
}, },
@ -472,7 +460,7 @@ export default {
const label = this.options.series[0]["label"]; const label = this.options.series[0]["label"];
const normal = { const normal = {
position: "right", position: "right",
show: true, show: optionsSetup.isShowMap,
color: optionsSetup.fontTextColor, color: optionsSetup.fontTextColor,
fontSize: optionsSetup.fontTextSize, fontSize: optionsSetup.fontTextSize,
fontWeight: optionsSetup.fontTextWeight fontWeight: optionsSetup.fontTextWeight

Loading…
Cancel
Save