-
我在地图上设置了2个实体,一个里面是很多线段,一个里面很多点。我现在想控制点击时显示或者隐藏线段。 |
Beta Was this translation helpful? Give feedback.
Answered by
KKindom
Jul 24, 2022
Replies: 1 comment 2 replies
-
我发现我的问题了,我重新设置线段id,通过 viewer.entities.getById("rain").show = false; 循环设置show属性即可。 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
KKindom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我发现我的问题了,我重新设置线段id,通过 viewer.entities.getById("rain").show = false; 循环设置show属性即可。
但是我想问下大家,实体数量很多的情况下,反应会慢很多,就是过几秒才会有反应。
我时1050ti,这种大量的实体需要隐藏的话,怎么处理性能会好一些?