chap4 update: map visualization tree mode done