1.自定义的toolbox
消息回调
toolbox: { show: true, itemSize: 32, borderColor: '#0cb1b6', borderWidth: 1, borderType: 'dotted', orient: 'vertical', left: 1, top: 100, iconStyle:{ emphasis: { color: 'white', textPosition: 'right' } }, feature: { myTool1: { show: true, title: '显示统计图', icon: 'image://../Images/orderedList0.png', onclick: function (){ callbackTitleOne(); } }, myTool2: { show: true, title: '详情页', icon: 'image://../Images/orderedList1.png', onclick: function (){ alert('myToolHandler2') } } } //feature: { // magicType: { type: ['line', 'bar'] }, // restore: {} //} },