An Angular Service that's provided in the root of your application. The service can be used to make an HTTP request to the ArcGIS REST API, where the API will convert a shapefile to Esri Graphics.

Hierarchy

  • UploadShapefileService

Constructors

Methods

  • Parameters

    • portalUrl: undefined | null | string

    Returns string

  • Generate Esri Graphic features from an uploaded shapefile.

    Returns

    an Esri RequestResponse from the REST API that contains the graphics as features

    Parameters

    • config: IGenerateFeaturesConfig

      a configuration object that is required to perform feature generation. Provides the ability to control the semantics of the request

    Returns Promise<RequestResponse>

  • Parameters

    Returns boolean

  • Validate that a file includes the .zip extension.

    Returns

    true if the filename is a zip archive, false otherwise

    Parameters

    • filename: string

      the name of the file to validate

    Returns boolean

Generated using TypeDoc