Cognitive mapping allows us to build internal representations of the world, and is critical to episodic memory and visualization. I explore the potential evolutionary origins of cognitive mapping, to show how the circuitry for basic foraging decision can be straightforwardly expanded for affective valuation and cognitive map construction in the foraging simulation, ASIMOV.