This interface defines methods used for direct view manipulation.
Methods
-
To control a look-at-point animation in screen space. Before the look-at-point can be controlled the method
H.map.IControl.prototype.startControlmust be invoked once. The animation can be finished viaH.map.IControl.prototype.endControlName Type Description moveXnumber The movement along the x-axis in pixels per second
moveYnumber The movement along the y-axis in pixels per second
moveZnumber The movement along the z-axis in zoom-levels per second
rotateXnumber The rotation around the x-axis in degrees per second
rotateYnumber The rotation around the y-axis in degrees per second
rotateZnumber The rotation around the z-axis in degrees per second
-
To finish the control of a look-at-point animation. See also
H.map.IControl.prototype.startControlandH.map.IControl.prototype.controlName Type Description opt_preventKineticsboolean optional Indicates whether a kinetic effect at the end of the controlled animation is prevented.
opt_adjustViewfunction(H.map.ViewModel.ILookAtData) optional A custom function to adjust the final view. It receives the last requested look-at data from the view model and has to return a possibly modified
H.map.ViewModel.ILookAtDatawhich is used instead.Example
//prevent kinetics viewModel.endControl(true); //prevent kinetics and set adjusted view viewModel.endControl(true, function(requested) { requested.zoom = Math.round(requested.zoom); }); -
To start the controlling of the look-at-point animation. After this method was invoked, the look-at-point animation can be controlled by several calls of
H.map.IControl.prototype.controland finished by a call ofH.map.IControl.prototype.endControlName Type Description opt_kineticsH.util.kinetics.IKinetics optional Kinetics settings
opt_atXnumber optional The x screen coordinate at which control starts
opt_atYnumber optional The y screen coordinate at which control starts