From switches to maps