JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCx_1hr0VItvq9-Qw_0YqcEd1Na882sSzk"></script>
<div id="map"></div>

CSS

#map {
  width: 100%;
  height: 300px;
}

JavaScript

// Create a map object and specify the DOM element for display.
var map = new google.maps.Map(document.getElementById('map'), {
	center: {lat: 49, lng: 17},
	scrollwheel: false,
	zoom: 8
});

var lat = 49;
var lng = 17;
var c = 0;

var interval = setInterval(function() {
	lat += 0.1;
	map.setCenter(new google.maps.LatLng( lat, lng ) );
  
  if (c == 10) clearInterval(interval);
  c++;
}, 300);