I've saved style.json on documentsDir then trying to path this file to styleURL in offlineManager.createPack to create an offline pack. What did I miss?
Error Domain=MGLErrorDomain Code=-1 "Response class is not NSHTTPURLResponse" UserInfo={NSLocalizedFailureReason=Response class is not NSHTTPURLResponse}
I saw comments from maintainers @nitaliano that we can use two types of styleURL:
External resource (http://, https://)
Interna resource - absolute path to file in the native file system.
I've saved style.json on documentsDir then trying to path this file to styleURL in offlineManager.createPack to create an offline pack. What did I miss?
Code:
Error:
I saw comments from maintainers @nitaliano that we can use two types of styleURL:
What I did wrong?