Zoom map to current location

I’m using Google maps in my map interface and I need a pop-up to show asking user for permission to get their current location. When that happens, I want the map zoom in the visible area to the current location. How do I accomplish this?