//= 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 " + "Illinois" + "?
"; 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(40.336300,-89.002200); //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(41.336300,-89.002200)); // GEvent.removeListener(myEvent); }); var label = "Illinois"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (42.5116,-90.6290); pts[1] = new GLatLng (42.4924,-87.0213); pts[2] = new GLatLng (41.7641,-87.2067); pts[3] = new GLatLng (41.7611,-87.5226); pts[4] = new GLatLng (39.6417,-87.5336); pts[5] = new GLatLng (39.3566,-87.5308); pts[6] = new GLatLng (39.1386,-87.6517); pts[7] = new GLatLng (38.9445,-87.5157); pts[8] = new GLatLng (38.7294,-87.5047); pts[9] = new GLatLng (38.6115,-87.6146); pts[10] = new GLatLng (38.4944,-87.6544); pts[11] = new GLatLng (38.3740,-87.7780); pts[12] = new GLatLng (38.2856,-87.8371); pts[13] = new GLatLng (38.2414,-87.9758); pts[14] = new GLatLng (38.1454,-87.9291); pts[15] = new GLatLng (37.9788,-88.0225); pts[16] = new GLatLng (37.8900,-88.0458); pts[17] = new GLatLng (37.7881,-88.0321); pts[18] = new GLatLng (37.6349,-88.1529); pts[19] = new GLatLng (37.5097,-88.0609); pts[20] = new GLatLng (37.4149,-88.4152); pts[21] = new GLatLng (37.2828,-88.5086); pts[22] = new GLatLng (37.1428,-88.4221); pts[23] = new GLatLng (37.0585,-88.4990); pts[24] = new GLatLng (37.1428,-88.7256); pts[25] = new GLatLng (37.2128,-88.9453); pts[26] = new GLatLng (37.1559,-89.0689); pts[27] = new GLatLng (37.0376,-89.1650); pts[28] = new GLatLng (36.9894,-89.2873); pts[29] = new GLatLng (37.1505,-89.4356); pts[30] = new GLatLng (37.2762,-89.5345); pts[31] = new GLatLng (37.3996,-89.4315); pts[32] = new GLatLng (37.6936,-89.5358); pts[33] = new GLatLng (37.9767,-89.9670); pts[34] = new GLatLng (38.2587,-90.3790); pts[35] = new GLatLng (38.6169,-90.2376); pts[36] = new GLatLng (38.7573,-90.1744); pts[37] = new GLatLng (38.8247,-90.1167); pts[38] = new GLatLng (38.8846,-90.1799); pts[39] = new GLatLng (38.9680,-90.4504); pts[40] = new GLatLng (38.8654,-90.5905); pts[41] = new GLatLng (39.0405,-90.7086); pts[42] = new GLatLng (39.2301,-90.7306); pts[43] = new GLatLng (39.3173,-90.8350); pts[44] = new GLatLng (39.3853,-90.9338); pts[45] = new GLatLng (39.5559,-91.1398); pts[46] = new GLatLng (39.7262,-91.3554); pts[47] = new GLatLng (39.8570,-91.4406); pts[48] = new GLatLng (39.9940,-91.4941); pts[49] = new GLatLng (40.1694,-91.5120); pts[50] = new GLatLng (40.3497,-91.4667); pts[51] = new GLatLng (40.4166,-91.3939); pts[52] = new GLatLng (40.5566,-91.4021); pts[53] = new GLatLng (40.6265,-91.2524); pts[54] = new GLatLng (40.6963,-91.1151); pts[55] = new GLatLng (40.8232,-91.0890); pts[56] = new GLatLng (40.9312,-90.9792); pts[57] = new GLatLng (41.1642,-91.0162); pts[58] = new GLatLng (41.2355,-91.1055); pts[59] = new GLatLng (41.4170,-91.0368); pts[60] = new GLatLng (41.4458,-90.8487); pts[61] = new GLatLng (41.4417,-90.7251); pts[62] = new GLatLng (41.5816,-90.3516); pts[63] = new GLatLng (41.7713,-90.2637); pts[64] = new GLatLng (41.9023,-90.1538); pts[65] = new GLatLng (42.0819,-90.1758); pts[66] = new GLatLng (42.2021,-90.3598); pts[67] = new GLatLng (42.2936,-90.4395); pts[68] = new GLatLng (42.4032,-90.5356); pts[69] = new GLatLng (42.4843,-90.6564); 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."); } } //]]>