rc-bmap
rc-bmap copied to clipboard
Marker 组件无法通过state动态设置 zIndex
Do you want to request a feature or report a bug?
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run. Paste the link to your CodeSandbox (https://codesandbox.io/s/jnnxrwq5y3) example below:
What is the expected behavior?
您好,我已向百度官方提了BUG,我使用百度官方demo进行测试也无法通过setZIndex
方法进行设置,目前唯一能控制zIndex的方式是根据map.addOverlay
的先后顺序来的… 至于官方的解决方案,还请等百度给我回复后,在回复你。
我也遇到同样的问题。
@JustLikeU 目前如果想修改重叠Marker
的zIndex
顺序,只能调整两者的渲染顺序,渲染顺序决定了map.addOverlay
的顺序,目前zIndex
属性是无效的。