我的 KML 文件是:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<NetworkLink>
<Link>
<href>http://localhost/test.php</href>
<refreshMode>onInterval</refreshMode>
<refreshInterval>1</refreshInterval>
</Link>
</NetworkLink>
</Document>
</kml>
localhost/test.php 返回:
<Document>
<Placemark>
<name>Testing</name>
<description>
Test
</description>
<Point>
<altitudeMode>absolute</altitudeMode>
<coordinates>0,0,0</coordinates>
</Point>
</Placemark>
</Document>
当您单击图标时,它会打开显示“测试”的气球,然后一秒钟后,当刷新 kml 时,气球会关闭,我该如何解决这个问题?