0

我正在尝试创建一个具有特定海拔高度的多边形。在谷歌地球中很容易。iOS Google Maps 似乎只支持 2D 多边形。

是否可以将 KML 文件读入描述多边形(3D 坐标)的 iOS/Android 谷歌地图:

    <Polygon>
        <tessellate>1</tessellate>
        <altitudeMode>absolute</altitudeMode>
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>
                    10.86451916937838,44.19035448313407,500 ..............
                </coordinates>
            </LinearRing>
        </outerBoundaryIs>
    </Polygon>

在此先感谢斯蒂芬

4

1 回答 1

0

Well, KML file is supported in the Google Maps Android API. The problem is altitude is not supported in the KML. You can check here the different supported features in the KML.

If you still want to show/view the altitude, then check this Google Elevation API if it can help you.

于 2016-10-08T15:13:14.357 回答