-
Notifications
You must be signed in to change notification settings - Fork 157
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
Features not showing up until zooming in #1436
Comments
@maxmiranda, we would be happy to look into this for you. Do you happen to have a minimal sample app you can provide that reproduces this behavior? |
@ZiZasaurus thanks so much! I do not at the moment, I can try to create one but unsure how long that will take because it would have to involve re-creating a lot of the complex logic described above. Happy to simply give you access to our repo if you want to play around with it. |
@ZiZasaurus I'm now finding the issue has gotten worse and is occurring every single time a user opens the app. I would greatly appreciate your assistance on this. I've given you access to our repo, and I'd be happy to schedule some time on your calendar to explain in more detail what's going on. |
@maxmiranda @ZiZasaurus Hi! Just wanna check if there is any update on this. I am not using IOS but I faced this issue on my web application as well (three.js 3D model not appearing until zooming in). |
@mfazekas @macdrevx @maxmiranda |
Might not be most satisfactory answer but for me it literally just stopped ahppening out of the blue after a certain point. Maybe it takes time for Mapbox to get used to rendering all your features, i have no idea? |
RPReplay_Final1668421376.mov
|
Any one facing same issue I has temporary fix File : RCTMGLStyle.m From :
To :
If any one facing pattern issue with images running on |
* Bump Snaphot and update some APIs * Declare padding argument as an optional * Changelog
* Bump Snaphot and update some APIs * Declare padding argument as an optional * Changelog
* Bump Snaphot and update some APIs * Declare padding argument as an optional * Changelog
Environment
Observed behavior and steps to reproduce
In my app, I blanket the map with square features (aka blocks). Intermittently, these square features are not showing up on the map until I zoom in or zoom out. Then they render perfectly normally.
trimmed.bug.features.not.showing.mov
Expected behavior
When I load the app, all the features should be present.
Notes / preliminary analysis
I will admit, my app uses features in a somewhat complex way: we're storing information on who owns which blocks in our database. And the blocks only become visible once we fetch the info on block ownership and then set the feature state of the corresponding features to reflect the block ownership (we have layers that style the blocks based on the feature state).
HOWEVER, it is my theory that none of that is relevant. Because, when I zoom in or zoom out, there are NO database calls whatsoever. None of my code relating to: fetching block ownership info, setting up the map layers or source, or setting the feature state based on the block ownership gets called upon zoom in or zoom out. I don't think it's a race condition on my end either because i'm experiencing this issue intermittently but the order of us: adding the map overlay, fetching the database info, then setting the feature states doesn't change.
Additional links and references
I did find this issue which seems like it pertains to my issue, but it's for Mapbox GL Native, so i have no idea if it's relevatn: mapbox/mapbox-gl-native#1675.
Would very much appreciate someone looking into this!!
The text was updated successfully, but these errors were encountered: