添加一带有NetworkLink内容的kml后,图层有了,但没有对应的模型出现。用谷歌地球打开能够正常显示。
kml文件内容如下
1.kml
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="
http://earth.google.com/kml/2.1">
<Document>
<name>Production_1</name>
<description>Generated using Bentley ContextCapture</description>
<Style>
<ListStyle id="hideChildren">
<listItemType>check</listItemType>
</ListStyle>
</Style>
<NetworkLink>
<open>1</open>
<Link>
<href>Data/Tile_1/Tile_1.kml</href>
</Link>
</NetworkLink>
</Document>
</kml>
Tile_1.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>Tile_1</name>
<visibility>1</visibility>
<description>Generated using Bentley ContextCapture</description>
<Placemark>
<name>Tile_1</name>
<visibility>1</visibility>
<Model>
<altitudeMode>relativeToGround</altitudeMode>
<Location>
<longitude>104.250576241113</longitude>
<latitude>30.3377070007537</latitude>
<altitude>10</altitude>
</Location>
<Orientation>
<heading>0</heading>
<tilt>0</tilt>
<roll>0</roll>
</Orientation>
<Scale>
<x>1</x>
<y>1</y>
<z>1</z>
</Scale>
<Link>
<href>./Tile_1.dae</href>
</Link>
</Model>
</Placemark>
<Document>
<visibility>0</visibility>
</Document>
</Document>
</kml>