JSFiddle - React, Tailwind, and code Playground

HTML

<script src="/assets/conference/scripts/jquery-1.10.2.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
	function initialize() {
	var map = new google.maps.Map(document.getElementById('map-canvas'));
    var projection = null; google.maps.event.addListener(map,'projection_changed', function() {
    projection = map.getProjection();
}); 
    //    projection.fromLatLngToPoint(point.latLng);
    //    projection.fromLatLngToPoint(arr[i]);
    
    var bounds = new google.maps.LatLngBounds();
if (!projection) 
    google.maps.event.addListener(map, 'idle', computeBounds);
else 
    computeBounds();

    var myLatlng1 = new google.maps.LatLng(51.525209,-0.09402479999994284);
    bounds.extend(myLatlng1);
    var myLatlng2 = new google.maps.LatLng(51.52106840183588,-0.10866641049801729);
    bounds.extend(myLatlng2);
	//  Fit these bounds to the map
	map.fitBounds(bounds);
  function computeBounds() {    
  var contentString1 = '<div class="map-content"><p>Test1<br />dsfasdf<br />dsfasdf<br />dsfasdf<br />dsfasdf<br />dsfasdf<br />dsfasdf</p></div>'
var infowindow1 = new google.maps.InfoWindow({content: contentString1});
var marker1 = new google.maps.Marker({position: myLatlng1,map: map,title: 'Test1'});

google.maps.event.addListener(marker1, 'click', function() {infowindow1.open(map,marker1);});
infowindow1.open(map,marker1);
google.maps.event.addListenerOnce(infowindow1,'domready',calcInfoWindowBounds); 


var contentString2 = '<div class="map-content"><p><br />dsfasdf<br />dsfasdf<br />dsfasdf<br />dsfasdf<br />dsfasdf</p></div>'
var infowindow2 = new google.maps.InfoWindow({content: contentString2});
var marker2 = new google.maps.Marker({position: myLatlng2,map: map,title: 'Test2'});
    google.maps.event.addListenerOnce(infowindow2,'domready',calcInfoWindowBounds); 

    function calcInfoWindowBounds(){
    domEls = document.getElementsByClassName('map-content');
    var markerSpace = 32+8;
    var...

CSS

#map-canvas {
    height: 520px; width: 100%;
}