<html>
<body>
<div id="map" style="width:100%;height:500px"></div>
<script>
function myMap() {
var newYork = new google.maps.LatLng(40.7128,-74.0059);
var mapCanvas = document.getElementById("map");
var mapOptions = {center: newYork, zoom: 4};
var map = new google.maps.Map(mapCanvas,mapOptions);
var delilahCircle = new google.maps.Circle({
center: newYork,
radius: 1609000,
strokeColor: "#0000FF",
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: "#0000FF",
fillOpacity: 0.1
});
delilahCircle.setMap(map);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?callback=myMap"></script>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.