zoomToward method

Camera zoomToward({
  1. required ArcGISPoint targetPoint,
  2. required double factor,
})

Creates a copy of the camera with its location moved in the direction of a target point by the specified zoom factor.

Parameters:

  • targetPoint — The point location the new camera zooms towards.
  • factor — The zoom factor the camera will be moved by based on the distance between the current camera location and the target point. For example, a factor of 2 will divide the distance in half for the new camera. Negative values will have no effect.

Return Value: A copy of the camera with the position moved.