How do I put a switch in maps to on and off the location?

A simple map using Map How to put my location on a map might be what you are looking for,