-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MGLSymbolStyleLayer predicate option change #12259
Comments
Hi, @JamieJeon. Thank you for using Mapbox. I am sorry to hear you are having some issues. In order to track the problem could you please share a code snippet or test app? Also @ChrisLoer flagging this as it seems related to #11780 |
Hi @JamieJeon, if I'm understanding that correctly, it sounds like expected behavior. The |
@ChrisLoer Thank you for answering this. |
Hi @JamieJeon, there's no way to force collision detection to happen synchronously. I think you probably want to design around the assumption that this is asynchronous -- that stays closest to how the underlying map works. But if it is really necessary to be able to get the count synchronously, I think you'd have to implement it yourself. Something like "I just added this symbol, and I know the symbol has |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
Platform: iOS
Mapbox SDK version: 4.1.0
Steps to trigger behavior
Expected behavior
I expected that the count of visible features is 2 when the predicate is like this.
I expected that the count of visible features is 3 when the predicate is nil back.
Actual behavior
Actual the count of visible features is 3 when the case 1
Actual the count of visible features is 2 when the case 2
The visible features aren't refreshed immediately after changing predicate.
If there is a changed feature after changing predicate then I got the collect list of visible features.
Also If I move the map after changing predicate, I got the collect list.
Is it a bug???
The text was updated successfully, but these errors were encountered: