trees for maps