Takes an array of features, or a similar object, and determines a good
Viewpoint
to show all features.
The features param can accept a variety of types, like a FeatureSet, Graphic, Graphic Array, or
a Collection of graphics. If the geometry type allows (lines, polygons, and multipoints),
the extents of the features will be unioned together, then that unioned extent is used to set the viewpoint.
For point geometries, a 1km buffer is calculated, and its extent is used instead.
Takes an array of features, or a similar object, and determines a good
Viewpoint
to show all features.The
features
param can accept a variety of types, like a FeatureSet, Graphic, Graphic Array, or a Collection of graphics. If the geometry type allows (lines, polygons, and multipoints), the extents of the features will be unioned together, then that unioned extent is used to set the viewpoint. For point geometries, a 1km buffer is calculated, and its extent is used instead.