I have this:
function initMap() {
// Create a new map object focused on PA
map = new google.maps.Map(document.getElementById('Map'), {
zoom: 8,
center: { lat: 41, lng: -78 },
});
I would like the user to be able to zoom in and switch the data on the map to show some other variable without the map resetting the center and zoom level.