legend and layertree changed