在 MapBox 中,有没有办法使用 z 坐标使 GeoJSON 文件中的线“悬停”在地面上?
我有一个 GeoJSON 文件,其中包含 x、y 和 z 坐标的行。 x和y坐标在EPSG中是:4326。GeoJSON的定义允许z坐标是米。
GeoJSON 是这样的:
<Folder>
<name>LINEA</name>
<Placemark>
<name>linea derecha</name>
<description>LINEA_DE_ALTA_TENSION</description>
<styleUrl>#line13035</styleUrl>
<LineString>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>
-4.2615227024,42.9057526786,42 -4.2626772134,42.9052692886,42 -4.265573807,42.9040540898,42 -4.2680815864,42.903014367,42 -4.2685763397,42.9008960935,42 -4.268978184,42.8991642119,42 -4.2694217806,42.8972784255,42 -4.2698144131,42.8955936978,42 -4.2702262496,42.8938346905,42 -4.2707423807,42.8916350854,42 -4.2712402082,42.8894900736,42 -4.2717713437,42.8872099823,42 -4.2723065199,42.8849222507,42 -4.2728242182,42.8826988029,42 -4.2734177188,42.8801651344,42 -4.2740168583,42.877593646,42 -4.2746420424,42.8750392121,42 -4.2725192531,42.874331335,42 -4.2693136336,42.873225464,42 -4.2660448361,42.8720979704,42 -4.2631571248,42.8710947629,42 -4.2609838052,42.8703753041,42 -4.2609769522,42.86862491,42
</coordinates>
</LineString>
</Placemark>
在 MapBox 中使用此 GeoJSON 作为源工作得很好,但它只是在地形级别上显示线,似乎根本没有使用 z 坐标。