An implementation of Schema that directly mirrors the equivalent properties on FeatureLayer for reading, and disallows updating.

Hierarchy (view full)

Constructors

Properties

Maps schema properties to properties on Layer.

The parent layer extension.

fieldExtensions: FieldExtensionCollection

The field extensions associated with each field of the schema.

A collection of Field objects describing each field in the schema.

Accessors

  • get displayField(): string
  • The name of the field containing the display name of the feature.

    Returns string

  • set displayField(value): void
  • Parameters

    • value: string

    Returns void

  • get geometryType(): GeometryType
  • The type of geometry. This property will be undefined if the data is not spatial.

    Returns GeometryType

  • set geometryType(value): void
  • Parameters

    Returns void

  • get hasGeometry(): boolean
  • Whether the schema has spatial data.

    Returns boolean

  • get parent(): this
  • The parent settings that these settings will inherit from.

    Returns this

  • set parent(value): void
  • Parameters

    • value: this

    Returns void

  • get primaryKeyField(): string
  • The name of the field containing the feature's primary key (value that uniquely identifies a feature).

    Returns string

  • set primaryKeyField(value): void
  • Parameters

    • value: string

    Returns void

  • get spatialReference(): SpatialReference
  • The spatial reference of the schema. Can be defined using a well-known ID (WKID) or well-known text (WKT).

    Returns SpatialReference

  • set spatialReference(value): void
  • Parameters

    • value: SpatialReference

    Returns void

  • get timeZone(): string
  • The time zone that the data is stored in. The default is UTC.

    Returns string

  • set timeZone(value): void
  • Parameters

    • value: string

    Returns void

  • get typeIdField(): string
  • The name of the field holding the type ID or subtypes for the features.

    Returns string

  • set typeIdField(value): void
  • Parameters

    • value: string

    Returns void

  • get types(): Collection<FeatureType>
  • A collection of types or subtypes for the features.

    Returns Collection<FeatureType>

Methods

  • Finds a field by field name.

    Parameters

    • name: string

      The name of the field to search for.

    Returns Field

    The matching field, or undefined if there is no match.

  • Determines whether the settings have been locally modified in any way.

    Returns boolean

  • Determines whether the specified setting has been locally modified, and is thus overriding any inherited value.

    Parameters

    Returns boolean

  • Removes all local overrides, resetting all settings to their inherited values, if any.

    Returns void

  • Removes a local override for a setting and resets it to its inherited value, if any.

    Parameters

    Returns void

  • Generates a popup template field info object from an esri field.

    Parameters

    • field: Field

      The field to generate the field info object from.

    Returns FieldInfo