
Use a Location if you want the start and end positions to have the same altitude. To use this class you pass its goTo function either a Location or a Position. You can see example usage in LayerManager.js. To change the navigator smoothly, use the GoToAnimator class. roll - The navigator’s angle around an imaginary line from the eye position to the look-at location.A value of 0 points the user straight down on the globe.
tilt - The navigator’s tilt, in degrees. heading - The navigator’s heading, in degrees clockwise from north. The navigator also has the following properties that the app can set: For that use a GoToAnimator, described below. Ideally the view would change incrementally and smoothly. = 2e6 // 2 million meters above the ellipsoid Adjust the Navigator to place Alaska in the center of the range - Indicates the eye distance from the globe’s ellipsoid.īy specifying these properties the app can move the user to any point around the globe, as in this example: // Get a reference to the WorldWindow. lookAtLocation - Indicates the latitude and longitude of where the user’s view is pointed. The navigator has two primary properties allowing control: But it’s certainly possible to direct the navigator from the app itself.
Unless an app wants to change the user’s view programmatically, it never needs to interact with the navigator.
#NASA WORLD WIND MAXIMUM COORDINATE VALUES UPDATE#
You can directly modify the properties of the WorldWindow’s GoToAnimator to change the go-to travel time or update frequency, or to cancel a previously requested go-to request.
If all you want to do is move the view to a geographic location or position (a location with altitude), you can use the goTo function of WorldWindow to do that.
Controlling the View from the WorldWindowĬontrolling the View from the WorldWindow. A navigator is created automatically when you create a WorldWindow. That navigator is responsible for the view onto the globe. As the user interacts with the globe, panning, zooming and tilting, it’s the WorldWindow’s Navigator that translates the user’s movements into operations on the globe.