JSFiddle - React, Tailwind, and code Playground

by will cadell

HTML

<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<div id="map-canvas" onload="initialize()" style="width: 100%; height: 100%"></div>

CSS

html, body, #map-canvas {
    height: 100%;
    margin: 0px;
    padding: 0px
}

JavaScript

function initialize() {
        var mapOptions = {
            zoom: 3,
            center: new google.maps.LatLng(50, 0)
        };

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

    }

initialize();