Viewpoint.fromCenter constructor

Viewpoint.fromCenter(
  1. ArcGISPoint center, {
  2. required double scale,
  3. double rotation = double.nan,
})

Creates a viewpoint with center point, scale, and rotation.

Parameters:

  • center — The center of the visible area.
  • scale — The ratio between a distance on the map and the corresponding distance on the ground.
  • rotation — The rotation angle in degrees between 0 and 360.