billy-poon / echarts-amap

an echarts extension to support AMap(http://lbs.amap.com/)
MIT License
60 stars 31 forks source link

The zIndex of the custom layer cannot be customized. #6

Closed kxw1059 closed 6 years ago

kxw1059 commented 6 years ago

When I add some AMap's own layers, they cover the echarts layer.

dfEric commented 6 years ago

能说的更详细点吗,或者贴些代码

billy-poon commented 6 years ago
var layer = echartInstance.getModel().getComponent('amap').getLayer();
layer.setzIndex(...);

hope this helps:)

kxw1059 commented 6 years ago

thanks