Centre a Google Map


I am using getCurrentGeolocation() to establish a users location when they click a button. I would now like to use this to re-centre a google map when the button is clicked. How would I go about this.

You can find this in the Google Maps API documentation .

Hi, thanks for this. I think I had already stumbled across this already but really understand enough to make it work. I’ve followed examples from you and now have a google map with multiple locations that I can filter, this was just the last step I wanted, but not too important.