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
I'm loading a map with a ShapeSource containing north of 50.000 SymbolLayers. The symbols are first fetched from a uri, and then added to the map. The whole process takes about ~10 sec, of which the fetching is ~2 sec.
What I want to do, is render an <ActivityIndicator /> until the symbols actually have appeared on the map. I can get reasonably close by using onMapIdle, but there's still about ~1 sec from onMapIdle firing and the symbols appearing (they are fading in nicely, though :)).
Is there any way for me to detect when the symbols are actually visible on the map?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Cheers,
I'm loading a map with a ShapeSource containing north of 50.000 SymbolLayers. The symbols are first fetched from a uri, and then added to the map. The whole process takes about ~10 sec, of which the fetching is ~2 sec.
What I want to do, is render an
<ActivityIndicator />
until the symbols actually have appeared on the map. I can get reasonably close by usingonMapIdle
, but there's still about ~1 sec from onMapIdle firing and the symbols appearing (they are fading in nicely, though :)).Is there any way for me to detect when the symbols are actually visible on the map?
Beta Was this translation helpful? Give feedback.
All reactions