Functions / layer clone
clone(idLayer, [parameters])
clone(string idLayer, object parameters)

When you create a clone of the layer, you allways need to define id of it!
clone(string idLayer, object parameters)
return: clone of the layer