How can I export terrain to image map?

I’ve seen terrain based image map in many games and I’m also trying to make game map.
Is there a way to export the terrain as a map?

[image]


(example)

I’m 99% sure that these games are simply taking a bird’s-eye screenshot and importing it into Photoshop or some other software.