PromoteIdValue

fun PromoteIdValue(propertyName: String, sourceId: String? = null)

Construct the PromoteIdValue with propertyName and optional sourceId.

  • If only propertyName is specified then the same property is used across all its source layers.

  • If both propertyName and sourceId are given, only specified source layer will have id overridden, others will fallback to original feature id.


fun PromoteIdValue(expression: Expression)

Construct the PromoteId with Mapbox Expression.


fun PromoteIdValue(value: Value)

Parameters

value

the property wrapped in Value to be used with native renderer.