Skip to content

Commit 31a77f5

Browse files
add clarifying comment
1 parent 9b092a6 commit 31a77f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_style_property.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ export class DynamicStyleProperty<T>
382382
}
383383

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

0 commit comments

Comments
 (0)