AnalyticalGraphicsInc/cesium — pull request #236 by mramato (2012-09-12 16:36:06+00:00)
Title: Improve viewer camera

The Viewer widget has a simple tracking capability which tracks an object when you right-click on it. This only worked in 3D mode and has been recently broken. I created a new utility object, `DynamicObjectView` which makes it easy to track an object across scene modes.

1. Right-click on an object in viewer.
2. When you switch modes, you'll stay locked onto the thing you are tracking (though transitions aren't supported yet).
3. If you change the view in one mode, it will be reflected to have a similar view in the new mode.
4. Added a `viewFrom` property to CZML which is an east-north-up Cartesian that gives the client a recommended camera position when zooming to the object.
5. @bagnell fixed a bunch of issues that were uncovered while I was working in this branch.

This whole process has also exposed many issues with our current camera API that will be addressed in future pull requests, `DynamicObjectView` is a little overly complicated because of this and unit tests for the new object is light for now.