cameraForDrag

open override fun cameraForDrag(fromPoint: ScreenCoordinate, toPoint: ScreenCoordinate): CameraOptions

Calculates a target point where the camera should move after dragging from a screen coordinate startCoordinate to another coordinate endCoordinate.

Return

The CameraOptions object with the center variable set to the computed target location.

Parameters

fromPoint

The screen coordinate to drag the map from, measured in platform pixels from top to bottom and from left to right.

toPoint

The screen coordinate to drag the map to, measured in platform pixels from top to bottom and from left to right.