Class QuickCacheInternal

Manages the quick lookup of attributes and geometries for individual features. Used when it makes sense to just download a small set of data instead of the entire layer.

Constructors

Properties

isPoint: boolean

Used to determine if we need to cache geometry at different scales.

Methods

  • Get a cached extent of a feature

    Parameters

    • key: number

      the OID of the feature

    Returns undefined | Extent

    the cached extent of the feature, if it exists

  • Get a cached geometry of a feature

    Parameters

    • key: number

      the OID of the feature

    • scale: undefined | number = undefined

      the map scale the geometry is valid at. Ignored / not required for Point/Multipoint geometry.

    Returns undefined | BaseGeometry

    the cached geometry of the feature, if it exists

  • Cache the attributes of a feature

    Parameters

    • key: number

      the OID of the feature

    • atts: Attributes

      the attributes of the feature

    Returns void

  • Cache the extent of a feature

    Parameters

    • key: number

      the OID of the feature

    • extent: Extent

      the extent of the feature

    Returns void

  • Cache the geometry of a feature

    Parameters

    • key: number

      the OID of the feature

    • geom: BaseGeometry

      the geometry of the feature

    • scale: undefined | number = undefined

      the map scale the geometry was drawn at. Ignored / not required for Point/Multipoint geometry.

    Returns void