我正在玩KML一点。 我正在创建一个单击时显示图像的地标。当我右键点击图片时,有一个选项可以打开它,但Google地球无法打开图片。有没有办法让Google Earth打开它? KML使用图像的相对路径,在气球中以这种方式显示图像没有问题,但是当我单击“打开图像”选项时,它无法打开。 如果有人有任何帮助,我会很感激。 谢谢!KML打开图片,谷歌地球
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Photos.kml</name>
<Folder>
<name>Photos</name>
<Style id="Photo">
<IconStyle>
<Icon>
<href>http://www.google.com/mapfiles/arrow.png</href>
</Icon>
<scale>.7</scale>
</IconStyle>
</Style>
<Placemark>
<name>IMG_0988.JPG</name>
<description><![CDATA[<div align="center"><table width="500"><tr><td colspan="2"><center><img src="pics/IMG_0988.jpg" width="500" height="373"></td></tr></table></div>]]></description>
<styleUrl>#Photo</styleUrl>
<Point>
<coordinates>13.18733333,60.66783333000001,0</coordinates>
</Point>
<Style>
<IconStyle>
<heading>90</heading>
</IconStyle>
</Style>
</Placemark>
</Folder>
</Document>
</kml>
您是否尝试制作KMZ文件并将图像作为KMZ文件的一部分添加到适当的子文件夹中?另外,对谷歌地球没什么影响,但是在HTML中有一个
谢谢!一定错过了。 – larsk