2013-06-15 3 views
0

Google 어스에서 풍선이 열릴 때 내 풍선의 정확한 위치를 가리키고 있지 않습니다. 그들은 떨어져 waaaay입니다. 필자는 multigeometry placemark에 점을 추가하여이 문제를 해결할 수있는 몇 곳을 읽었으며 대신 그 점을 가리킬 것입니다. 하지만 작동하지 않습니다! 이 문제가 수정 되었습니까? 나는 맥을 사용하여 Google 어스 7.1Google 어스의 풍선이 올바른 위치를 가리키고 있지 않습니다.

감사합니다, 엘렌

<?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>KmlFile</name> 
    <Schema name="Gorge_Trails" id="Trails_Schema_id"> 
     <SimpleField type="string" name="Trail_number"><displayName>&lt;b&gt;Trail_number&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Trail_name"><displayName>&lt;b&gt;Trail_name&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Location"><displayName>&lt;b&gt;Location&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Difficulty"><displayName>&lt;b&gt;Difficulty&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Picture_URL"><displayName>&lt;b&gt;Picture_URL&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Link1"><displayName>&lt;b&gt;Link1&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Link2"><displayName>&lt;b&gt;Link2&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Photo_credit"><displayName>&lt;b&gt;Photo_credit&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="double" name="Hike_Dist"><displayName>&lt;b&gt;Hike_Dist&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Trailhead"><displayName>&lt;b&gt;Trailhead&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Type"><displayName>&lt;b&gt;Type&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="double" name="TR_Length"><displayName>&lt;b&gt;TR_Length&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Hike_Name"><displayName>&lt;b&gt;Hike_Name&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="State"><displayName>&lt;b&gt;State&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Elevation1"><displayName>&lt;b&gt;Elevation1&lt;/b&gt;</displayName> 
</SimpleField> 
     <SimpleField type="string" name="Hike_Dis_1"><displayName>&lt;b&gt;Hike_Dis_1&lt;/b&gt;</displayName> 
</SimpleField> 
    </Schema> 
    <Style id="Hikes_highlight_traillink"> 
     <IconStyle> 
      <color>0000ffff</color> 
      <scale>0.1</scale> 
     </IconStyle> 
     <BalloonStyle> 
      <text><![CDATA[<table border="0"> 
      <table width="250" border="0" cellspacing="0" cellpadding="1" bgcolor="#e8e9cb" align="center"> 
      <tr> 
       <td colspan="2" align="center"> 
       <img src="http://gorgefriends.org/img/gorge_index_02.gif" alt="picture" width="100%" height="50"/> 
       </td> 
      </tr> 
      <tr> 
       <td colspan="2" align="center" valign="bottom" cellpadding="1"> 
       <font color='#3a493e'size=+2> <b>$[Gorge_Trails/Hike_Name]</b></font> 
      <tr> 
      <td colspan="2" align="center" valign="bottom" cellpadding="1"> 
       <font color='#3a493e' size=+1 <b>$[Gorge_Trails/Location], $[Gorge_Trails/State]</b></font> 
       </td> 
      </tr> 
      <tr> 
      <td colspan="2" align="center"> 
       <img src=$[Gorge_Trails/Picture_URL] alt="picture" width="100%" height="140"/>  
      </td> 
      <tr> 
      <td colspan="2" align="center"> 
       <font color="#999999" size="1">Photo:$[Gorge_Trails/Photo_credit]</font> 
      </td> 
      </tr> 
     <table width="250" border="0" cellspacing="3" cellpadding="0" bgcolor="#e8e9cb" align="center">  
     <tr><td><b>Trailhead</b></td><td>$[Gorge_Trails/Trailhead]</td></tr> 
     <tr><td><b>Hike Distance</b></td><td>$[Gorge_Trails/Hike_Dist] miles</td></tr> 
     <tr><td><b>Difficu 
     lty</b></td><td>$[Gorge_Trails/Difficulty]</td></tr> 
     <tr><td><b>Type</b></td><td>$[Gorge_Trails/Type]</td></tr> 
     <tr><td><b>Trail Name</b></td><td>$[Gorge_Trails/Trail_name]</td></tr> 
    <table width="250" border="0" cellspacing="4" cellpadding="0" bgcolor="#e8e9cb" align="center"> 
       <tr><td><a href="$[Gorge_Trails/Link2]"><font color=#993300>Rails-to-Trails</font color></a> 
      </td></tr> 
      <table width="250" border="0" cellspacing="1" cellpadding="0" bgcolor="#e8e9cb" align="center">   <tr> 
       <td colspan="2" align="center" valign="bottom"> 
    <font color="#999999" size="1">Copyright: Friends of the Columbia Gorge/Portlandhikers.org is a proud partner of the</font><a href= http://gorgefriends.org/section.php?id=81><font color="#993300" size="1"> Gorge Towns to Trails Initiative</font></a> 
       </td> 
      </tr> 
      </table>]]></text> 
      <bgColor>ff689a9a</bgColor> 
     </BalloonStyle> 
     <ListStyle> 
      <maxSnippetLines>0</maxSnippetLines> 
     </ListStyle> 
     <LineStyle> 
      <color>ff1eede9</color> 
      <width>4</width> 
     </LineStyle> 
    </Style> 
    <Style id="Hikes_normal_traillink"> 
     <IconStyle> 
      <color>0000ffff</color> 
      <scale>0.1</scale> 
     </IconStyle> 
     <LabelStyle> 
      <scale>0</scale> 
     </LabelStyle> 
     <BalloonStyle> 
      <text><![CDATA[<table border="0"> 
      <table width="250" border="0" cellspacing="0" cellpadding="1" bgcolor="#e8e9cb" align="center"> 
      <tr> 
       <td colspan="2" align="center"> 
       <img src="http://gorgefriends.org/img/gorge_index_02.gif" alt="picture" width="100%" height="50"/> 
       </td> 
      </tr> 
      <tr> 
       <td colspan="2" align="center" valign="bottom" cellpadding="1"> 
       <font color='#3a493e'size=+2> <b>$[Gorge_Trails/Hike_Name]</b></font> 
      <tr> 
      <td colspan="2" align="center" valign="bottom" cellpadding="1"> 
       <font color='#3a493e' size=+1 <b>$[Gorge_Trails/Location], $[Gorge_Trails/State]</b></font> 
       </td> 
      </tr> 
      <tr> 
      <td colspan="2" align="center"> 
       <img src=$[Gorge_Trails/Picture_URL] alt="picture" width="100%" height="140"/>  
      </td> 
      <tr> 
      <td colspan="2" align="center"> 
       <font color="#999999" size="1">Photo:$[Gorge_Trails/Photo_credit]</font> 
      </td> 
      </tr> 
     <table width="250" border="0" cellspacing="3" cellpadding="0" bgcolor="#e8e9cb" align="center">  
     <tr><td><b>Trailhead</b></td><td>$[Gorge_Trails/Trailhead]</td></tr> 
     <tr><td><b>Hike Distance</b></td><td>$[Gorge_Trails/Hike_Dist] miles</td></tr> 
     <tr><td><b>Difficulty</b></td><td>$[Gorge_Trails/Difficulty]</td></tr> 
     <tr><td><b>Type</b></td><td>$[Gorge_Trails/Type]</td></tr> 
     <tr><td><b>Trail Name</b></td><td>$[Gorge_Trails/Trail_name]</td></tr> 
    <table width="250" border="0" cellspacing="4" cellpadding="0" bgcolor="#e8e9cb" align="center"> 
       <tr><td><a href="$[Gorge_Trails/Link2]"><font color=#993300>Rails-to-Trails</font color></a> 
      </td></tr> 
      <table width="250" border="0" cellspacing="1" cellpadding="0" bgcolor="#e8e9cb" align="center">   <tr> 
       <td colspan="2" align="center" valign="bottom"> 
    <font color="#999999" size="1">Copyright: Friends of the Columbia Gorge/Portlandhikers.org is a proud partner of the</font><a href= http://gorgefriends.org/section.php?id=81><font color="#993300" size="1"> Gorge Towns to Trails Initiative</font></a> 
       </td> 
      </tr> 
      </table>]]></text> 
      <bgColor>ff689a9a</bgColor> 
     </BalloonStyle> 
     <ListStyle> 
      <maxSnippetLines>0</maxSnippetLines> 
     </ListStyle> 
     <LineStyle> 
      <color>ff000080</color> 
      <width>2</width> 
     </LineStyle> 
    </Style> 
    <StyleMap id="Hikes_style_traillink"> 
     <Pair> 
      <key>normal</key> 
      <styleUrl>#Hikes_normal_traillink</styleUrl> 
     </Pair> 
     <Pair> 
      <key>highlight</key> 
      <styleUrl>#Hikes_highlight_traillink</styleUrl> 
     </Pair> 
    </StyleMap> 
    <Placemark> 
     <name>The Dalles Trail</name> 
     <LookAt> 
      <longitude>-121.1675204504952</longitude> 
      <latitude>45.63510133211322</latitude> 
      <altitude>0</altitude> 
      <heading>-1.634887800693966e-09</heading> 
      <tilt>45.00165866539888</tilt> 
      <range>11801.15617415238</range> 
      <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode> 
     </LookAt> 
     <styleUrl>#Hikes_style_traillink</styleUrl> 
     <ExtendedData> 
      <SchemaData schemaUrl="#Trails_Schema_id"> 
       <SimpleData name="Trail_number">4406</SimpleData> 
       <SimpleData name="Trail_name">The Dalles Trail</SimpleData> 
       <SimpleData name="Location">Eastern Gorge</SimpleData> 
       <SimpleData name="Difficulty">Easy</SimpleData> 
       <SimpleData name="Picture_URL">http://blog.oregonlive.com/terryrichard/2009/05/large_TR.TheDallesTrail.jpg</SimpleData> 
       <SimpleData name="Link1">http://gorgefriends.org/display.php?modin=51&amp;uid=4921</SimpleData> 
       <SimpleData name="Link2">http://www.traillink.com/trail/the-dalles-riverfront-trail.aspx#tabPhotoGallery</SimpleData> 
       <SimpleData name="Photo_credit">Terry Richard/The Oregonian</SimpleData> 
       <SimpleData name="Hike_Dist">11.2</SimpleData> 
       <SimpleData name="Trailhead">The Dalles Trailhead</SimpleData> 
       <SimpleData name="Type">Out and Back</SimpleData> 
       <SimpleData name="TR_Length">0</SimpleData> 
       <SimpleData name="Hike_Name">The Dalles Rail Trail</SimpleData> 
       <SimpleData name="State">Oregon</SimpleData> 
       <SimpleData name="Elevation1">200 ft.</SimpleData> 
       <SimpleData name="Hike_Dis_1">miles</SimpleData> 
       <SimpleData name="POINT_X">-121.197</SimpleData> 
       <SimpleData name="POINT_Y">45.6276</SimpleData> 
      </SchemaData> 
     </ExtendedData> 
     <gx:balloonVisibility>1</gx:balloonVisibility> 
     <MultiGeometry> 
      <LineString> 
       <tessellate>1</tessellate> 
       <coordinates> 
        -121.2191227996079,45.65623491828678,0 -121.2078460984247,45.641231128264,0 -121.2081174642494,45.62199596450162,0 -121.2013742163807,45.61232779014134,0 -121.1763471207253,45.60147362786477,0 -121.1389784963313,45.6012101599156,0 -121.1150449368218,45.61651025155123,0 -121.1141521992769,45.62130724242957,0 
       </coordinates> 
      </LineString> 
      <Point> 
       <coordinates>-121.197032272514,45.62764529609835,0</coordinates> 
      </Point> 
     </MultiGeometry> 
    </Placemark> 
</Document> 
</kml> 
+0

하는 것이 도움이 될 것이다 :

당신은 아이들을 숨길 수있는 루트 수준의 문서에 하위 항목 숨기기을 유형의 ListStyle을 추가하여 당신이 하나가 아닌 두 가지 기능을 가지고 있다는 사실을 숨길 수는 다음과 같이 기능 질문에 KML의 대표 샘플을 게시하고 사용중인 Google 어스 버전 및 플랫폼 (Windows, Mac, iPad 등) – JasonM1

+0

감사합니다. 샘플 kml을 추가했습니다. –

답변

0

풍선이지도에 위치 앵커 자리가 기능의 형상의 중심점으로 계산하고 있습니다. 귀하의 예제에서 MultiGeometry의 경우 라인과 점의 중심이 결합됩니다. 선의 범위는 가운데를 오른쪽으로 기울입니다.

풍선 점을 지점에 고정하려면 LineString을 두 번째 기능으로 이동하십시오.

<Document> 
    <name>KmlFile</name> 
    <styleUrl>#checkHide</styleUrl> 

    <Style id="checkHide"> 
     <ListStyle> 
     <listItemType>checkHideChildren</listItemType> 
     </ListStyle> 
    </Style> 
    ... 
    <Placemark> 
     <name>The Dalles Trail</name> 
     <!-- LookAt, ExtendedData, etc. --> 
     <Point>...</Point> 
    </Placemark> 
    <Placemark> 
     <LineString>...</LineString> 
    </Placemark> 
    </Document> 
관련 문제