Repository navigation
Conversation
|
@smartkiwi Thanks for the PR and the insight into what technically you're trying to accomplish. In this case we're reluctant to merge this into the project as we're currently working on a Runtime Styling API that would likely (as best we can tell) accomplish the same thing technically and don't want to introduce an additional API with a short self life. Can you tell us more about what the feature you're trying to build so that we can make sure that the Runtime Styling API will be able to meet those needs? Thanks! |
|
Thank you for reviewing and providing context. Actually we don't need whole style to be updated - just polygon for one of the layers. I was hoping that loading style from Json would solve the task at hand - build proof of content app to be used internally. But unfortunately I have problem building and/or importing of my fork of the Mapbox SDK. |
|
Any guesses why the filesystem path to the style wouldn't work? |
|
Here is the code I use to load style from URL on a local filesystem which produces the exception I've posted before
|
|
The forthcoming Style API is going to be the preferred solution for the SDK. Thank you though for the PR @smartkiwi. |
Here is the use case:
I need app the be able load style json from internal storage. So it could be updated periodically without publishing new version of functionality or publishing new style to mapbox studio (the phone might not have wireless connection during the day).
I've tried setStyleUrl - but it supports only http://. mapbox:// or assists//, but reject to load information from file://
E/mbgl: {Map}[Setup]: loading style failed: unexpected url: file:/storage/emulated/0/Download/test_aoi_style.json