Closed ColinCLL closed 7 years ago
I'm also struggling to synchronize two map layers, any solution to this?
@ColinCLL , your provided sample shows Errors exist in code, is it possible to provide a demo that can pasted to the https://ecomfe.github.io/echarts-examples editor?
I was actually able to achieve this by setting geoIndex:0, however, I can't use itemStyle for data items if this is linked. This is potentially related to:
"When geoIndex specified, series-map.map other style configurations like series-map.itemStyle will not work, but cooresponding configurations in geo component will be used."
I understand why geo is used for shared styles but shouldn't the data style have a priority?
@jarben Did you want this example ?
Yeah @ColinCLL , just if you can paste the code? The previous code example can't be pasted to the examples editor as there are errors.
But I found that the code works.Maybe you shoule paste my code to https://ecomfe.github.io/echarts-examples/public/editor.html?c=effectScatter-map
Ah, that seems to work now, not sure what the issue was. Anyway, you can fix your problem by adding:
geoIndex:0
to both map series
more info here: https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.geoIndex
thank you so much.
请问你实现了同时缩放两层地图吗,我也遇到了同样的问题,还不知道如何改这个配置。
@huimei123 上面不是已经有人给出例子了吗
感谢🙏
One-line summary [问题简述]
我一共用了两层地图,一层是series里面,一层是geo里面,使用raom缩放只能缩放最外面一层不能同步缩放。
Version & Environment [版本及环境]
Expected behaviour [期望结果]
同步缩放两层地图
ECharts option [ECharts配置项]