Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapResult

An MapResult object contains response information about an AMP request.

Hierarchy

  • MapResult

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MapResult(response: any, image: HTMLImageElement, error: any, params?: any): MapResult
  • Initializes a result instance with the necessary response information.

    Parameters

    • response: any
    • image: HTMLImageElement
    • error: any
    • Default value params: any = null

    Returns MapResult

Properties

error

error: any

The error that occurred during the request, if any.

memberof

MapResult

image

image: HTMLImageElement

The image returned by the API.

memberof

MapResult

metadata

metadata: MapMetadata

Additional information about the returned map image, such as valid and run times.

memberof

MapResult

params

params: any

The request parameters that were used.

memberof

MapResult

response

response: any

The response object returned by the request.

memberof

MapResult

Methods

headers

  • headers(): Headers
  • Returns the headers returned by the response, if any.

    Returns Headers

Generated using TypeDoc