//= y)) || ((this.getVertex(j).lat() < y) && (this.getVertex(i).lat() >= y)) ) { if ( this.getVertex(i).lng() + (y - this.getVertex(i).lat()) / (this.getVertex(j).lat()-this.getVertex(i).lat()) * (this.getVertex(j).lng() - this.getVertex(i).lng())"; popHTML += "
"; popHTML += ""; popHTML += "
Want to Save up to $600
"; popHTML += "
on Auto Insurance
"; popHTML += "
in " + "Indiana" + "?
"; popHTML += "
Enter your Zip Code:
"; popHTML += ""; popHTML += "
"; var map = new GMap2(document.getElementById("map")); var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(0,0)); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl(),topRight); map.addControl(new GOverviewMapControl(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(5, 5))); var center = new GLatLng(39.864700,-86.260400); //new GLatLng(47.391700,-121.570800); map.setCenter(center,6); myIcon = new GIcon(); // marker image myIcon.image ="http://www.autoquotenow.com/images/marker.png"; myIcon.iconSize = new GSize(45, 17); myIcon.iconAnchor = new GPoint(45, 17); myIcon.infoWindowAnchor = new GPoint(43,17); var marker = new GMarker(center, myIcon) map.addOverlay(marker); var myEvent = GEvent.addListener(marker,"mouseover", function() { marker.openInfoWindowHtml(popHTML); map.panTo(new GLatLng(40.864700,-86.260400)); // GEvent.removeListener(myEvent); }); var label = "Indiana"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (41.7611,-87.5253); pts[1] = new GLatLng (41.7611,-84.8090); pts[2] = new GLatLng (39.0981,-84.8199); pts[3] = new GLatLng (39.0533,-84.8927); pts[4] = new GLatLng (38.8996,-84.8625); pts[5] = new GLatLng (38.8312,-84.8268); pts[6] = new GLatLng (38.7841,-84.8145); pts[7] = new GLatLng (38.7905,-84.8941); pts[8] = new GLatLng (38.7809,-84.9861); pts[9] = new GLatLng (38.6877,-85.1797); pts[10] = new GLatLng (38.7198,-85.4420); pts[11] = new GLatLng (38.5653,-85.4091); pts[12] = new GLatLng (38.4461,-85.5986); pts[13] = new GLatLng (38.2695,-85.7510); pts[14] = new GLatLng (38.2824,-85.8266); pts[15] = new GLatLng (38.2414,-85.8376); pts[16] = new GLatLng (38.0967,-85.9035); pts[17] = new GLatLng (38.0232,-85.9200); pts[18] = new GLatLng (37.9594,-86.0477); pts[19] = new GLatLng (38.0102,-86.0944); pts[20] = new GLatLng (38.0578,-86.2729); pts[21] = new GLatLng (38.0935,-86.2811); pts[22] = new GLatLng (38.1346,-86.2729); pts[23] = new GLatLng (38.1842,-86.3704); pts[24] = new GLatLng (38.0416,-86.5187); pts[25] = new GLatLng (37.9193,-86.5874); pts[26] = new GLatLng (37.8402,-86.6409); pts[27] = new GLatLng (37.9085,-86.6478); pts[28] = new GLatLng (37.9085,-86.6876); pts[29] = new GLatLng (37.9821,-86.8236); pts[30] = new GLatLng (37.9464,-86.9019); pts[31] = new GLatLng (37.9009,-87.0392); pts[32] = new GLatLng (37.7924,-87.1394); pts[33] = new GLatLng (37.9464,-87.4429); pts[34] = new GLatLng (37.9756,-87.5885); pts[35] = new GLatLng (37.9225,-87.6283); pts[36] = new GLatLng (37.8694,-87.6915); pts[37] = new GLatLng (37.9236,-87.8879); pts[38] = new GLatLng (37.7718,-87.9620); pts[39] = new GLatLng (37.7870,-88.0321); pts[40] = new GLatLng (37.8092,-88.0376); pts[41] = new GLatLng (37.8011,-88.0643); pts[42] = new GLatLng (37.8206,-88.0925); pts[43] = new GLatLng (37.8223,-88.0451); pts[44] = new GLatLng (37.8483,-88.0575); pts[45] = new GLatLng (37.9041,-88.0980); pts[46] = new GLatLng (37.9307,-88.0705); pts[47] = new GLatLng (37.9561,-88.0369); pts[48] = new GLatLng (37.9669,-88.0122); pts[49] = new GLatLng (38.0102,-88.0259); pts[50] = new GLatLng (38.0384,-88.0417); pts[51] = new GLatLng (38.0530,-88.0005); pts[52] = new GLatLng (38.0762,-87.9607); pts[53] = new GLatLng (38.1000,-88.0163); pts[54] = new GLatLng (38.1313,-87.9710); pts[55] = new GLatLng (38.1497,-87.9284); pts[56] = new GLatLng (38.1734,-87.9387); pts[57] = new GLatLng (38.1939,-87.9730); pts[58] = new GLatLng (38.2349,-87.9813); pts[59] = new GLatLng (38.2608,-87.9421); pts[60] = new GLatLng (38.2759,-87.8604); pts[61] = new GLatLng (38.3029,-87.8302); pts[62] = new GLatLng (38.3233,-87.8350); pts[63] = new GLatLng (38.3567,-87.8137); pts[64] = new GLatLng (38.3767,-87.7739); pts[65] = new GLatLng (38.4116,-87.7444); pts[66] = new GLatLng (38.5149,-87.6448); pts[67] = new GLatLng (38.5460,-87.6723); pts[68] = new GLatLng (38.5949,-87.6105); pts[69] = new GLatLng (38.5986,-87.6242); pts[70] = new GLatLng (38.6828,-87.5343); pts[71] = new GLatLng (38.7284,-87.5075); pts[72] = new GLatLng (38.7696,-87.4972); pts[73] = new GLatLng (38.8247,-87.5322); pts[74] = new GLatLng (38.9039,-87.5171); pts[75] = new GLatLng (38.9413,-87.5253); pts[76] = new GLatLng (38.9712,-87.5281); pts[77] = new GLatLng (38.9872,-87.5761); pts[78] = new GLatLng (39.0906,-87.6228); pts[79] = new GLatLng (39.1066,-87.6517); pts[80] = new GLatLng (39.1365,-87.6599); pts[81] = new GLatLng (39.1695,-87.6366); pts[82] = new GLatLng (39.2493,-87.5899); pts[83] = new GLatLng (39.3492,-87.5336); pts[84] = new GLatLng (41.7600,-87.5253); var poly = new GPolygon(pts,"#333399",3,1,color,.1); polys.push(poly); labels.push(label); map.addOverlay(poly); } else { alert("Sorry, Google Maps is not compatible with this browser."); } } //]]>