# Feature Data Functions
▸ properties() (opens new window)
Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.
▸ feature-state() (opens new window)
Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Features are identified by their
id attribute, which must be an integer or a string that can be cast to an integer. Note that ["feature-state"] can only be used with paint properties that support data-driven styling.▸ geometry-type() (opens new window)
Gets the feature's geometry type:
Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.▸ id() (opens new window)
Gets the feature's id, if it has one.
▸ line-progress() (opens new window)
Gets the progress along a gradient line. Can only be used in the
line-gradient property.▸ accumulated() (opens new window)
Gets the value of a cluster property accumulated so far. Can only be used in the
clusterProperties option of a clustered GeoJSON source.