//= 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 " + "West Virginia" + "?
"; 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.925229,-80.112305); //new GLatLng(47.391700,-121.570800); map.setCenter(center,7); 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.325229,-80.112305)); // GEvent.removeListener(myEvent); }); var label = "West Virginia"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (39.7188,-79.4765); pts[1] = new GLatLng (39.2057,-79.4806); pts[2] = new GLatLng (39.4871,-79.0576); pts[3] = new GLatLng (39.4394,-78.9725); pts[4] = new GLatLng (39.6438,-78.7747); pts[5] = new GLatLng (39.5369,-78.6703); pts[6] = new GLatLng (39.5210,-78.5742); pts[7] = new GLatLng (39.5210,-78.4644); pts[8] = new GLatLng (39.6015,-78.4094); pts[9] = new GLatLng (39.6395,-78.3517); pts[10] = new GLatLng (39.6205,-78.2817); pts[11] = new GLatLng (39.6839,-78.2405); pts[12] = new GLatLng (39.6935,-78.1732); pts[13] = new GLatLng (39.5972,-77.8835); pts[14] = new GLatLng (39.4987,-77.7859); pts[15] = new GLatLng (39.3279,-77.7310); pts[16] = new GLatLng (39.1279,-77.8271); pts[17] = new GLatLng (39.4563,-78.3421); pts[18] = new GLatLng (39.3407,-78.3408); pts[19] = new GLatLng (39.1918,-78.4341); pts[20] = new GLatLng (39.1652,-78.4053); pts[21] = new GLatLng (39.0299,-78.5715); pts[22] = new GLatLng (39.0160,-78.5522); pts[23] = new GLatLng (38.8846,-78.7843); pts[24] = new GLatLng (38.7669,-78.8722); pts[25] = new GLatLng (38.8451,-78.9917); pts[26] = new GLatLng (38.7102,-79.0974); pts[27] = new GLatLng (38.6555,-79.1029); pts[28] = new GLatLng (38.4106,-79.3007); pts[29] = new GLatLng (38.4600,-79.4792); pts[30] = new GLatLng (38.5342,-79.5314); pts[31] = new GLatLng (38.5868,-79.6481); pts[32] = new GLatLng (38.4869,-79.6962); pts[33] = new GLatLng (38.4213,-79.6989); pts[34] = new GLatLng (38.3557,-79.7690); pts[35] = new GLatLng (38.2813,-79.7937); pts[36] = new GLatLng (38.1518,-79.9365); pts[37] = new GLatLng (38.0232,-79.9818); pts[38] = new GLatLng (37.8835,-80.1370); pts[39] = new GLatLng (37.7295,-80.2592); pts[40] = new GLatLng (37.6795,-80.2881); pts[41] = new GLatLng (37.6295,-80.2194); pts[42] = new GLatLng (37.5391,-80.3224); pts[43] = new GLatLng (37.5315,-80.2881); pts[44] = new GLatLng (37.4988,-80.3032); pts[45] = new GLatLng (37.4182,-80.4776); pts[46] = new GLatLng (37.4814,-80.5119); pts[47] = new GLatLng (37.3691,-80.7715); pts[48] = new GLatLng (37.4214,-80.8635); pts[49] = new GLatLng (37.3429,-80.8525); pts[50] = new GLatLng (37.2872,-81.0516); pts[51] = new GLatLng (37.2598,-81.2741); pts[52] = new GLatLng (37.3254,-81.3675); pts[53] = new GLatLng (37.2019,-81.5543); pts[54] = new GLatLng (37.1953,-81.6724); pts[55] = new GLatLng (37.2697,-81.7685); pts[56] = new GLatLng (37.3003,-81.8701); pts[57] = new GLatLng (37.3636,-81.9333); pts[58] = new GLatLng (37.4574,-81.9772); pts[59] = new GLatLng (37.4912,-82.0308); pts[60] = new GLatLng (37.6142,-82.1558); pts[61] = new GLatLng (37.8054,-82.3535); pts[62] = new GLatLng (38.0481,-82.5513); pts[63] = new GLatLng (38.1864,-82.6392); pts[64] = new GLatLng (38.3761,-82.5966); pts[65] = new GLatLng (38.4106,-82.4854); pts[66] = new GLatLng (38.4407,-82.3412); pts[67] = new GLatLng (38.5890,-82.2876); pts[68] = new GLatLng (38.5976,-82.1764); pts[69] = new GLatLng (38.7980,-82.2148); pts[70] = new GLatLng (39.0160,-82.0280); pts[71] = new GLatLng (38.9615,-81.9649); pts[72] = new GLatLng (38.8750,-81.8756); pts[73] = new GLatLng (38.9370,-81.7671); pts[74] = new GLatLng (39.0117,-81.7657); pts[75] = new GLatLng (39.0800,-81.7520); pts[76] = new GLatLng (39.1790,-81.7465); pts[77] = new GLatLng (39.2642,-81.5872); pts[78] = new GLatLng (39.3969,-81.4499); pts[79] = new GLatLng (39.3481,-81.3675); pts[80] = new GLatLng (39.4012,-81.2370); pts[81] = new GLatLng (39.4691,-81.1093); pts[82] = new GLatLng (39.5644,-81.0104); pts[83] = new GLatLng (39.6120,-80.9198); pts[84] = new GLatLng (39.6522,-80.8319); pts[85] = new GLatLng (39.8054,-80.8072); pts[86] = new GLatLng (39.8802,-80.7893); pts[87] = new GLatLng (39.8518,-80.7990); pts[88] = new GLatLng (40.0980,-80.7495); pts[89] = new GLatLng (40.2282,-80.7262); pts[90] = new GLatLng (40.3926,-80.6918); pts[91] = new GLatLng (40.5910,-80.6451); pts[92] = new GLatLng (40.6338,-80.5188); pts[93] = new GLatLng (39.7241,-80.5174); pts[94] = new GLatLng (39.7209,-79.4778); 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."); } } //]]>