mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Maps] pass getFieldFormatter to DynamicTextProperty (#53937)
* [Maps] pass getFieldFormatter to DynamicTextProperty * remove files from another PR
This commit is contained in:
parent
8cc778a64a
commit
ace50d8d2b
2 changed files with 8 additions and 2 deletions
|
@ -613,7 +613,13 @@ export class VectorStyle extends AbstractStyle {
|
|||
return new StaticTextProperty(descriptor.options, VECTOR_STYLES.LABEL_TEXT);
|
||||
} else if (descriptor.type === DynamicStyleProperty.type) {
|
||||
const field = this._makeField(descriptor.options.field);
|
||||
return new DynamicTextProperty(descriptor.options, VECTOR_STYLES.LABEL_TEXT, field);
|
||||
return new DynamicTextProperty(
|
||||
descriptor.options,
|
||||
VECTOR_STYLES.LABEL_TEXT,
|
||||
field,
|
||||
this._getFieldMeta,
|
||||
this._getFieldFormatter
|
||||
);
|
||||
} else {
|
||||
throw new Error(`${descriptor} not implemented`);
|
||||
}
|
||||
|
|
|
@ -168,5 +168,5 @@ export function canSkipFormattersUpdate({ prevDataRequest, nextMeta }) {
|
|||
return false;
|
||||
}
|
||||
|
||||
return !_.isEqual(prevMeta.fieldNames, nextMeta.fieldNames);
|
||||
return _.isEqual(prevMeta.fieldNames, nextMeta.fieldNames);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue