Show:

ia.AGOLData Class

Module: ia

Contains information about a report.

Constructor

ia.AGOLData

()

Methods

buildGeography

(
  • agolGeography
  • callbackFunction
)

Builds a geography.

Parameters:

  • agolGeography JSON

    The AGOL Geography.

  • callbackFunction Function

    The call back function.

buildIndicator

(
  • iaGeography
  • agolIndicator
)
JSON

Builds an indicator or associate.

Parameters:

  • iaGeography JSON

    An IA Geography.

  • agolIndicator JSON

    The AGOL indicator or associate.

Returns:

JSON: The IA indicator or associate.

buildThemes

(
  • iaGeography
  • iaParent
  • agolThemes
)

Builds a geography.

Parameters:

  • iaGeography JSON

    An IA Geography.

  • iaParent JSON

    The parent of these themes. An IA Geography or IA Theme.

  • agolThemes JSON

    A list of AGOL Themes.

getAttributeData

(
  • url
  • fieldNames
  • callbackFunction
)
Object

Gets the attribute data for the given objectIds from a FeatureServer.

Parameters:

  • url String

    The url of the FeatureServer.

  • fieldNames String

    The field names to get attributes data for.

  • callbackFunction Function

    The call back function.

Returns:

Object: A list of features and their attributes.

getObjectIds

(
  • iaGeography
  • callbackFunction
)
Number

Gets the object ids and the maxRecordCount of the FeatureServer.
The maxRecordCount is the maximum number of records that a FeatureServer will return.

Parameters:

  • iaGeography JSON

    An IA Geography.

  • callbackFunction Function

    The call back function.

Returns:

Number: The maxRecordCount.

loadSource

(
  • url
  • callbackFunction
)

Loads and parses the source file then calls the given function.

Parameters:

  • url String

    The url to the data.

  • callbackFunction Function

    The call back function.

parseData

(
  • agolData
  • callbackFunction
)

Parses AGOL "data" JSON into IA "data" JSON.

Parameters:

  • agolData JSON

    The AGOL data file.

  • callbackFunction Function

    The call back function.

readCsvFile

(
  • idField
  • features
  • iaIndicator
  • callbackFunction
)

Reads in a csv file.

Parameters:

  • idField String

    The feature id field.

  • features JSON

    The list of features.

  • iaIndicator JSON

    An IA Indicator.

  • callbackFunction Function

    The call back function.

Properties

iaData

JSON

The raw json data describing the IA attribute data.