new NavigationFactory()
Methods
-
<static> create(type, ctx, options)
-
Mizar owns different types of navigation to control the camera on the WebGL scene. This class allows to create a navigation based on its type (e.g Astro, Flat, Sky).
AstroNavigation Provides a camera located at the center of the scene. The camera is inside the globe. It is used to view the sky PlanetNavigation Provides a camera, located outside the globe and looking at the globe. It is used to view a planet FlatNavigation Provides a camera to navigate on a 2D map - Only available in a Planet context Parameters:
Name Type Description type
NAVIGATION the type of navigation ctx
AbstractContext The context where the camera look at options
AbstractNavigation.astro_configuration | AbstractNavigation.planet_configuration | AbstractNavigation.flat_configuration see the navigations. - See:
-
- PlanetNavigation - Control the camera and turn around the globe, wich is located at the center of the webGL scene.
- AstroNavigation - Control the camera at the center of the scene. The camera is inside the globe
- FlatNavigation - Control the camera. The camera look at the 2D projection
Throws:
-
Type not valid - a valid type is included in the list NAVIGATION
- Type
- RangeError
Returns:
navigation- Type
- Navigation