Moved most of the map configuration into XML.