Add isLegendExpanded property to layer

Define if legend should be expanded by default