will add id of layer in legend if no title available