JSFiddle - React, Tailwind, and code Playground

by arcm111

HTML

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false&amp;dummy=.js"></script>

<div id="map-canvas"></div>

CSS

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

JavaScript

var map;
function initialize() {
  var mapOptions = {
    zoom: 8,
    center: new google.maps.LatLng(-34.397, 150.644),
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  map = new google.maps.Map(document.getElementById('map-canvas'),
      mapOptions);
}

google.maps.event.addDomListener(window, 'load', initialize);