withLayer

Will add the layer when the style has loaded.

Return

this

Parameters

layer

the layer to be added