//= 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 " + "North Carolina" + "?
"; 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(35.641100,-79.843100); //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(36.641100,-79.843100)); // GEvent.removeListener(myEvent); }); var label = "North Carolina"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (33.7963,-78.4850); pts[1] = new GLatLng (34.8037,-79.6742); pts[2] = new GLatLng (34.8206,-80.8003); pts[3] = new GLatLng (34.9377,-80.7880); pts[4] = new GLatLng (35.1019,-80.9377); pts[5] = new GLatLng (35.0356,-81.0379); pts[6] = new GLatLng (35.1457,-81.0324); pts[7] = new GLatLng (35.1660,-81.3867); pts[8] = new GLatLng (35.1985,-82.2739); pts[9] = new GLatLng (35.2041,-82.3933); pts[10] = new GLatLng (35.0637,-82.7765); pts[11] = new GLatLng (35.0817,-82.7861); pts[12] = new GLatLng (34.9996,-83.1075); pts[13] = new GLatLng (34.9918,-83.6183); pts[14] = new GLatLng (34.9918,-84.3201); pts[15] = new GLatLng (35.2131,-84.2885); pts[16] = new GLatLng (35.2680,-84.2226); pts[17] = new GLatLng (35.2310,-84.1113); pts[18] = new GLatLng (35.2815,-84.0454); pts[19] = new GLatLng (35.4058,-84.0248); pts[20] = new GLatLng (35.4719,-83.9424); pts[21] = new GLatLng (35.5166,-83.8559); pts[22] = new GLatLng (35.5512,-83.6938); pts[23] = new GLatLng (35.5680,-83.5181); pts[24] = new GLatLng (35.6327,-83.3849); pts[25] = new GLatLng (35.7142,-83.2475); pts[26] = new GLatLng (35.7799,-82.9962); pts[27] = new GLatLng (35.8445,-82.9276); pts[28] = new GLatLng (35.9224,-82.8191); pts[29] = new GLatLng (35.9958,-82.7710); pts[30] = new GLatLng (36.0613,-82.6419); pts[31] = new GLatLng (35.9702,-82.6103); pts[32] = new GLatLng (35.9547,-82.5677); pts[33] = new GLatLng (36.0236,-82.4730); pts[34] = new GLatLng (36.0669,-82.4194); pts[35] = new GLatLng (36.1168,-82.3535); pts[36] = new GLatLng (36.1345,-82.2862); pts[37] = new GLatLng (36.1467,-82.1461); pts[38] = new GLatLng (36.1035,-82.1228); pts[39] = new GLatLng (36.1268,-82.0267); pts[40] = new GLatLng (36.2797,-81.9360); pts[41] = new GLatLng (36.3527,-81.7987); pts[42] = new GLatLng (36.3361,-81.7081); pts[43] = new GLatLng (36.5880,-81.6724); pts[44] = new GLatLng (36.5659,-80.7234); pts[45] = new GLatLng (36.5438,-80.2977); pts[46] = new GLatLng (36.5449,-79.6729); pts[47] = new GLatLng (36.5449,-77.2559); pts[48] = new GLatLng (36.5505,-75.7562); pts[49] = new GLatLng (36.3129,-75.7068); pts[50] = new GLatLng (35.7131,-75.4129); pts[51] = new GLatLng (35.2041,-75.4720); pts[52] = new GLatLng (34.9794,-76.0748); pts[53] = new GLatLng (34.5258,-76.4951); pts[54] = new GLatLng (34.5880,-76.8109); pts[55] = new GLatLng (34.5314,-77.1378); pts[56] = new GLatLng (34.3910,-77.4481); pts[57] = new GLatLng (34.0481,-77.7983); pts[58] = new GLatLng (33.7666,-77.9260); pts[59] = new GLatLng (33.7963,-78.4863); 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."); } } //]]>