Readonly
$iThe instance of RampMap API scoped to a single Vue R4MP application.
The instance of Vue R4MP application controlled by this InstanceAPI.
This is just a shorthand for this.$iApi.$vApp
.
Returns all layers that have initiated successfully and that have not errored.
all layers that have initiated and not errored
Returns all initialized data-based layers currently registered with the map.
all loaded data layers
Return all layers in an error state.
all errored layers
Returns all layers currently undergoing initiation process.
all initiating layers
Return all registered layers.
all registered layers
Returns all map-based layers currently on the map. Result can be ordered in map stack order. Unordered is more performant.
Optional
inMapOrder: boolean = trueif result array should be sorted by map order.
all layers on the map
Will generate a RAMP Layer based on the supplied config object.
a valid layer configuration object
Layer in uninitialized load state
Access a registered layer object.
layer id or uid of the layer
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.
layer id or uid of the layer
The layer's controls and disabled controls configuration. Returns undefined if layer is not found.
Access a registered sublayer object.
layer id of the layer
index of the sublayer
The sublayer instance matching the parameters. Returns undefined if sublayer is not found.
Will fetch the feature count for an ArcGIS Server layer
url of the layer to count
optional filter to apply to the count
that resolves with the feature count, -1 if error
Will fetch metadata about a layer service endpoint on an ArcGIS server
the server url of the layer
resolves with relevant information about the layer service
Exposes methods for creating layers and fetching information about layers in the instance.