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 Aug 8, 2023. It is now read-only.
If you implement -[MGLOfflineStorageDelegate offlineStorage:URLForResourceOfKind:] to redirect a resource URL to a local file URL, such as the URL of a resource bundled with the application, the request fails because the URL response doesn’t come over HTTP:
To reproduce this issue, set MGLOfflineStorage.delegate to a class that implements -[MGLOfflineStorageDelegate offlineStorage:URLForResourceOfKind:] like so:
#16428 fixes this particular error in a tightly scoped way, which I think is valid. However, I think it’s worth investigating whether local file URLs returned by the delegate should end up going through mbgl::LocalFileSource instead of mbgl::HTTPFileSource, just as they would when loading a style from a file URL.
If you implement
-[MGLOfflineStorageDelegate offlineStorage:URLForResourceOfKind:]
to redirect a resource URL to a local file URL, such as the URL of a resource bundled with the application, the request fails because the URL response doesn’t come over HTTP:mapbox-gl-native/platform/darwin/src/http_file_source.mm
Lines 375 to 377 in 9f8c9c6
To reproduce this issue, set
MGLOfflineStorage.delegate
to a class that implements-[MGLOfflineStorageDelegate offlineStorage:URLForResourceOfKind:]
like so:/cc @mapbox/maps-ios
The text was updated successfully, but these errors were encountered: