4 <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
6 <title>Simple Polygon</title>
7 <link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
8 <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
10 function initialize() {
11 var myLatLng = new google.maps.LatLng(24.886436490787712, -70.2685546875);
15 mapTypeId: google.maps.MapTypeId.TERRAIN
20 var map = new google.maps.Map(document.getElementById('map-canvas'),
23 var triangleCoords = [
24 new google.maps.LatLng(25.774252, -80.190262),
25 new google.maps.LatLng(18.466465, -66.118292),
26 new google.maps.LatLng(32.321384, -64.75737),
27 new google.maps.LatLng(25.774252, -80.190262)
30 // Construct the polygon
31 bermudaTriangle = new google.maps.Polygon({
32 paths: triangleCoords,
33 strokeColor: '#FF0000',
40 bermudaTriangle.setMap(map);
43 google.maps.event.addDomListener(window, 'load', initialize);
48 <div id="map-canvas"></div>