-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add test app activity for loading a local style.json file #6265
Comments
The iOS SDK automatically converts relative URLs to asset: URLs, which are relative to the asset directory that is set when initializing the |
In the demo app using a local json style is explained in a comment. If this is adequate, I can update the example found on our site. |
Yeah, that JSON file should be fine. The key is to embed it locally in the file system and then build out the TestApp example that reads from the file system. This will provide and example for customers, but even more importantly give us something that we can write test cases for to ensure that this continues to work over time. 😉 |
I have seen a handful of requests recently to use local style JSON files in Android applications. This is useful for apps that require third-party tiles or lower quality mapbox tiles (in jpg70 format, for example). The current example points to a hosted asset. It would be helpful to have an example activity showing how this is done.
cc @tobrun @cammace @bleege
The text was updated successfully, but these errors were encountered: