getLayer by id.