The first ePrix on African soil in Marrakech was the official sports partner of COP22, the UN climate change conference.