Skip to content

Commit facba05

Browse files
dont render custom label text legend (needs discussion)
1 parent 6f2e262 commit facba05

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

x-pack/legacy/plugins/maps/public/layers/styles/vector/properties/components/dynamic_legend_row.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import React from 'react';
88
import _ from 'lodash';
99
import { RangedStyleLegendRow } from '../../../components/ranged_style_legend_row';
10+
import { VECTOR_STYLES } from '../../vector_style_defaults';
1011
const EMPTY_VALUE = '';
1112

1213
export class DynamicLegendRow extends React.Component {
@@ -82,6 +83,12 @@ export class DynamicLegendRow extends React.Component {
8283
}
8384

8485
_renderBreakedLegend() {
86+
if (this.props.style.getStyleName() === VECTOR_STYLES.LABEL_TEXT) {
87+
//It is not clear how to render breaked legend yet for text.
88+
//Cannot rely on small-legend icon to provide a similar preview
89+
return null;
90+
}
91+
8592
return this.props.style.renderBreakedLegend({
8693
fieldLabel: this.state.label,
8794
isLinesOnly: this.state.isLinesOnly,

x-pack/legacy/plugins/maps/public/layers/styles/vector/properties/dynamic_text_property.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,4 @@ export class DynamicTextProperty extends DynamicStyleProperty {
3232
isScaled() {
3333
return false;
3434
}
35-
36-
renderHeader() {
37-
return null;
38-
}
3935
}

0 commit comments

Comments
 (0)