Extension function to add a Layer provided by the Style Extension to the Style.
the layer id that the current layer is added above
The layer to be added