set Feature State
Sets the state of a feature in this source.
Feature state can be read in style expressions through ["feature-state", key]. The target feature must already have an id in the underlying source data.
Return
true if the source is attached to a map and the update was dispatched
Parameters
source Layer Id
the source layer id
feature Id
the id of the feature whose state to set
state
a JSON object with the state key-value pairs to merge