Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export class DynamicSizeProperty extends DynamicStyleProperty {

_getMbDataDrivenSize({ targetName, minSize, maxSize, minValue, maxValue }) {
const lookup = this.supportsMbFeatureState() ? 'feature-state' : 'get';

const stops =
minValue === maxValue ? [minValue, minSize] : [minValue, minSize, maxValue, maxSize];
Comment thread
thomasneirynck marked this conversation as resolved.
Outdated
return [
'interpolate',
['linear'],
Expand All @@ -120,10 +123,7 @@ export class DynamicSizeProperty extends DynamicStyleProperty {
fieldName: targetName,
fallback: 0,
}),
minValue,
minSize,
maxValue,
maxSize,
...stops,
];
}

Expand Down