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

🐛 [BUG] Choropleth多次调用update去更新label中的field属性,会失效 #280

Open
aimerthyr opened this issue Mar 14, 2023 · 1 comment

Comments

@aimerthyr
Copy link
Contributor

aimerthyr commented Mar 14, 2023

🐛 Bug description [Please make everyone to understand it]

初始化进来去切换数据区域这个checkbox,是可以实现显示或关闭数据区域的label的,但是一旦我切换过全部区域这个checkbox之后,我再去切换数据区域这个checkbox就会失效了,感觉像是在调用update方法后,依然保留了上一次的结果,我的代码逻辑时没有问题的。

Please provide a link by forking these links L7Plot or GitHub repo, a minimal reproduction.

复现链接

  • Required Link to minimal reproduction:

📷 Step to reproduce

2023-03-14.13.34.44.mov

大佬短暂的看过一眼,这里是记录,辅助一下
image

🏞 Expected result

🚑 Any additional [like screenshots]

  • L7Plot Version: 0.5.1
  • Platform: masos
@meishenlieshou
Copy link

core/plot/index这一层定义的updateLabelLayer方法逻辑,应用在Choropleth地图上有点问题。
这个方法里创建的数据标签层没被Choropleth实例保存,反复更新option.label配置时,Label层重复创建,历史的没销毁也没更新。

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