Class AbstractAttributeProviderAbstract

baseclass for all Objects

Hierarchy (view full)

Implements

Accessors

  • get className(): string
  • Returns string

Constructors

Methods

  • Protected

    Retrieves attributes for a given key and feature. Be sure not to use the feature id for lookup, but the provided key.

    Parameters

    • key: string

      the key to retrieve attributes for

    • feature: EventFeature

      the feature requesting the attributes

    Returns Promise<undefined | Record<string, unknown>>

  • Protected

    Optional bulk attribute retrieval for multiple keys. Can be implemented for optimal loading of data. Provides a webmercator extent to limit the lookup if needed. You MUST return a same length array as keys, with undefined for missing attributes.

    Parameters

    • bulk: {
          feature: EventFeature;
          key: string;
      }[]

      array of key and feature pairs to retrieve attributes for

    • Optional_extent: Extent

      optional extent in webmercator to limit attribute lookup on certain providers.

    Returns Promise<(undefined | Record<string, unknown>)[]>

Properties

[moduleIdSymbol]?: string
isDestroyed: boolean
keyProperty?: string
name: string

unique Name

properties: Record<string, unknown>