sceneCameraBehavior()
Information
Implementation version: beta 1.07
Description
Modifies the viewfinder camera's operating options, simulating a 2D or 3D map effect depending on the parameters.
Invocation
sceneCameraBehavior( sceneMode )
Input parameters
sceneMode
Parameter that specifies the camera mode that you want to use on the map. It is received as a text string that accepts one of these two options:
- scene2D: locks the camera, preventing any movement other than its movement over the horizontal (as if it were a two-dimensional map).
- scene3D: the camera lacks restrictions, allowing its free movement (normally on a map in three dimensions).
Use examples
Set up the camera to simulate a 2D map:
sceneCameraBehavior( 'scene2D' )
Set up the camera to simulate a 3D map:
sceneCameraBehavior( 'scene3D' )