Add isLegendExpanded property to layer

Define if legend should be expanded by default.
[cgxp](https://github.com/camptocamp/cgxp)’s PR to come.