Function convertExtentWithFallbackPrivate

  • Private

    If the request to convert the extent fails it has commonly been due to an invalid extent. This function will first attempt to use the provided extent. If it fails it will default to the source items extent and if that fails it will then use a default global extent.

    Parameters

    • extent: IExtent

      the extent to convert

    • fallbackExtent: any

      the extent to convert if the main extent does not project to the outSR

    • outSR: ISpatialReference

      the spatial reference to project to

    • geometryServiceUrl: string

      the service url for the geometry service to use

    • authentication: UserSession

      the credentials for the requests

    Returns Promise<any>

    the extent projected to the provided spatial reference or the world extent projected to the provided spatial reference