问题描述
我正在寻找KML中的一种设置组合,该设置允许单击“位置”文件夹视图中的地标以激活向3D查看器上新lookAt位置的移动,而无需打开该地标的信息提示框。 我希望仅在单击3d查看器上的地标图标时打开气球。
对于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>Name</name>
<open>1</open>
<Snippet maxLines="0"></Snippet>
<BalloonStyle>
<text>$[description]</text>
<bgColor>ffadbdca</bgColor>
</BalloonStyle>
<styleUrl>#DarkMapPin</styleUrl>
<description> <![CDATA[
<table width="500" border="0" cellspacing="0" cellpadding="5" bgcolor="#cabdad">
<tr>
<td colspan="1" align="center" border >
<img src="http://greatwarfootsteps.com.au/GeImages/logo-transp-350x80.png" alt=picture" width="300" />
</td>
</tr>
</table>
]]>
</description>
<gx:balloonVisibility>0</gx:balloonVisibility>
<LookAt>
<gx:TimeSpan>
<begin>1918-01-01T00:00:00Z</begin>
<end>1918-01-25T00:00:00Z</end>
</gx:TimeSpan>
<longitude>-0.150</longitude>
<latitude>49.8</latitude>
<altitude>0</altitude>
<heading>0</heading>
<tilt>0.5</tilt>
<range>588250</range>
<gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
</LookAt>
<Style id="normalDarkMapPin">
<IconStyle>
<scale>0.4</scale>
<Icon>
<href>http://greatwarfootsteps.com.au/GeImages/pindarkred.png</href>
</Icon>
<hotSpot x="0.2" y="0.1" xunits="fraction" yunits="fraction"/>
</IconStyle>
<LabelStyle>
<color>ffadbdca</color>
</LabelStyle>
<BalloonStyle>
<text>$[description]</text>
<bgColor>ffadbdca</bgColor>
</BalloonStyle>
</Style>
<Style id="highlightDarkMapPin">
<IconStyle>
<scale>0.75</scale>
<Icon>
<href>http://greatwarfootsteps.com.au/GeImages/pindarkred.png</href>
</Icon>
<hotSpot x="0.2" y="0.1" xunits="fraction" yunits="fraction"/>
</IconStyle>
<LabelStyle>
<color>ffadbdca</color>
</LabelStyle>
<BalloonStyle>
<text>$[description]</text>
<bgColor>ffadbdca</bgColor>
</BalloonStyle>
</Style>
<StyleMap id="DarkMapPin">
<Pair>
<key>normal</key>
<styleUrl>#normalDarkMapPin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#highlightDarkMapPin</styleUrl>
</Pair>
</StyleMap>
<Folder>
<name> France January 1918 </name>
<open>1</open>
<LookAt>
<gx:TimeStamp>
<when>1918</when>
</gx:TimeStamp>
<longitude>0.8949853033715737</longitude>
<latitude>49.79787778675078</latitude>
<altitude>0</altitude>
<heading>0</heading>
<tilt>62.45539697417957</tilt>
<range>316976.6706284737</range>
<gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
</LookAt>
<Placemark>
<name> Rouen,France </name> <Snippet maxLines="0"></Snippet>
<description>
<![CDATA[
<table width="500" border="0" cellspacing="0" cellpadding="5" bgcolor="#cabdad">
<tr>
<td colspan="1" align="left" valign="top" width='20'>
<img src="http://greatwarfootsteps.com.au/GeImages/pindarkred.png" alt="picture" height="35" />
</td>
</tr>
</table>
]]>
</description>
<gx:balloonVisibility>0</gx:balloonVisibility>
<styleUrl>#DarkMapPin</styleUrl>
<LookAt>
<longitude> 1.099971 </longitude>
<latitude> 49.443232 </latitude>
<altitude>0</altitude>
<heading>0</heading>
<tilt>46</tilt>
<range>13900</range>
</LookAt>
<Point>
<coordinates> 1.099971,49.443232 </coordinates>
</Point>
</Placemark>
<Placemark>
<name> Arras,France </name> <Snippet maxLines="0"></Snippet>
<description>
<![CDATA[
<table width="500" border="0" cellspacing="0" cellpadding="5" bgcolor="#cabdad">
<tr>
<td colspan="1" align="left" valign="top" width='20'>
<img src="http://greatwarfootsteps.com.au/GeImages/pindarkred.png" alt="picture" height="35" />
</td>
</tr>
</table>
]]>
</description>
<gx:balloonVisibility>0</gx:balloonVisibility>
<styleUrl>#DarkMapPin</styleUrl>
<LookAt>
<longitude>2.777535</longitude>
<latitude>50.291002</latitude>
<altitude>0</altitude>
<heading>0</heading>
<tilt>46</tilt>
<range>13900</range>
</LookAt>
<Point>
<coordinates>2.777535,50.291002,0</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)