ru.dgis.sdk.map.CameraBehaviour | Android SDK | 2GIS Documentation

CameraBehaviour

Camera tracking mode.

Camera modes are degraded according to the following rule:

  • Map shift resets to None events: DirectMapShiftEvent, MapShiftBeginEvent, DirectMapRotationEvent with event center specified, DirectMapScalingEvent with event center specified event center, ScaleMapEvent
  • map rotation discards Bearing events: MapRotationBeginEvent, RotateMapToNorthEvent, DirectMapRotationEvent without event center
  • zooming discards Zoom events: MapScalingBeginEvent, DirectMapScalingEvent without event center
  • tilt discards Tilt events: DirectMapTiltEvent

CameraBehaviour(position: FollowPosition?, transitionType: TransitionType = TransitionType.SMOOTH)

Camera tracking mode.

Camera modes are degraded according to the following rule:

  • Map shift resets to None events: DirectMapShiftEvent, MapShiftBeginEvent, DirectMapRotationEvent with event center specified, DirectMapScalingEvent with event center specified event center, ScaleMapEvent
  • map rotation discards Bearing events: MapRotationBeginEvent, RotateMapToNorthEvent, DirectMapRotationEvent without event center
  • zooming discards Zoom events: MapScalingBeginEvent, DirectMapScalingEvent without event center
  • tilt discards Tilt events: DirectMapTiltEvent

Parameters
position
transitionType
Returns
Properties