zhijie-liang commented on issue #6343:
URL: https://github.com/apache/echarts/issues/6343#issuecomment-1596859699
> @huimei123上面不是已经有人给出来例子了吗
这是我的option配置项,
option: {
toolbox: {
show: true,
orient: "vertical",
left: "right",
feature: {
saveAsImage: {},
},
},
tooltip: {
formatter: "{b} {c} (人)",
},
visualMap: {
type: "piecewise",
pieces: [
{ min: 100000000, label: ">100000000", color: "#9dc49f" },
{ min: 10000000, max: 99999999, label: "10000000-99999999",
color: "#a8caa9" },
{ min: 1000000, max: 9999999, label: "1000000-9999999", color:
"#b3d1b4" },
{ max: 999999, label: "<1000000", color: "#bed7bf" },
],
orient: "vertical",
left: "20",
top: "400",
},
backgroundColor: "white",
series: [
{
map: "chinamap",
type: "map",
zoom: 1,
label: {
show: true,
fontSize: 10,
color: "red",
},
itemStyle: {
color: "transparent",
borderWidth: "0.5",
borderColor: "#579bd3",
},
emphasis: {
label: {
show: true,
fontSize: 16,
color: "#fff",
},
itemStyle: {
areaColor: "#579bd3",
},
},
select: {
itemStyle: {
areaColor: "#579bd3",
},
},
roam: true,
},
],
geo: [
{
map: "chinamap",
roam: true,
// silent: true,
top: "12%",
itemStyle: {
color: "transparent",
borderWidth: "0",
areaColor: "#e0e7c8",
shadowBlur: "12",
},
emphasis: {
label: {
show: false,
},
itemStyle: {
borderWidth: 0,
borderColor: "#31A0E6",
},
},
},
],
},
我是将geo这层地图作为series地图的阴影来实现3D效果,所以加上了top:
"12%"偏移量,当我在series里加上geoIndex: 0,后就只剩一层地图了,就无法实现3D效果了。如果要实现两层地图都存在时缩放同步该怎样呢?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]