How to open kmz file in android google maps?

白昼怎懂夜的黑 提交于 2020-01-15 10:58:05

问题


I would like to open my Kmz file in Google map. But in My code only kmz file portion area is shown.

How can I show the Kmz file inside the google map with complete preview.


回答1:


I was thinking about this and the best solution is to parse your KML file or if you have an KMZ you can Unzip it and then parse your XML, this could be a long operation (depends of the size of your file) so you can perform it using an AsyncTaskLoader and display it using a GoogleMap object with markers or whatever you can display on the map.



来源:https://stackoverflow.com/questions/21701254/how-to-open-kmz-file-in-android-google-maps

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