close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
google earth api問題
Jun 18th 2013, 18:32

function playTour(directionResult)
{
var myRoute = directionResult.routes[0].legs[0];
var Tour_string= ''+
''+
''+
'';
for (var i = 0; i
lat=myRoute.steps[i].start_point.jb;
lon=myRoute.steps[i].start_point.kb
…(該怎麼加入這?)
}
Tour_string=Tour_string+'';
var kmlObject = ge.parseKml(Tour_string);
ge.getFeatures().appendChild(kmlObject);
ge.getTourPlayer().setTour(kmlObject);
ge.getTourPlayer().play();
}

下面這段 該怎麼加入上面...裡面 ? 懇請高手幫忙 ~

<gx:Tour>
<name>123</name>
<gx:Playlist>
<gx:FlyTo>
<gx:duration>10</gx:duration>
<LookAt>
<longitude>121.269444759493</longitude>
<latitude>24.90030228710054</latitude>
<altitude>0</altitude>
<heading>42.19432067871094</heading>
<tilt>60</tilt>
<range>100</range>
</LookAt>
</gx:FlyTo>
<gx:FlyTo>
<gx:duration>3</gx:duration>
<gx:flyToMode>smooth</gx:flyToMode>
<LookAt>
<longitude>121.2707861438708</longitude>
<latitude>24.90164435775495</latitude>
<altitude>0</altitude>
<heading>42.19430923461914</heading>
<tilt>60</tilt>
<range>100</range>
</LookAt>
</gx:FlyTo>
<gx:FlyTo>
<gx:duration>0.965256330447372</gx:duration>
<gx:flyToMode>smooth</gx:flyToMode>
<LookAt>
<longitude>121.2712177371249</longitude>
<latitude>24.90207617181999</latitude>
<altitude>0</altitude>
<heading>42.19430923461914</heading>
<tilt>60</tilt>
<range>100</range>
</LookAt>
</gx:FlyTo>
</gx:Playlist>
</gx:Tour>
</kml>

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    skow 發表在 痞客邦 留言(0) 人氣()