rc-bmap icon indicating copy to clipboard operation
rc-bmap copied to clipboard

Marker 组件无法通过state动态设置 zIndex

Open yufengtan opened this issue 5 years ago • 3 comments

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: image

What is the expected behavior?

yufengtan avatar Mar 10 '19 13:03 yufengtan

您好,我已向百度官方提了BUG,我使用百度官方demo进行测试也无法通过setZIndex方法进行设置,目前唯一能控制zIndex的方式是根据map.addOverlay的先后顺序来的… 至于官方的解决方案,还请等百度给我回复后,在回复你。

JserWang avatar Apr 02 '19 11:04 JserWang

我也遇到同样的问题。

xwg2015 avatar May 07 '19 06:05 xwg2015

@JustLikeU 目前如果想修改重叠MarkerzIndex顺序,只能调整两者的渲染顺序,渲染顺序决定了map.addOverlay的顺序,目前zIndex属性是无效的。

JserWang avatar May 07 '19 09:05 JserWang