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

TiltSettings

TiltSettings(
	lenOnDegreeMm: Float,
	horizontalSwerveDeg: Float,
	verticalSwerveDeg: Float,
	thresholdMm: Float
)
Parameters
lenOnDegreeMm
horizontalSwerveDeg
verticalSwerveDeg
thresholdMm
Returns
Properties

Distance, in mm, that you need to slide your fingers across the screen to change the camera angle by 1 degree. A negative value will invert the direction. A value of 0 is invalid.

Maximum allowable deviation of the finger line from the horizon for a vertical swipe. In degrees.

Maximum allowable angle of deviation of the swipe direction from the vertical line. In degrees.

Weighted average point shift threshold, in millimeters, if the shift does not exceed the threshold, then the event is not sent.