support optional layertree hierarchy from layers JSON