JSFiddle - React, Tailwind, and code Playground

by antisanity

HTML

<script src="http://maps.googleapis.com/maps/api/js?sensor=false&amp;extension=.js"></script>
<body>
    <header>Title</header>
    <div id="appcontent">
        <div id="map-canvas"></div>
    </div>
</body>

CSS

html, body {
    margin: 0px;
    width: 100%;
    height: 100%;
}
#appcontent {
    width: 100%;
    height: 100%;
}
#map-canvas {
    position: absolute;
    top: 40px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}
header {
    position: absolute;    
    top: 0px;
    left: 0px;
    right: 0px;    
    height: 40px;
    background-color: #CFCFCF;
}

JavaScript

jQuery(document).ready(function () {
    var mapOptions = {
        center: new google.maps.LatLng(42.0, -120.644),
        zoom: 8
    };

    var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
});