function loadpolygon() { var doc = document.forms['form1']; var ticketPoly = [ new google.maps.LatLng(Coordinates[0],Coordinates[1]), new google.maps.LatLng(Coordinates[2], Coordinates[3]), new google.maps.LatLng(Coordinates[4], Coordinates[5]), new google.maps.LatLng(Coordinates[6], Coordinates[7]), new google.maps.LatLng(Coordinates[8], Coordinates[9]), new google.maps.LatLng(Coordinates[10], Coordinates[11])]; var ticketPolyPath = new google.maps.Polygon({ paths: ticketPoly, strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2, fillColor: "#FF0000", fillOpacity: 0.35 }); var centerMap = new google.maps.LatLng(Centroid[0], Centroid[1]); var polygonOptions = { zoom: 17, mapTypeId: google.maps.MapTypeId.HYBRID }; mapPoly = new google.maps.Map(document.getElementById("map_poly"), polygonOptions); mapPoly.setCenter(centerMap); ticketPolyPath.setMap(mapPoly); google.maps.event.addListener(ticketPolyPath, 'click', showTicketInfo); infowindow = new google.maps.InfoWindow(); }
It isn't. But that's ASP (and ASP.NET) for you.