//= 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 " + "Missouri" + "?
"; 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(38.462300,-92.302000); //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(39.462300,-92.302000)); // GEvent.removeListener(myEvent); }); var label = "Missouri"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (40.6181,-91.7468); pts[1] = new GLatLng (40.5597,-91.6809); pts[2] = new GLatLng (40.5472,-91.6260); pts[3] = new GLatLng (40.4658,-91.5463); pts[4] = new GLatLng (40.3675,-91.4337); pts[5] = new GLatLng (40.1663,-91.5161); pts[6] = new GLatLng (39.9866,-91.4900); pts[7] = new GLatLng (39.8634,-91.4447); pts[8] = new GLatLng (39.7283,-91.3623); pts[9] = new GLatLng (39.6861,-91.3074); pts[10] = new GLatLng (39.5464,-91.1096); pts[11] = new GLatLng (39.4022,-90.9558); pts[12] = new GLatLng (39.2450,-90.7306); pts[13] = new GLatLng (38.9893,-90.6812); pts[14] = new GLatLng (38.8697,-90.5878); pts[15] = new GLatLng (38.9722,-90.4504); pts[16] = new GLatLng (38.8868,-90.1813); pts[17] = new GLatLng (38.8269,-90.1154); pts[18] = new GLatLng (38.7155,-90.1978); pts[19] = new GLatLng (38.4149,-90.3186); pts[20] = new GLatLng (38.2597,-90.3790); pts[21] = new GLatLng (37.9572,-89.9341); pts[22] = new GLatLng (37.6925,-89.5331); pts[23] = new GLatLng (37.4007,-89.4287); pts[24] = new GLatLng (37.2784,-89.5386); pts[25] = new GLatLng (37.1734,-89.4452); pts[26] = new GLatLng (37.0859,-89.3793); pts[27] = new GLatLng (36.9938,-89.2859); pts[28] = new GLatLng (37.0311,-89.1829); pts[29] = new GLatLng (36.9839,-89.1403); pts[30] = new GLatLng (36.9466,-89.1005); pts[31] = new GLatLng (36.7884,-89.1788); pts[32] = new GLatLng (36.6288,-89.2035); pts[33] = new GLatLng (36.5449,-89.2516); pts[34] = new GLatLng (36.6188,-89.3532); pts[35] = new GLatLng (36.5538,-89.4397); pts[36] = new GLatLng (36.4942,-89.5358); pts[37] = new GLatLng (36.3594,-89.5331); pts[38] = new GLatLng (36.2509,-89.5345); pts[39] = new GLatLng (36.0891,-89.6100); pts[40] = new GLatLng (36.0002,-89.7116); pts[41] = new GLatLng (35.9958,-90.3735); pts[42] = new GLatLng (36.1223,-90.2747); pts[43] = new GLatLng (36.2886,-90.0934); pts[44] = new GLatLng (36.3903,-90.0769); pts[45] = new GLatLng (36.4213,-90.1538); pts[46] = new GLatLng (36.5008,-90.1538); pts[47] = new GLatLng (36.4975,-94.6184); pts[48] = new GLatLng (38.9722,-94.6143); pts[49] = new GLatLng (39.1982,-94.6143); pts[50] = new GLatLng (39.1684,-94.7241); pts[51] = new GLatLng (39.2790,-94.8834); pts[52] = new GLatLng (39.5612,-95.1086); pts[53] = new GLatLng (39.7283,-94.8834); pts[54] = new GLatLng (39.8296,-94.8944); pts[55] = new GLatLng (39.8845,-94.9384); pts[56] = new GLatLng (39.8971,-95.0153); pts[57] = new GLatLng (39.8718,-95.0922); pts[58] = new GLatLng (40.0066,-95.3119); pts[59] = new GLatLng (40.2460,-95.4794); pts[60] = new GLatLng (40.3256,-95.6635); pts[61] = new GLatLng (40.5879,-95.7527); pts[62] = new GLatLng (40.5795,-94.3135); pts[63] = new GLatLng (40.5962,-92.5818); pts[64] = new GLatLng (40.6140,-91.7358); 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."); } } //]]>