//= 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 " + "Florida" + "?
"; 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(27.839076,-81.958008); //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(28.839076,-81.958008)); // GEvent.removeListener(myEvent); }); var label = "Florida"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (30.9988,-87.6050); pts[1] = new GLatLng (30.9964,-86.5613); pts[2] = new GLatLng (31.0035,-85.5313); pts[3] = new GLatLng (31.0012,-85.1193); pts[4] = new GLatLng (31.0023,-85.0012); pts[5] = new GLatLng (30.9364,-84.9847); pts[6] = new GLatLng (30.8845,-84.9367); pts[7] = new GLatLng (30.8409,-84.9271); pts[8] = new GLatLng (30.7902,-84.9257); pts[9] = new GLatLng (30.7489,-84.9147); pts[10] = new GLatLng (30.6993,-84.8611); pts[11] = new GLatLng (30.6911,-84.4272); pts[12] = new GLatLng (30.6509,-83.5991); pts[13] = new GLatLng (30.5895,-82.5595); pts[14] = new GLatLng (30.5682,-82.2134); pts[15] = new GLatLng (30.5315,-82.2134); pts[16] = new GLatLng (30.3883,-82.1997); pts[17] = new GLatLng (30.3598,-82.1544); pts[18] = new GLatLng (30.3598,-82.0638); pts[19] = new GLatLng (30.4877,-82.0226); pts[20] = new GLatLng (30.6308,-82.0473); pts[21] = new GLatLng (30.6757,-82.0514); pts[22] = new GLatLng (30.7111,-82.0377); pts[23] = new GLatLng (30.7371,-82.0514); pts[24] = new GLatLng (30.7678,-82.0102); pts[25] = new GLatLng (30.7914,-82.0322); pts[26] = new GLatLng (30.7997,-81.9717); pts[27] = new GLatLng (30.8244,-81.9608); pts[28] = new GLatLng (30.8056,-81.8893); pts[29] = new GLatLng (30.7914,-81.8372); pts[30] = new GLatLng (30.7796,-81.7960); pts[31] = new GLatLng (30.7536,-81.6696); pts[32] = new GLatLng (30.7289,-81.6051); pts[33] = new GLatLng (30.7324,-81.5666); pts[34] = new GLatLng (30.7229,-81.5295); pts[35] = new GLatLng (30.7253,-81.4856); pts[36] = new GLatLng (30.7111,-81.4609); pts[37] = new GLatLng (30.7088,-81.4169); pts[38] = new GLatLng (30.7064,-81.2274); pts[39] = new GLatLng (30.4345,-81.2357); pts[40] = new GLatLng (30.3160,-81.1725); pts[41] = new GLatLng (29.7763,-81.0379); pts[42] = new GLatLng (28.8603,-80.5861); pts[43] = new GLatLng (28.4771,-80.3650); pts[44] = new GLatLng (28.1882,-80.3815); pts[45] = new GLatLng (27.1789,-79.9255); pts[46] = new GLatLng (26.8425,-79.8198); pts[47] = new GLatLng (26.1394,-79.9118); pts[48] = new GLatLng (25.5115,-79.9997); pts[49] = new GLatLng (24.8802,-80.3815); pts[50] = new GLatLng (24.5384,-80.8704); pts[51] = new GLatLng (24.3959,-81.9250); pts[52] = new GLatLng (24.4496,-82.2066); pts[53] = new GLatLng (24.5484,-82.3137); pts[54] = new GLatLng (24.6982,-82.1997); pts[55] = new GLatLng (25.2112,-81.3977); pts[56] = new GLatLng (25.6019,-81.4622); pts[57] = new GLatLng (25.9235,-81.9456); pts[58] = new GLatLng (26.3439,-82.2876); pts[59] = new GLatLng (26.9098,-82.5307); pts[60] = new GLatLng (27.3315,-82.8342); pts[61] = new GLatLng (27.7565,-83.0182); pts[62] = new GLatLng (28.0574,-83.0017); pts[63] = new GLatLng (28.6098,-82.8548); pts[64] = new GLatLng (28.9697,-83.0264); pts[65] = new GLatLng (29.0478,-83.2050); pts[66] = new GLatLng (29.4157,-83.5318); pts[67] = new GLatLng (29.9133,-83.9767); pts[68] = new GLatLng (29.8930,-84.1072); pts[69] = new GLatLng (29.6940,-84.4409); pts[70] = new GLatLng (29.4551,-85.0465); pts[71] = new GLatLng (29.4946,-85.3610); pts[72] = new GLatLng (29.7262,-85.5807); pts[73] = new GLatLng (30.1594,-86.1946); pts[74] = new GLatLng (30.2175,-86.8510); pts[75] = new GLatLng (30.1499,-87.5171); pts[76] = new GLatLng (30.3006,-87.4429); pts[77] = new GLatLng (30.4256,-87.3750); pts[78] = new GLatLng (30.4830,-87.3743); pts[79] = new GLatLng (30.5658,-87.3907); pts[80] = new GLatLng (30.6344,-87.4004); pts[81] = new GLatLng (30.6763,-87.4141); pts[82] = new GLatLng (30.7702,-87.5253); pts[83] = new GLatLng (30.8527,-87.6256); pts[84] = new GLatLng (30.9470,-87.5912); pts[85] = new GLatLng (30.9682,-87.5912); pts[86] = new GLatLng (30.9964,-87.6050); 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."); } } //]]>