[maps] fix Point to point and Tracks layers label properties not showing in the legend (#122993)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2022-01-14 12:13:19 -07:00 committed by GitHub
parent 2f77acc90b
commit 5309868bc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,18 +31,19 @@ export const DEFAULT_ICON_SIZE = 6;
export const DEFAULT_COLOR_RAMP = NUMERICAL_COLOR_PALETTES[0].value;
export const DEFAULT_COLOR_PALETTE = CATEGORICAL_COLOR_PALETTES[0].value;
export const LINE_STYLES = [VECTOR_STYLES.LINE_COLOR, VECTOR_STYLES.LINE_WIDTH];
export const POLYGON_STYLES = [
VECTOR_STYLES.FILL_COLOR,
VECTOR_STYLES.LINE_COLOR,
VECTOR_STYLES.LINE_WIDTH,
];
export const LABEL_STYLES = [
VECTOR_STYLES.LABEL_SIZE,
VECTOR_STYLES.LABEL_COLOR,
VECTOR_STYLES.LABEL_BORDER_COLOR,
VECTOR_STYLES.LABEL_BORDER_SIZE,
];
export const LINE_STYLES = [VECTOR_STYLES.LINE_COLOR, VECTOR_STYLES.LINE_WIDTH, ...LABEL_STYLES];
export const POLYGON_STYLES = [
VECTOR_STYLES.FILL_COLOR,
VECTOR_STYLES.LINE_COLOR,
VECTOR_STYLES.LINE_WIDTH,
...LABEL_STYLES,
];
export function getDefaultStaticProperties(
mapColors: string[] = []