Class LayerAPI

A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.

Export

Hierarchy

Constructors

Properties

The instance of RampMap API scoped to a single Vue R4MP application.

Memberof

APIScope

files: FileUtils

Accessors

  • get $element(): App<Element>
  • Returns App<Element>

  • get $vApp(): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
  • The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

    Memberof

    APIScope

    Returns ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>

Methods

  • Access an instantiated layer object.

    Parameters

    • layerId: string

      layer id or uid of the layer

    Returns undefined | LayerInstance

    The layer instance with the given id. Returns undefined is layer is not found.

  • Get controls and disabled controls configuration of the layer with the given id.

    Parameters

    • layerId: string

      layer id or uid of the layer

    Returns undefined | {
        controls: LayerControl[];
        disabledControls: LayerControl[];
    }

    The layer's controls and disabled controls configuration. Returns undefined if layer is not found.

Generated using TypeDoc