hi
I'm looking for a help with flying to object as well.
in my project Im parsing point from KML feed.
Point loads and workin but how can i fly to it on start?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /
>
<head>
<title>Where is Fastie</title>
<script src="
http://www.google.com/jsapi?
key=ABQIAAAAgPEDcATOyzU0tR5Rp3cAuRTjaYEYh9pgYNpJWoDX0H_F8anvWRTHnPnmBAYhrLE9sxTb2PN7-
myXkw"></script>
<script>
google.load("earth", "1");
var ge = null;
function finished(object) {
if (!object) {
alert('bad or NULL kml');
return;
}
ge.getFeatures().appendChild(object);
}
function init() {
google.earth.createInstance("map3d", initCallback, failureCallback);
}
function initCallback(object) {
ge = object;
var layerRoot = ge.getLayerRoot();
ge.getWindow().setVisibility(true);
var options = ge.getOptions();
options.setStatusBarVisibility(true);
options.setGridVisibility(false);
options.setOverviewMapVisibility(true);
options.setScaleLegendVisibility(true);
options.setAtmosphereVisibility(true);
options.setMouseNavigationEnabled(true);
ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
ge.getLayerRoot().enableLayerById(ge.LAYER_BUILDINGS, true);
ge.getLayerRoot().enableLayerById(ge.LAYER_TERRAIN, true);
// feed Im usung
var url = '
http://free.3dtracking.net/live.kmz?
Guid=1cea942a-4425-42d0-8fab-b2f5b2ed42e7';
google.earth.fetchKml(ge, url, finished);
}
function failureCallback(object) {
}
</script>
</head>
<body onload='init()' id='body'>
<center>
<div>
<p {font-family: arial;}><b>Where is Fastie!</a></p
</div>
<div id='map3d_container'
style='border: 4px solid silver; height: 700px; width:
100%;'>
<div id='map3d' style='height: 100%;'></div>
</div>
</center>
</body>
</html>