support for legend expanded on startup

see https://github.com/camptocamp/c2cgeoportal/pull/648