moveTo method

Camera moveTo({
  1. required ArcGISPoint location,
})

Creates a copy of the camera with a new location.

Parameters:

  • location — The location to move the output camera to. The returned camera is in the same spatial reference as the source camera. If the spatial reference of the point is not specified, it is assumed to be the spatial reference of the camera.

Return Value: A copy of the camera with the location changed.