get map switch working