Init layercontrol directive