Contains information about an attribute field and feature geometry.
Referenced by: featureSet, template
Properties
Property | Details |
---|---|
attributes | The feature attributes. A JSON object that contains a dictionary of name-value pairs. The names are the feature field names. The values are the field values, and they can be any of the standard JSON types: string, number, and boolean. Note that date values are encoded as numbers. The number represents the number of milliseconds since epoch (January 1, 1970) in UTC. |
geometry | It can be any of the supported geometry types. |
popupInfo | A popupInfo object defining the content of popup window when you click a feature on the map. Applicable to features in a route and map notes feature layer only. |
symbol | Symbol used for drawing the feature. |
Example
{
"geometry": {
"x": -118.15,
"y": 33.8
},
"attributes": {
"OWNER": "Joe Smith",
"VALUE": 94820.37,
"APPROVED": true,
"LASTUPDATE": 1227663551096
},
"symbol": {
"type": "esriSFS",
"style": "esriSFSSolid",
"color": [
115,
76,
0,
255
],
"outline": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [
110,
110,
110,
255
],
"width": 1
}
}
}