I'm using .onDrawStatusChanged to observe when the map is loading and not. While the status is .inProgress, I'm showing a spinner. There are two problems with this approach:
- When the spinner is stopped, that causes the area below the spinner to be redrawn, which changes the status from .completed back to .inProgress, which causes the spinner to come back into view, ad absurdum.
- When the user's LocationDisplay "blue dot" is moving, this causes the status to change to .inProgress. In practice, this means that the spinner is always showing.
Questions:
- Is this the right approach to indicate to the user that the map is loading or can I use some other mechanism to more accurately grab loading state? Back in the 100.x days, I used AGSNetworkActivityDelegate and showed/hid the spinner in response to networkActivityInProgress and networkActivityEnded
- The first problem, I've been able to mitigate by delaying the showing of the spinner by a short time.
- Can I somehow make the location display independent of the draw status?