PromoteId

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

Construct the PromoteId 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 PromoteId(expression: Expression)

Construct the PromoteId with Mapbox Expression.


fun PromoteId(value: Value)

Parameters

value

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