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

Hierarchy (view full)

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

  • Access a registered layer object.

    Parameters

    • layerId: string

      layer id or uid of the layer

    Returns undefined | LayerInstance

    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 undefined | {
        controls: LayerControl[];
        disabledControls: LayerControl[];
    }

    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 undefined | number

    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 undefined | LayerInstance

    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