Pin Map Layer

Can someone please explain the difference between turning on a custom map layer and pinning the map layer.