JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://maps.googleapis.com/maps/api/js"></script>
<input type="button" value="Brasil" id="moveToBrasil" />
<div id="googleMap" style="width:500px;height:380px;"></div>
JavaScript
var map;
function initialize() {
var mapProp = {
center:new google.maps.LatLng(45,19),
zoom:10,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
}
google.maps.event.addDomListener(window, 'load', initialize);
$('#moveToBrasil').click(function(){
map.setCenter(new google.maps.LatLng( -14.235004 , -51.92528 ) );
});