-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Reloading a failed MGLMapView #3102
Comments
If MGLMapView fails to load the style due to network issues, it uses Reachability to try again when the network connection comes back. Is that not working for you? |
I've seen situations where I end up with a blank, black map, and no way of explicitly retrying. Temporary DNS outages, etc. It might be handy to have an explicit method to retry for situations Reachability can't cover? |
Mostly for my own memory: to reproduce this, start a @1ec5 is this expected? I'd have thought Reachability would cover this. |
This simple API exists in the Mapbox OS X SDK and needs to be ported over to the iOS version. |
Until this is fixed, the workaround is to set the style URL to a bogus local relative URL, such as |
If a
MGLMapView
fails to load (due to not being able to fetch the styles, usually for network reasons), is there a recommended way of trying again, other than unsetting and setting thestyleURL
?The text was updated successfully, but these errors were encountered: