Skobbler SDK 3.0.2: prebundled map

穿精又带淫゛_ 提交于 2019-12-13 08:32:56

问题


I'm using Skobbler SDK 3.0.2 and I can't load prebundled map.

I prepared the map package for prebundling (SKMaps.zip) following instruction in https://developer.skobbler.com/getting-started/android. I want to use only a prebundle map in offline mode in my project.

This is my code:

SKMapsInitSettings mapsInitSettings = new SKMapsInitSettings(); mapsInitSettings.setConnectivityMode(SKMaps.CONNECTIVITY_MODE_OFFLINE); mapsInitSettings.setPreinstalledMapsPath(getAssets() +"/SKMaps/PreinstalledMaps");

I get this error when I try to initialize the library:

E/SKMaps: SKPrepareMapTextureThread---- start SKPrepareMapTextureThread 01-17 E/SKPrepareMapTextureThread: Shaders or Common files not found

Any help? Thanks.


回答1:


From here you can download a modified 3.0.2 Android demo project with the city of Stuttgart (Germany) used as a prebundle map.




回答2:


I had this problem when putting SKMaps.zip into assets folder with zipped subfolder /SKMaps/ .. Make sure your zip contains only subfolders and files - not another SKMaps folder



来源:https://stackoverflow.com/questions/41697601/skobbler-sdk-3-0-2-prebundled-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!