camera For Drag
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
from Point
The screen coordinate
to drag the map from, measured in platform pixels
from top to bottom and from left to right.
to Point
The screen coordinate
to drag the map to, measured in platform pixels
from top to bottom and from left to right.