From 5309868bc91209e0b7580278befccc087f2f1ac5 Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Fri, 14 Jan 2022 12:13:19 -0700 Subject: [PATCH] [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> --- .../classes/styles/vector/vector_style_defaults.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/maps/public/classes/styles/vector/vector_style_defaults.ts b/x-pack/plugins/maps/public/classes/styles/vector/vector_style_defaults.ts index a264ae36d88af..6b0e212357436 100644 --- a/x-pack/plugins/maps/public/classes/styles/vector/vector_style_defaults.ts +++ b/x-pack/plugins/maps/public/classes/styles/vector/vector_style_defaults.ts @@ -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[] = []