An implementation of Schema that directly mirrors the spatial reference on SubtypeGroupLayer. Spatial reference is read only for SubtypeGroupLayer.

Hierarchy (view full)

Constructors

Properties

Maps schema properties to properties on Layer.

The parent layer extension.

@eventTypes: SchemaEvents

Do not directly reference this property. Use EventNames and EventTypes helpers from @arcgis/core/Evented.

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

  • Creates the backing collection for fields.

    Returns Collection<Field>

  • Creates the backing collection for fields.

    Returns Collection<FeatureType>

  • 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.

  • 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