maplibre / maplibre-native

MapLibre Native - Interactive vector tile maps for iOS, Android and other platforms.
https://maplibre.org
BSD 2-Clause "Simplified" License
910 stars 277 forks source link

Allow Data URLs in offlineRegionDefinitions styleURL #609

Open mariusvn opened 1 year ago

mariusvn commented 1 year ago

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

boldtrn commented 1 year ago

Yes, I think we should allow to pass a Style.Builder to the offline regions.

mariusvn commented 1 year ago

yeah that would be even better