Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置Marker的zIndex属性无效果 #750

Closed
fupingwu opened this issue Jun 24, 2022 · 2 comments
Closed

设置Marker的zIndex属性无效果 #750

fupingwu opened this issue Jun 24, 2022 · 2 comments

Comments

@fupingwu
Copy link

fupingwu commented Jun 24, 2022

RN: 0.66.1
设备:IphoneXR、小米cc 9e
map3d:3.0.6
大佬你好:

现在有个问题,地图中的Marker是根据数据自定义的,然后想通过操作数据改变zIndex,将数据对应Marker置于最顶层,但是发现设置了zIndex为最大的Marker,不会置于最顶层。手动点击Marker的时候不需要设置zIndex却又可以置于最顶层,能麻烦看下吗
1

@fupingwu fupingwu changed the title 设置Marker的zIndex熟悉无效果 设置Marker的zIndex属性无效果 Jun 24, 2022
@fupingwu
Copy link
Author

fupingwu commented Jul 4, 2022

问题解决了。因为是接口数据遍历渲染的有一个唯一的key值,所以通过修改当前的key值重新渲染实现了。

@fupingwu fupingwu closed this as completed Jul 4, 2022
@mrcao2011
Copy link

ios也正常了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants