echarts注册地图不同模块设置不同颜色问题

我这个项目搞的是深圳地图,然后将宝安区高亮显示,代码如下:
geo: {
show: true,
zoom: 1.2,
map: '深圳',
aspectScale: 1,
roam: true,
label: {
	color: '#ffffff',
	show: true
	},
	itemStyle: {
		normal: {
			borderColor: '#2b82ca',//各模块边界线
			areaColor: '#051537',//地图背景色
			borderWidth: 2,
			shadowColor; ‘rgba(63,218,255,0.3)’,
			shadowBlur: 20
			show: true
		},
		emphasis: {
			color: '#ffffff',
			areaColor: '#d4dded',//悬浮背景色
		}
	},
	regions: [
			{
				name: '宝安区',
				itemStyle: {
					areaColor: '#2a5bc1'//宝安区背景色
				},
				label: {
					color: '#ffffff',//字体颜色
					show: true
				}
			}
		]
	}

效果如下:

在这里插入图片描述

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值