Skip to content

Commit

Permalink
remove crufty method
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Mar 19, 2020
1 parent 7c94a0d commit aa49420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class DynamicSizeProperty extends DynamicStyleProperty {
const rangeFieldMeta = this.getRangeFieldMeta();
if (this._isSizeDynamicConfigComplete(this._options) && rangeFieldMeta) {
const halfIconPixels = this.getIconPixelSize() / 2;
const targetName = this.getCompletedFieldName();
const targetName = this.getFieldName();
// Using property state instead of feature-state because layout properties do not support feature-state
mbMap.setLayoutProperty(symbolLayerId, 'icon-size', [
'interpolate',
Expand Down Expand Up @@ -126,7 +126,7 @@ export class DynamicSizeProperty extends DynamicStyleProperty {
}

return this._getMbDataDrivenSize({
targetName: this.getCompletedFieldName(),
targetName: this.getFieldName(),
minSize: this._options.minSize,
maxSize: this._options.maxSize,
minValue: rangeFieldMeta.min,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@ export class DynamicStyleProperty extends AbstractStyleProperty {
return this._field ? this._field.getName() : '';
}

getCompletedFieldName() {
if (!this.isComplete()) {
return null;
}
return this.getField().getName();
}

isDynamic() {
return true;
}
Expand Down

0 comments on commit aa49420

Please sign in to comment.