Class Navigation
Extends
BaseNavigation
Manages the navigation in the Globe..
Defined in: Navigation.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Navigation(globe, options)
|
Method Attributes | Method Name and Description |
---|---|
applyLocalRotation(matrix)
Compute the inverse view matrix
|
|
Compute the inverse view matrix
|
|
Compute the view matrix
|
|
Check for collision
|
|
pan(dx, dy)
Pan the navigation
|
|
rotate(dx, dy)
Rotate the navigation
|
|
zoom(delta)
Zoom to the current observed location
|
|
zoomTo(geoPos, distance, duration, tilt)
|
Class Detail
Navigation(globe, options)
- Parameters:
- globe
- Globe
- options
- Configuration properties for the Navigation :
- minDistance : The minimum distance
- maxDistance : The maximum distance
Method Detail
applyLocalRotation(matrix)
Compute the inverse view matrix
- Parameters:
- matrix
computeInverseViewMatrix()
Compute the inverse view matrix
computeViewMatrix()
Compute the view matrix
hasCollision()
Check for collision
pan(dx, dy)
Pan the navigation
- Parameters:
- dx
- Window delta x
- dy
- Window delta y
rotate(dx, dy)
Rotate the navigation
- Parameters:
- dx
- Window delta x
- dy
- Window delta y
zoom(delta)
Zoom to the current observed location
- Parameters:
- delta
- Delta zoom
zoomTo(geoPos, distance, duration, tilt)
- Parameters:
- {Float[]} geoPos
- Array of two floats corresponding to final Longitude and Latitude(in this order) to zoom
- {Int} distance
- Final zooming distance in meters
- {Int} duration
- Duration of animation in milliseconds
- {Int} tilt
- Defines the tilt in the end of animation