fun createStyleZoomToTiltRelation(points: Map): StyleZoomToTiltRelation
Creating a dependency of the camera tilt angle on the style zoom level.
points
Map
Points on which the dependency is built.
StyleZoomToTiltRelation
Dependency of the camera tilt angle on the style zoom level, if the dependency could not be created - throw an exception.
The dependency must be a monotonic continuous function. If a dependency that does not satisfy the conditions is specified by the points, then the function throws an exception . A dependency, similar to 2GIS, can be specified by a sequence of points 17,0,19,15,20,25 in map mode and 15,0,16,34,17,48 in navigator mode. Let's get the camera tilt angle T for the Z style zoom level, so that Z0 < = Z < Z1 and dependency is given by the points Z0,T0,Z1,T1. Then the desired value is calculated by the formula T = T0 + k * (T1 - T0), where k = (Z - Z0) / (Z1 - Z0).If Z < Z0, then T = T0. If Z >= Z1, then T = T1.