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

layerCount: number = 0
sublayerCount: number = 0

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.

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

    Memberof

    APIScope

Methods

  • Get layer info from a file url or data

    Parameters

    • url: string

      a service url to load, name of file if file data is provided

    • fileType: LayerType

      format of the file (layer type)

    • Optional fileData: ArrayBuffer

      raw file data buffer

    Returns Promise<undefined | LayerInfo>

    LayerInfo object

  • Get layer info from a service url

    Parameters

    • url: string

      a service url to load

    • serviceType: string

      type of layer

    • nested: boolean

    Returns Promise<undefined | LayerInfo>

    LayerInfo object

Generated using TypeDoc