Extends the capabilities of an Esri WMSSublayer object.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

_effectiveFullExtent: Extent
_handles: Handles<unknown, ResourceHandle>
_id: string

The unique ID for this entity. Once set, this should never change.

_itemType: string = ItemType.SUBLAYER_EXTENSION

The item type for this entity when it participates in an App.

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

iconUrl?: string

URL to an icon that represents this feature source.

layerListSettings: LayerListSettings

Settings that affect the behavior and presentation of the sublayer in the layer list.

onAddFeature?: Action

The action to be executed when a feature is added.

onEditFeature?: Action

The action to be executed when a feature is edited.

queryService?: QueryService

An optional query service that the feature source can use to get features.

wfsLayerInfo?: WFSLayerInfo

Information about a corresponding WFS layer that can be used for querying/identifying this sublayer.

If not set explicitly, it can be initialized from the parent layer extension's wfsUrl by calling initializeWfs().

The factory that will be used whenever a new sublayer extension needs to be created. Applications can supply their own factory to customize sublayer extension creation.

Accessors

  • get canChangeDefinitionExpression(): boolean
  • Determines whether the type of sublayer being extended supports changing its definition expression.

    Returns boolean

  • get canChangeLabels(): boolean
  • Determines whether the type of sublayer being extended supports changing labels. Default is false.

    Returns boolean

  • get canChangeOpacity(): boolean
  • Determines whether the type of sublayer being extended supports changing opacity. Sublayers belonging to tiled layers cannot have their opacity changed, for example. The default is true.

    Returns boolean

  • get canChangeRenderer(): boolean
  • Determines whether the type of sublayer being extended supports changing its renderer.

    Returns boolean

  • get canChangeScale(): boolean
  • Determines whether the type of sublayer being extended supports changing Scale. Sublayers belonging to tiled layers cannot have their scale changed, for example. The default is true.

    Returns boolean

  • get canToggleVisibility(): boolean
  • Determines whether the type of sublayer being extended supports toggling visibility. Sublayers belonging to tiled layers cannot have their visibilities toggled, for example. The default is true.

    Returns boolean

  • get effectiveFullExtent(): Extent
  • The effective full extent of this sublayer extension.

    Returns Extent

  • get effectiveMaxScale(): number
  • The effective max scale for this sublayer extension.

    Returns number

  • get effectiveMinScale(): number
  • The effective min scale for this sublayer extension.

    Returns number

  • get featureSettings(): FeatureSettings
  • Default settings that apply to features originating from this source.

    Returns FeatureSettings

  • get hasFeatures(): boolean
  • Determines whether this type of layer is capable of producing features.

    Returns boolean

  • Hyperlinks associated with the feature source.

    Returns Collection<Hyperlink>

  • get id(): string
  • The unique ID for this entity.

    Returns string

  • get initialDefinitionExpression(): string
  • String value containing the initial definition expression configured on the layer.

    Returns string

  • get initialRenderer(): Renderer
  • A clone of the initial renderer, if any, that the ESRI layer uses to display data on the map.

    Returns Renderer

  • get initialVisibility(): boolean
  • Indicates the initial layer visibility.

    Returns boolean

  • get isEffectivelyVisible(): boolean
  • The effective visibility for this sublayer extension.

    Returns boolean

  • get itemType(): string
  • The item type for this entity when it participates in an App.

    Returns string

  • get relationships(): Collection<Relationship>
  • Relationships to other feature sources.

    Returns Collection<Relationship>

  • get renderer(): RendererUnion
  • The renderer, if any, that the ESRI sublayer uses to display data on the map.

    Returns RendererUnion

  • get schema(): Schema
  • Metadata about features originating from this source, such as fields, domains, and geometry type.

    Returns Schema

  • get sublayer(): WMSSublayer
  • The sublayer that is being extended.

    Returns WMSSublayer

  • get supportsSublayers(): boolean
  • Determines whether this type of sublayer is capable of having sublayers.

    Returns boolean

  • get taskSettings(): TaskSettings
  • Settings that affect whether a feature source participates in various tasks that are performed on a map.

    Returns TaskSettings

  • get visibilityMode(): GroupLayerVisibilityMode
  • Indicates how to manage the visibility of the children layers.

    Returns GroupLayerVisibilityMode

  • set visibilityMode(value): void
  • Parameters

    • value: GroupLayerVisibilityMode

    Returns void

  • get wfsFeatureType(): WFSFeatureType
  • The WFS feature associated with this sublayer if there is an associated wfsLayerInfo.

    Returns WFSFeatureType

Methods

  • Called to add new features. Subclasses must override this if they support adding features.

    Parameters

    • features: Iterable<Feature, any, any>

      The features to add.

    • Optionaloptions: FeatureWriteOptions

      Additional options that control how the feature is saved.

    Returns Promise<void>

  • Called to remove attachments from a feature. Subclasses must override this if they support feature attachments.

    Parameters

    • feature: Feature

      The feature to delete attachments from.

    • attachments: (string | Attachment)[]

      The attachments or the IDs of the attachments to delete.

    Returns Promise<void>

  • Called to delete features. Subclasses must override this if they support deleting features.

    Parameters

    • ids: string[]

      The IDs of the features to delete.

    • Optionaloptions: FeatureWriteOptions

      Additional options that control how the features are deleted.

    Returns Promise<void>

  • Called to retrieve attachments for a feature. Subclasses must override this if they support feature attachments.

    Parameters

    • feature: Feature

      The feature to get attachments for.

    Returns Promise<Attachment[]>

  • Called to retrieve features. Subclasses must override this if they support querying for features.

    Parameters

    • ids: string[]

      The unique IDs of features to retrieve.

    • Optionaloptions: FeatureReadOptions

      Options that control what gets returned.

    Returns AsyncIterable<Feature, any, any>

  • Determines whether the sublayer is of the right type for the type of sublayer extension.

    Parameters

    Returns boolean

  • Called to perform cleanup. Subclasses should override this method rather than destroy() to perform custom cleanup.

    Returns Promise<void>

  • Called after normal initialization. Note: Child items are initialized before this is called.

    Returns Promise<void>

  • Called to update features. Subclasses must override this if they support updating features.

    Parameters

    • features: Iterable<Feature, any, any>

      The feature to update.

    • Optionaloptions: FeatureWriteOptions

      Additional options that control how the feature is saved.

    Returns Promise<void>

  • Deletes attachments from a feature.

    Parameters

    • feature: Feature

      The feature to delete attachments from.

    • attachments: (string | Attachment)[]

      The attachments or the IDs of the attachments to delete from the feature.

    Returns Promise<void>

  • Deletes features from their source. If the source does not support deleting features, then an InvalidOperationError will be thrown (see capabilities).

    Parameters

    • ids: Iterable<string, any, any>

      The IDs of the features to delete.

    • Optionaloptions: FeatureWriteOptions

      Additional options that control how the features are deleted.

    Returns Promise<void>

  • Deletes features from their source. If the source does not support deleting features, then an InvalidOperationError will be thrown (see capabilities).

    Parameters

    • features: Iterable<Feature, any, any>

      The features to delete.

    • Optionaloptions: FeatureWriteOptions

      Additional options that control how the features are deleted.

    Returns Promise<void>

  • A clean-up function that should get called whenever the item is disposed of.

    Returns Promise<void>

  • Gets a feature by ID. If no such feature exists, the promise is rejected with an instance of NotFoundError.

    Parameters

    • id: string

      The ID of the feature to retrieve.

    • Optionaloptions: FeatureReadOptions

      Additional options that control how the feature is retrieved.

    Returns Promise<Feature>

  • Gets a set of features by their IDs.

    Parameters

    • ids: string[]

      The IDs of the features to retrieve.

    • Optionaloptions: FeatureReadOptions

      Additional Options that control how the features are retrieved.

    Returns AsyncIterable<Feature, any, any>

  • Returns the full extent of the source that contains all included features.

    Returns Extent

  • Initializes the WFS info associated with this sublayer if the parent layer extension has an associated WFS URL.

    Returns Promise<void>