¿Hay alguna manera de mover un marker o volver a recenter el map sin volver a redrawing todo el map ?
estoy usando este codigo
var markerLat = 39.0 var markerLon = -80.0; var centerLat = 39.0; var centerLon = -80.0 var myZoom = 15; function initMap() { // The location of Uluru const uluru = { lat: centerLat, lng: centerLon }; // The map, centered at Uluru const map = new google.maps.Map(document.getElementById("map"), { zoom: myZoom, center: uluru, }); // The marker, positioned at Uluru var myLatlng = new google.maps.LatLng(markerLat,markerLon); const marker = new google.maps.Marker({ position: myLatlng, map: map, }); } window.initMap = initMap; let eventSource = new EventSource("/sseTest"); eventSource.onmessage = function(event) { console.log("new message from index.js " + event.data); const myArray = event.data.split(" "); if(myArray[0] == 0) { markerLat = myArray[0]; markerLon = myArray[1]; } else { markerLat = myArray[2]; markerLon = myArray[3]; } const myMarkerLatlng = new google.maps.LatLng(markerLat, markerLon); const myCenterLatLon = new google.maps.LatLng(markerLat, markerLon); var mapOptions = { zoom: myZoom, center: myCenterLatLon, } var map = new google.maps.Map(document.getElementById("map"), mapOptions); var marker = new google.maps.Marker({ position: myMarkerLatlng, map: map, }); marker.setMap(map); }; y parece volver a redraw el map como una actualización de página completa cuando llega una actualización (una vez por minuto). Me gustaría simplemente mover el marker como lo hace cuando un usuario comparte su location contigo.