气泡地图功能菜单增加

qianming 3 years ago
parent 05c26a2a85
commit adafb47b09

@ -5908,13 +5908,13 @@ const widgetTools = [
{ {
name: '地图块颜色', name: '地图块颜色',
list: [ list: [
{ /* {
type: 'vue-color', type: 'vue-color',
label: '0%处颜色', label: '0%处颜色',
name: 'font0PreColor', name: 'font0PreColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '' value: '#073684'
}, },
{ {
type: 'vue-color', type: 'vue-color',
@ -5922,15 +5922,15 @@ const widgetTools = [
name: 'font100PreColor', name: 'font100PreColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '' value: '#061E3D'
}, },*/
{ {
type: 'vue-color', type: 'vue-color',
label: '高亮色', label: '高亮渐变色',
name: 'fontHighlightColor', name: 'fontHighlightColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '' value: '#2B91B7'
}, },
], ],
}, },
@ -5984,43 +5984,42 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'staticData', relactiveDomValue: 'staticData',
value: '[' + value: [
'{"value": 1,"name": "南海诸岛"},' + {"name":"南海诸岛","value":1},
'{"value": 524,"name": "北京"},' + {"name":"北京","value":524},
'{"value": 14,"name": "天津"},' + {"name":"天津","value":14},
'{"value": 150,"name": "上海"},' + {"name":"上海","value":150},
'{"value": 75,"name": "重庆"},' + {"name":"重庆","value":75},
'{"value": 13,"name": "河北"},' + {"name":"河北","value":13},
'{"value": 83,"name": "河南"},' + {"name":"河南","value":83},
'{"value": 11,"name": "云南"},' + {"name":"云南","value":11},
'{"value": 19,"name": "辽宁"},' + {"name":"辽宁","value":19},
'{"value": 15,"name": "黑龙江"},' + {"name":"黑龙江","value":15},
'{"value": 69,"name": "湖南"},' + {"name":"湖南","value":69},
'{"value": 260,"name": "安徽"},' + {"name":"安徽","value":260},
'{"value": 39,"name": "山东"},' + {"name":"山东","value":39},
'{"value": 4, "name": "新疆"},' + {"name":"新疆","value":4},
'{"value": 31, "name": "江苏"},' + {"name":"江苏","value":31},
'{"value": 104, "name": "浙江"},' + {"name":"浙江","value":104},
'{"value": 36, "name": "江西"},' + {"name":"江西","value":36},
'{"value": 1052, "name": "湖北"},' + {"name":"湖北","value":1052},
'{"value": 33, "name": "广西"},' + {"name":"广西","value":33},
'{"value": 347, "name": "甘肃"},' + {"name":"甘肃","value":347},
'{"value": 8, "name": "山西"},' + {"name":"山西","value":8},
'{"value": 157,"name":"内蒙古"},' + {"name":"内蒙古","value":157},
'{"value":22,"name":"陕西"}' + {"name":"陕西","value":22},
'{"value":4,"name":"吉林"}' + {"name":"吉林","value":4},
'{"value":36,"name":"福建"}' + {"name":"福建","value":36},
'{"value":39,"name":"贵州"}' + {"name":"贵州","value":39},
'{"value":996,"name":"广东"}' + {"name":"广东","value":996},
'{"value":27,"name":"青海"}' + {"name":"青海","value":27},
'{"value":31,"name":"西藏"}' + {"name":"西藏","value":31},
'{"value":46,"name":"四川"}' + {"name":"四川","value":46},
'{"value":16,"name":"宁夏"}' + {"name":"宁夏","value":16},
'{"value":22,"name":"海南"}' + {"name":"海南","value":22},
'{"value":6,"name":"台湾"}' + {"name":"台湾","value":6},
'{"value":2,"name":"香港"}' + {"name":"香港","value":2},
'{"value":9,"name":"澳门"}' + {"name":"澳门","value":9}],
']',
}, },
{ {
type: 'dycustComponents', type: 'dycustComponents',

@ -406,6 +406,7 @@ export default {
this.setOptionDataValue(); this.setOptionDataValue();
this.setOptionsData(); this.setOptionsData();
this.setOptionAirSize(); this.setOptionAirSize();
this.setOptionMapBlocak();
}, },
// //
setOptionsTitle() { setOptionsTitle() {
@ -439,7 +440,7 @@ export default {
}; };
label['normal'] = normal; label['normal'] = normal;
}, },
setOptionDataValue(){ setOptionDataValue() {
const optionsSetup = this.optionsSetup; const optionsSetup = this.optionsSetup;
const label = this.options.series[1]['label']; const label = this.options.series[1]['label'];
const normal = { const normal = {
@ -454,13 +455,34 @@ export default {
cnNum: { cnNum: {
fontSize: optionsSetup.fontDataSize, fontSize: optionsSetup.fontDataSize,
color: optionsSetup.fontDataColor, color: optionsSetup.fontDataColor,
fontWeight:optionsSetup.fontDataWeight, fontWeight: optionsSetup.fontDataWeight,
} }
} }
}; };
label['normal'] = normal; label['normal'] = normal;
}, },
setOptionAirSize(){ setOptionMapBlocak() {
const optionsSetup = this.optionsSetup;
const itemStyle = this.options.series[0]['itemStyle'];
//
const emphasis = {
areaColor: {
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: '#073684' // 0%
}, {
offset: 1,
color: optionsSetup.fontHighlightColor // 100%
}],
},
};
itemStyle['emphasis'] = emphasis;
},
setOptionAirSize() {
minSize4Pin = this.optionsSetup.fontAirSize minSize4Pin = this.optionsSetup.fontAirSize
}, },
// //
@ -474,7 +496,10 @@ export default {
); );
}, },
staticDataFn(val) { staticDataFn(val) {
const serise1 = this.options.series[1];
serise1['data'] = convertData(val)
const serise = this.options.series[0];
serise['data'] = val
}, },
dynamicDataFn(val, refreshTime) { dynamicDataFn(val, refreshTime) {
if (!val) return; if (!val) return;

Loading…
Cancel
Save