You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
I assume there is some delay in rendering new shape data on layer (like ~0.5s) and it could differ based on features count and layer drawing complexity.
It would be good to understand what caused this delay and how to deal with it - get a callback/delegate or a property like loaded etc. Please advice.
get a callback/delegate or a property like loaded etc.
Yes, a callback on tile load would be awesome (even more awesome if it came with a way to manipulate what has been loaded). mapbox/mapbox-gl-native#2775 tracks the various ways in which MGLMapViewDelegate doesn’t align with MKMapViewDelegate.
Fortunately, you may be able to wait for the map’s next render cycle by implementing either -mapViewDidFinishRenderingFrame: or the undocumented -mapViewDidFinishRenderingMap:fullyRendered:. (The fullyRendered: flag isn’t fully implemented; that’s mapbox/mapbox-gl-native#1804.)
Steps to reproduce
Expected behavior
feature
will contain the latest data from just added sourceActual behavior
feature
contains the previously added source dataBut if add delay it works correctly
I assume there is some delay in rendering new shape data on layer (like ~0.5s) and it could differ based on features count and layer drawing complexity.
It would be good to understand what caused this delay and how to deal with it - get a callback/delegate or a property like loaded etc. Please advice.
Configuration
Mapbox SDK versions: Mapbox-iOS-SDK (5.8.0)
iOS/macOS versions: iOS 13.4.1
Device/simulator models: iPad Pro (9.7 inch) Simulator
Xcode version: 11.4.1
The text was updated successfully, but these errors were encountered: