Add attributes to new layer element