Open Pioneer Trails Packages
    Preparing search index...

    Interface SublayerBaseType

    Represents a sublayer of another layer.

    interface SublayerBaseType {
        get attributes(): Record<string | symbol, unknown>;
        get children(): ChildrenCollection<AnyLayer> | undefined;
        deleteAttribute(deleteAttribute: string | symbol): void;
        get description(): string;
        destroy(): void;
        get destroyed(): EventSource<void>;
        get id(): string;
        get internal(): boolean;
        get isDestroyed(): boolean;
        get layers(): GroupLayerCollection | undefined;
        get legend(): string | undefined;
        get map(): MapModel;
        get nullableMap(): MapModel | undefined;
        parent: AnyLayer;
        parentLayer: Layer;
        setDescription(newDescription: string): void;
        setInternal(newIsInternal: boolean): void;
        setTitle(newTitle: string): void;
        setVisible(newVisibility: boolean): void;
        get sublayers(): SublayersCollection<WMSSublayer> | undefined;
        get title(): string;
        type: "wms-sublayer";
        updateAttributes(newAttributes: Record<string | symbol, unknown>): void;
        get visible(): boolean;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Accessors

    • get id(): string

      The unique id of this layer within its map model.

      NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

      Returns string

    • get internal(): boolean

      Property that specifies if the layer is an "internal" layer. Internal layers are not considered by any UI widget (e.g. Toc or Legend). The internal state is independent of the layer's visibility which is determined by visible

      NOTE: Some UI widgets might use component specific attributes or props that have precedence over the internal property.

      Returns boolean

    • get legend(): string | undefined

      Legend URL from the service capabilities, if available.

      Note: this property may be expanded upon in the future, e.g. to support more variants than just image URLs.

      Returns string | undefined

    • get visible(): boolean

      Whether the layer is visible or not.

      NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

      Returns boolean

    Methods

    Properties

    parent: AnyLayer

    The direct parent of this layer instance. This can either be the parent layer or another sublayer.

    parentLayer: Layer

    The parent layer that owns this sublayer.

    type: "wms-sublayer"

    Identifies the type of this sublayer.