getFeatureState method

dynamic getFeatureState(
  1. dynamic feature
)

Gets the state of a feature. Features are identified by their id attribute, which must be an integer or a string that can be cast to an integer.

@param {Object} feature Feature identifier. Feature objects returned from {@link MapboxMap#queryRenderedFeatures} or event handlers can be used as feature identifiers. @param {string | number} feature.id Unique id of the feature. @param {string} feature.source The Id of the vector source or GeoJSON source for the feature. @param {string} feature.sourceLayer (optional) /// For vector tile sources, the sourceLayer is required.*

@returns {Object} The state of the feature.

Implementation

dynamic getFeatureState(dynamic feature) => jsObject.getFeatureState(feature);