-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Line annotations don't appear immediately on iOS #2380
Comments
You'd looked at line annotations at one point Stefan, I think. Can you take a quick look at this one when you get a chance? |
Here's an example video showing the behavior within the context of my app: polyflicker.mov.mp4I'll try to come up with a minimal example soon. When you switch modes, the routes aren't drawn until either:
Because my app logic zooms the map to fit the new polylines, it was actually a bit hard to notice at first - the behavior could only manifest if the new route line had the same bbox as the old. e.g. after the final click in the video (~14s) the map pans slightly, so the routes appear immediately (as expected). |
In my application I've been able to reproduce this with 6.4.1, and as far back as 6.0.0. Going back further than that is inconvenient, because everything was renamed (Mapbox -> Maplibre). Patching up the names in my app is doable, but then I get a segfault, so I can't verify if this behavior existed before 6.0.0.
@JesseCrocker - It's also broken for me in 6.2.0. Can you confirm the last good version for you? If you're sure that your behavior worked prior to 6.3.0, then it seems we're experiencing different things. I haven't ruled out that I'm doing something dumb. 😅 |
I upgraded my app from v5.13.0 to the latest v6.4.1 and at first glance everything seems to be working and refreshing instantly. I tested both I wonder what I'm missing or why my app is working? 🤔 By the way, holy moly the simulator feels so much faster now with metal rather than OpenGL. 🚀
|
Testing Notes:
Test 1 - MLNPolyline
MLNPolyline_Test1.movTest 2 - Dynamically adding sources/layers to the map style
MLNPolyline_Test2.movTest 3 - Adding Removing MLNAnnotation
test3_smaller.mov |
I have the latest v6.4.1 running on my actual production device now as well and I'll do some testing there too |
Not 5 seconds for me but definitely not as snappy as expected. Edit: Actually, the delay is in the triggering of the Edit 2: So, it's instant for me... Screen.Recording.2024-05-12.at.16.34.31.mov |
Testing Notes:
A few things I noticed on an actual device:
I'm still confused as to why I'm not seeing these issues on v6.4.1 that you all are. 🤔 |
Describe the bug
When a line annotation(MLNPolyline) is added to the map, it should appear immediately. Instead it generally takes around 5 seconds to appear, but moving the map seems to make it appear immediately. In my application it happens every time on the simulator. I had thought it was simulator only, but now im seeing reports from users on old phones(iPhone 11) that they are seeing it on device.
This issue was introduced in 6.3.0, presumably in #2148
To Reproduce
Steps to reproduce the behavior:
Expected behavior
annotation appears immediately
Platform information (please complete the following information):
Additional context
I have tried to come up with a test case for this, but my test case works fine.
The text was updated successfully, but these errors were encountered: