Skip to content

Commit

Permalink
do not display label text in legend
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Dec 18, 2019
1 parent d11129e commit 9ef5e7a
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,17 @@ export class VectorStyle extends AbstractStyle {
const isPolygonsOnly = await this._getIsPolygonsOnly();

return this.getDynamicPropertiesArray().filter(styleProperty => {
const styleName = styleProperty.getStyleName();
if ([VECTOR_STYLES.ICON_ORIENTATION, VECTOR_STYLES.LABEL_TEXT].includes(styleName)) {
return false;
}

if (isLinesOnly) {
return LINE_STYLES.includes(styleProperty.getStyleName());
return LINE_STYLES.includes(styleName);
}

if (isPolygonsOnly) {
return POLYGON_STYLES.includes(styleProperty.getStyleName());
return POLYGON_STYLES.includes(styleName);
}

return true;
Expand Down

0 comments on commit 9ef5e7a

Please sign in to comment.