Skip to content

Commit

Permalink
[maps] fix Point to point and Tracks layers label properties not show…
Browse files Browse the repository at this point in the history
…ing in the legend (elastic#122993)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
nreese and kibanamachine authored Jan 14, 2022
1 parent 2f77acc commit 5309868
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []
Expand Down

0 comments on commit 5309868

Please sign in to comment.