JSFiddle - React, Tailwind, and code Playground
by adamh
HTML
<script src="http://maps.google.com/maps/api/js?sensor=false&region=GB"></script>
<div id="map"></div>
CSS
html {
height: 100%;
}
body {
height: 100%;
padding: 0;
margin: 0;
}
#map {
height: 100%;
background: #eee;
}
JavaScript
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map"), myOptions);