-
-
-
+ {stopInput}
{
+ const fieldName = this.getFieldName();
+ return this._source && fieldName ? this._source.getValueSuggestions(fieldName, query) : [];
+ };
+
getFieldMeta() {
return this._getFieldMeta && this._field ? this._getFieldMeta(this._field.getName()) : null;
}
diff --git a/x-pack/legacy/plugins/maps/public/layers/styles/vector/vector_style.js b/x-pack/legacy/plugins/maps/public/layers/styles/vector/vector_style.js
index 97259a908f1e4..1f96c37c9d286 100644
--- a/x-pack/legacy/plugins/maps/public/layers/styles/vector/vector_style.js
+++ b/x-pack/legacy/plugins/maps/public/layers/styles/vector/vector_style.js
@@ -612,6 +612,7 @@ export class VectorStyle extends AbstractStyle {
field,
this._getFieldMeta,
this._getFieldFormatter,
+ this._source,
isSymbolizedAsIcon
);
} else {
@@ -631,7 +632,8 @@ export class VectorStyle extends AbstractStyle {
styleName,
field,
this._getFieldMeta,
- this._getFieldFormatter
+ this._getFieldFormatter,
+ this._source
);
} else {
throw new Error(`${descriptor} not implemented`);
@@ -663,7 +665,8 @@ export class VectorStyle extends AbstractStyle {
VECTOR_STYLES.LABEL_TEXT,
field,
this._getFieldMeta,
- this._getFieldFormatter
+ this._getFieldFormatter,
+ this._source
);
} else {
throw new Error(`${descriptor} not implemented`);
@@ -682,7 +685,8 @@ export class VectorStyle extends AbstractStyle {
VECTOR_STYLES.ICON,
field,
this._getFieldMeta,
- this._getFieldFormatter
+ this._getFieldFormatter,
+ this._source
);
} else {
throw new Error(`${descriptor} not implemented`);