That doesn't happen in my example apps using Google maps. When the map is zoomed, the centre point is unchanged
For example, see:
https://www.isladogs.co.uk/get-current-geolocation/index.html
https://www.isladogs.co.uk/get-geolocation-from-photos/index.html