JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://maps.google.com/maps/api/js?sensor=false&.js"></script>
<div id="map"></div>
CSS
#map{
width: 450px;
height: 400px;
}
JavaScript
var center = new google.maps.LatLng(62, 10);
var myOptions = {
zoom: 5,
center: center,
mapTypeId: 'terrain'
};
var map = new google.maps.Map($('#map')[0], myOptions);
var circle = new google.maps.Circle({
map: map,
center: center,
radius: 100000,
clickable: true
});
google.maps.event.addListener(map, "click", function(){
alert("Map clicked");
});
google.maps.event.addListener(circle, "click", function(){
alert("Circle clicked");
});