MapTilerSDK
fitScreenCoordinates
abstract fun fitScreenCoordinates(p0: MTPoint, p1: MTPoint, bearing: Double, options: MTFitBoundsOptions? = null)
Pans, rotates and zooms the map to to fit the box made by points p0 and p1 once the map is rotated to the specified bearing. To zoom without rotating, pass in the current map bearing.
Parameters
p0
First point on screen, in pixel coordinates.
p1
Second point on screen, in pixel coordinates.
bearing
Desired map bearing at end of animation, in degrees.
options
Optional animation and padding configuration.