如何在Android Google Maps中打开kmz文件? [英] How to open kmz file in android google maps?

查看:515
本文介绍了如何在Android Google Maps中打开kmz文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Google地图中打开我的Kmz文件.但是在我的代码"中,仅显示kmz文件部分区域.

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

如何在Google地图中显示具有完整预览的Kmz文件.

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

推荐答案

我在考虑这个问题,最好的解决方案是解析您的KML文件,或者如果您有KMZ,则可以将其解压缩然后解析XML,这可能是一个较长的操作(取决于文件的大小),因此您可以使用AsyncTaskLoader执行该操作,并使用带有标记的GoogleMap对象或可以在地图上显示的任何内容来显示它.

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.

这篇关于如何在Android Google Maps中打开kmz文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆