Since i had to do it for my own site, I've put together some code to
zoom to the extents of a feature. Have a look at the source code of
this sample page:
http://www.tinyg.com/googlearthtest7.html
Basically you do:
zoomToFeature(plugin, feature);
where "plugin" is your plugin instance and feature is the feature to
zoom to.
The components of that function may also be useful:
extent = getFeatureExtent(plugin, feature);
This will return a LatLonAltBox with the extents of a feature
(including any sub features).
camera = createCameraFromRectangle(plugin, north, east, south, west);
This will return a camera that will show the extents between north,
south, east and west.
camera = createCameraFromLatLonAltBox(plugin, box);
This will return a camera that will show the extents within the given
LatLonAltBox.
Hope this is helpful,
Cheers,
Chris