Initialize Google Map at current location

Anyone have a sample showing how to create a Google Map centered on the user’s location?
All the examples I’ve seen use a static/pre-determined lat-long.
Would like to see an example that gets the current location and creates a map specifying that as the target.
I’ve tried to create a map at a static location and then animate it to the user’s location, but that doesn’t work as expected. Appreciate if anyone has any samples or pointers.