Class HomeService

Hierarchy

  • HomeService

Constructors

Methods

Constructors

Methods

  • 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.

    Parameters

    • features: Graphic | Collection<Graphic> | Graphic[] | FeatureSet

      the features to use to determine the viewpoint.

    • Optional scale: number

      an optional scale to be set on the viewpoint.

    Returns Promise<Viewpoint>

  • Parameters

    Returns Home

Generated using TypeDoc