You can use the map.flyTo() method in JavaScript to smoothly pan the map to a given set of coordinates.