Skip to content

Commit

Permalink
add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Sep 15, 2020
1 parent 9b092a6 commit 31a77f5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ export class DynamicStyleProperty<T>
}

getMbPropertyValue(rawValue: RawValue): RawValue {
// Maps only uses feature-state for numerical values.
// `supportsMbFeatureState` will only return true when the mb-style rule does a feature-state lookup on a numerical value
// Calling `isOrdinal` would be equivalent.
return this.supportsMbFeatureState() ? getNumericalMbFeatureStateValue(rawValue) : rawValue;
}
}
Expand Down

0 comments on commit 31a77f5

Please sign in to comment.