I have a marker on google maps on my website. I want the marker to be always at the center of the map whether we zoom in or zoom out.
In the sense, lets say the marker is at boston and the zoom level of map is in such way that we can see the whole Massachusetts state, no matter at which part of the state we zoom into, Boston should be at the center of the map with a newer zoomed level, same thing should happen even when we zoom out.
From the google docs
});
You can also use something like this to center the map on an event
map.setCenter(marker.getPosition());