JSFiddle - React, Tailwind, and code Playground
by PeteLopez
HTML
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=true"></script>
<div id="map" style="width:400px;height:400px"></div>
JavaScript
function load() {
var myOptions = {
center: new google.maps.LatLng(42, -70),
zoom: 3,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map"), myOptions);
console.log(map);
alert("Click search to look for markers.");
}
load();