-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Data URLs in offlineRegionDefinitions styleURL #609
Comments
Yes, I think we should allow to pass a Style.Builder to the offline regions. |
yeah that would be even better |
This is apparently working on iOS (using a Line 65 in d15de92
So apparently this hits the 'HTTP file source' instead of the 'Local File Source' implementation. Maybe fixing this is as easy as changing maplibre-native/src/mbgl/storage/http_file_source.hpp Lines 17 to 19 in d15de92
to return
|
Interested in a fix. This is a blocker for an app I'm writing for a client. |
it may be an error that came with android 13 new storage restrictions |
Is your feature request related to a problem? Please describe.
The offline region definition require an URL to define the style of the downloaded data. This makes the download of custom style generated on the fly impossible.
Describe the solution you'd like
Would be nice to allow raw json or data URL that contains a style definition.
Describe alternatives you've considered
As i said before, I tried with the data URLs in the style URL but it doesn't seems like the URL parser parse it.
Additional context
MapLibre gives me this message followed by the content of the styleURL:
[HTTP] Unable to parse resourceUrl
The text was updated successfully, but these errors were encountered: