Add a directive for the layer manager