cameraForDrag

Convenience method that returns the `camera options` object for given parameters. Computes a new target location where the camera would end up after dragging the map from a screen coordinate `startCoordinate` to another coordinate `endCoordinate`. All subsequent `cameraForDrag` calls considered to be part of a single "gesture" should be performed with the map center altitude mode set to `Sea` by calling `setCenterAltitudeMode` with parameter `Sea` before the gesture and with parameter `Terrain` after the gesture.

Return

The `camera options` object with the center variable set to the computed target location.

Parameters

startCoordinate

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

endCoordinate

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