Updated syncMapToTreeSelection to animate the corresponding tree node.