echarts map地图设置外边框或者阴影


geo: { map: 'china', center: [112.194115019531, 23.582111640625], zoom: 12, aspectScale: 1, //长宽比 label: { normal: { show: true, textStyle: { fontSize: 16, color: '#ccc' } }, emphasis: { show: false, textStyle: { color: '#ccc' } } }, roam: false, itemStyle: { normal: { borderColor: "#fff", borderWidth: 5, areaColor: '#272235', fontWeightL: 700, /* shadowBlur:20, shadowColor: '#fff',*/ }, emphasis: { areaColor: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: '#3f15d6' // 0% 处的颜色 }, { offset: 1, color: '#d243cd' // 100% 处的颜色 }], globalCoord: false // 缺省为 false } } } }, series: [ { type: 'map', map: 'china', center: [112.194115019531, 23.582111640625], zoom: 12, geoIndex: 1, aspectScale: 1, //长宽比 showLegendSymbol: false, // 存在legend时显示 label: { normal: { show: true, textStyle: { fontSize: 16, color: '#ccc' } }, emphasis: { show: false, textStyle: { color: '#ccc' } } }, roam: false, itemStyle: { normal: { areaColor: '#272235', borderColor: '#fff', fontWeightL: 700, borderWidth: 1 }, emphasis: { areaColor: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: '#3f15d6' // 0% 处的颜色 }, { offset: 1, color: '#d243cd' // 100% 处的颜色 }], globalCoord: false // 缺省为 false } } }, data: [] } ]


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM