StyleRule.weight constructor

const StyleRule.weight(
  1. int weight
)

(an integer value, greater than or equal to zero) sets the weight of the feature, in pixels. Setting the weight to a high value may result in clipping near tile borders.

Implementation

const factory StyleRule.weight(int weight) = _StyleWeightRule;