Base interface for Esri sublayer classes.

interface SublayerLike {
    id?: string | number;
    layer?: LayerWithSublayers;
    listMode?: LayerListMode;
    maxScale?: number;
    minScale?: number;
    opacity?: number;
    sublayers?: Collection<SublayerLike>;
    title?: string;
    visible?: boolean;
    clone?(): SublayerLike;
}

Hierarchy

  • default
    • SublayerLike

Properties

id?: string | number

The unique ID for the sublayer.

The parent Layer object.

listMode?: LayerListMode

Controls the visibility of the sublayer in the layer list.

maxScale?: number

The sublayer's maximum scale.

minScale?: number

The sublayer's minimum scale.

opacity?: number

The opacity of the sublayer, specified as a number between 0 (transparent) and 1 (fully opaque).

sublayers?: Collection<SublayerLike>

A collection of child sublayers. Not all sublayer types support this.

title?: string

The human readable title of the sublayer.

visible?: boolean

Whether the sublayer is visible.

Methods