calculate map nodes