我有一个 kml 文件(位于本地),我想在我正在开发的应用程序中的 map 上显示该文件。在我的搜索中,我找到了这篇文章:How to draw a path on a map using kml file?几次。我觉得这个方法相当冗长。
我只想显示由我的 kml 文件定义的标记。有没有办法在不解析文件的情况下执行此操作?毕竟,kml 和 Maps API 都是 Google 的。有没有办法告诉该 API 根据特定的 kml 文件加载 map ?
最佳答案
Is there a way to do this without parsing the file?
目前没有。
after all, both kml and Maps API are Google's.
Google 文档也是如此,但也没有 API 可以将电子表格转储到您的 map 上。
Isn't there a way to tell that API to load map based on a particular kml file?
暂时没有,抱歉。不妨关注一下this feature request查看是否添加以及何时添加。
关于android - 在不解析的情况下使用 Google Maps Android API v2 显示 kml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20001576/