doc and setlayer
setlayer