Skip to content

Commit

Permalink
fix(layer-legend): fix layer-legend display (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeLafreniere18 committed Mar 29, 2022
1 parent c565523 commit 55b864e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class LayerLegendComponent implements OnInit, OnDestroy {
} else if (this.styles && this.styles.length > 1) {
this.currentStyle = lastlLegend[0].currentStyle;
}
if (typeof this.layer.options.legendOptions !== 'undefined' && !this.layer.options.legendOptions.display) {
if (typeof this.layer.options.legendOptions !== 'undefined' && this.layer.options.legendOptions.display === false) {
lastlLegend = [];
} else {
lastlLegend = this.layer.dataSource.getLegend(this.currentStyle, this.view);
Expand Down

0 comments on commit 55b864e

Please sign in to comment.