Creates an instance of APIScope.
The instance of Vue R4MP application controlled by this InstanceAPI.
This is just a shorthand for this.$iApi.$vApp
.
Will apply any field config metadata to a layer. Should be used after loading process has populated .fields property of the layer
the layer to apply the additional configuration to. Will be modified.
field settings from the config object. can be undefined
Util function to manage trickery. Non-Arcgis layer sources can have field names that are bad keys. Our loader will have corrected them, but the ramp layer config may still be referencing the original names (e.g. nameField, tooltipField). This function will attempt to return the valid field name for a given original field name.
array of valid fields for the layer
field name as defined in the source
a valid field name to use. Empty string if none found
Will generate the tabular transformation of an attribute set for a layer. The result will also be cached in the attribute source. If the result is already cached, it will be returned. The layer must be the owner of the attribute source. This method is generally called from an internal call within a layer. It exists as a public API to allow re-use across diverging layer types.
the layer owning the attributes and the attribute source
the attribute source for the attributes to transform
Will load an attribute set from an ArcGIS Server layer source.
defines the parameters for what to load
the controller which provides asyncronous hooks into the load, including loaded count and ability to abort
Will generate an attribute set from a compact json object. This is our base format for DataLayer sources that are not hosted on ArcGIS server. Provided sourceDataJson on the details parameter has already been cleaned and has object ids inserted.
defines the parameters for what to load
the controller which provides asyncronous hooks into the load, including loaded count and ability to abort
Will generate an attribute set from a feature layer with local data (i.e. a file layer).
defines the parameters for what to load
the controller which provides asyncronous hooks into the load, including loaded count and ability to abort
Will order the fields of a layer based on its fieldInfo.
the current order of the fields
the fieldInfo config that contains the order the fields should be displayed in
Provides methods for handling ESRI-style attributes