Interface AGSStore

The type of stores created by the AGSStoreFactory.

Hierarchy

  • AsyncStore
    • AGSStore

Properties

id: undefined | string

ID of the store.

idProperty?: string

Name of the property used as ID. If not provided, the 'getIdentity' method must be declared.

target: undefined | string

Deprecated

Use url instead.

url: undefined | string

The URL of the layer queried by this store. Undefined if this store works on a client side layer.

Methods

  • Retrieves an item by its identifier.

    Parameters

    • id: AllowedIdTypes

      id of an item in the store.

    • Optional options: GetOptions

      options to specify the result.

    Returns Promise<undefined | Readonly<Record<string, any>>>

  • Returns an itemsā€˜s identity. This must always execute synchronously.

    Parameters

    • item: Partial<Readonly<Record<string, any>>>

      the item.

    Returns undefined | AllowedIdTypes

    the ID

  • Returns any available metadata about the store. This may include attribution, available fields, cache directives, history or version information.

    Returns Promise<Metadata>

  • Queries the store using the provided query.

    Parameters

    • Optional query: ComplexQueryExpression

      a query to execute.

    • Optional options: QueryOptions

      the query options.

    Returns AsyncQueryResult<Readonly<Record<string, any>>>

Generated using TypeDoc