Define controller for maps.