RAMP4 - v4.21.0
    Preparing search index...

    Exposes methods for creating layers and fetching information about layers in the instance.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    APIScope

    files: FileUtils

    Accessors

    • get $element(): App<Element>

      Returns App<Element>

    • get $vApp(): ComponentPublicInstance

      The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

      Returns ComponentPublicInstance

      APIScope

    Methods

    • Returns all map-based layers currently on the map. Result can be ordered in map stack order. Unordered is more performant.

      Parameters

      • OptionalinMapOrder: boolean = true

        if result array should be sorted by map order.

      Returns LayerInstance[]

      all layers on the map

    • Waits for a layer to register, then returns it.

      Parameters

      • layerId: string

        layer id or uid of the layer

      • waitForView: boolean = false

        determines whether we should wait for the layer's esriView to be defined

      Returns Promise<LayerInstance>

      The layer instance with the given id.

    • Waits for a sublayer to register, then returns it.

      Parameters

      • layerId: string

        layer id of the layer.

      • index: number

        index of the sublayer

      Returns Promise<LayerInstance>

      The sublayer instance.

    • Access a registered layer object.

      Parameters

      • layerId: string

        layer id or uid of the layer

      Returns LayerInstance | undefined

      The layer instance with the given id. Returns undefined if 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 { controls: LayerControl[]; disabledControls: LayerControl[] } | undefined

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

    • Get the current map stack position of a given map layer

      Parameters

      • layerId: string

        layer id or uid of the layer

      Returns number | undefined

      The layer position in the map stack. Undefined if a data layer or layer not found

    • Access a registered sublayer object.

      Parameters

      • layerId: string

        layer id of the layer

      • index: number

        index of the sublayer

      Returns LayerInstance | undefined

      The sublayer instance matching the parameters. Returns undefined if sublayer is not found.

    • Return the Layer IDs of all registered map layers in the order they occupy, or will occupy, the map stack.

      Returns string[]

      layer ids, from bottom to top

    • Will fetch the feature count for an ArcGIS Server layer

      Parameters

      • serviceUrl: string

        url of the layer to count

      • permanentFilter: string = ''

        optional filter to apply to the count

      Returns Promise<number>

      that resolves with the feature count, -1 if error

    • Returns a standardized sublayer id for a parent id and sublayer index

      Parameters

      • parentLayerId: string

        layer id of the layer hosting the sublayer

      • sublayerIndex: number

        index of the sublayer

      Returns string

      standardized sublayer id