new AttribFC()
- Source:
Methods
(static) unAliasAttribs(attribs, fields) → {Object}
- Source:
Convert an attribute set so that any keys using aliases are converted to proper fields
Parameters:
Name | Type | Description |
---|---|---|
attribs |
Object | attribute key-value mapping, potentially with aliases as keys |
fields |
Array | fields definition array for layer |
Returns:
attribute key-value mapping with fields as keys
- Type
- Object
aliasedFieldName(attribName) → {Promise}
- Source:
Get the best user-friendly name of a field. Uses alias if alias is defined, else uses the system attribute name.
Parameters:
Name | Type | Description |
---|---|---|
attribName |
String | the attribute name we want a nice name for |
Returns:
resolves to the best available user friendly attribute name
- Type
- Promise
checkDateType(attribName) → {Promise}
- Source:
Check to see if the attribute in question is an esriFieldTypeDate type.
Parameters:
Name | Type | Description |
---|---|---|
attribName |
String | the attribute name we want to check if it's a date or not |
Returns:
resolves to true or false based on the attribName type being esriFieldTypeDate
- Type
- Promise
getFormattedAttributes() → {Promise}
- Source:
Retrieves attributes from a layer for a specified feature index
Returns:
promise resolving with formatted attributes to be consumed by the datagrid and esri feature identify
- Type
- Promise
getServerFeatureInfo(objectId) → {Promise}
- Source:
Fetches feature information, including geometry, from esri servers for feature layer.
Parameters:
Name | Type | Description |
---|---|---|
objectId |
Integer | for feature to be retrived from the server |
Returns:
promise resolves with an esri Graphic (http://resources.arcgis.com/en/help/arcgis-rest-api/#/Feature_Map_Service_Layer/02r3000000r9000000/)
- Type
- Promise