Evidence for environmental and ecological selection in a microbe with no geographic limits to gene flow