我想知道Android Studio中是否存在某种类型的文件夹来插入KML文件,因为Google Developers在KML导入实用工具中没有任何提示。 我在XML Resources文件夹中尝试了它,因为KML在某种程度上是某种XML,但没有成功。我还检查了Raw Resources文件夹,但这也没有用。
我真的不知道如何在我的Android项目中实现KML文件,并且在理解代码行方面也需要一些帮助。
KmlLayer layer = new KmlLayer(getMap(), R.raw.kmlFile, getApplicationContext());
layer.addLayerToMap();
主要我不理解如何处理“ getMap”和“ getApplicationContext”段落。