百度地图api上很多元素层级设置都是在options参数里设置
例如:
let circle = new BMapGL.Circle(new BMapGL.Point(item.lot, item.lat), 1000, {
strokeColor: '#CBE0E6',
strokeWeight: 0,
strokeOpacity: 0,
fillColor: '#CBE0E6',
zIndex: 999
});
但是好像并没有作用,后面发现 circle.zIndex = 999,这样就起作用了,同理marker点也是marker.zIndex = 99;