//= 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 " + "Minnesota" + "?
"; 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(46.422713,-93.581543); //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(47.422713,-93.581543)); // GEvent.removeListener(myEvent); }); var label = "Minnesota"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (43.5008,-96.4517); pts[1] = new GLatLng (43.5017,-91.2195); pts[2] = new GLatLng (43.8226,-91.3101); pts[3] = new GLatLng (43.9651,-91.4914); pts[4] = new GLatLng (44.1113,-91.7084); pts[5] = new GLatLng (44.2806,-91.8951); pts[6] = new GLatLng (44.3710,-91.9556); pts[7] = new GLatLng (44.4357,-92.2083); pts[8] = new GLatLng (44.5513,-92.3360); pts[9] = new GLatLng (44.6501,-92.6367); pts[10] = new GLatLng (44.7877,-92.7658); pts[11] = new GLatLng (45.3135,-92.7081); pts[12] = new GLatLng (45.4505,-92.6532); pts[13] = new GLatLng (45.6083,-92.8482); pts[14] = new GLatLng (45.8307,-92.7356); pts[15] = new GLatLng (45.9760,-92.5159); pts[16] = new GLatLng (46.0151,-92.3566); pts[17] = new GLatLng (46.0789,-92.2934); pts[18] = new GLatLng (46.5957,-92.2879); pts[19] = new GLatLng (47.3072,-90.6564); pts[20] = new GLatLng (47.2885,-89.9615); pts[21] = new GLatLng (48.0120,-89.4919); pts[22] = new GLatLng (48.0193,-89.7583); pts[23] = new GLatLng (48.0285,-89.9931); pts[24] = new GLatLng (48.0827,-90.0261); pts[25] = new GLatLng (48.1074,-90.1758); pts[26] = new GLatLng (48.0955,-90.3502); pts[27] = new GLatLng (48.1074,-90.4834); pts[28] = new GLatLng (48.1175,-90.5644); pts[29] = new GLatLng (48.0928,-90.7471); pts[30] = new GLatLng (48.1588,-90.7759); pts[31] = new GLatLng (48.2402,-90.8405); pts[32] = new GLatLng (48.2174,-90.9792); pts[33] = new GLatLng (48.0726,-91.3252); pts[34] = new GLatLng (48.0505,-91.5738); pts[35] = new GLatLng (48.1166,-91.7070); pts[36] = new GLatLng (48.1963,-91.7166); pts[37] = new GLatLng (48.2494,-91.9844); pts[38] = new GLatLng (48.3188,-92.0078); pts[39] = new GLatLng (48.3544,-92.0531); pts[40] = new GLatLng (48.3599,-92.1561); pts[41] = new GLatLng (48.3307,-92.2975); pts[42] = new GLatLng (48.2475,-92.2742); pts[43] = new GLatLng (48.2228,-92.3717); pts[44] = new GLatLng (48.3854,-92.4609); pts[45] = new GLatLng (48.4474,-92.5104); pts[46] = new GLatLng (48.4611,-92.7122); pts[47] = new GLatLng (48.4984,-92.6340); pts[48] = new GLatLng (48.5403,-92.6395); pts[49] = new GLatLng (48.6393,-93.2066); pts[50] = new GLatLng (48.5884,-93.4648); pts[51] = new GLatLng (48.5439,-93.4621); pts[52] = new GLatLng (48.5166,-93.8013); pts[53] = new GLatLng (48.6284,-93.8356); pts[54] = new GLatLng (48.6547,-94.2531); pts[55] = new GLatLng (48.7046,-94.2792); pts[56] = new GLatLng (48.6982,-94.4467); pts[57] = new GLatLng (48.7861,-94.6925); pts[58] = new GLatLng (48.8756,-94.6788); pts[59] = new GLatLng (49.0955,-94.7488); pts[60] = new GLatLng (49.1889,-94.7955); pts[61] = new GLatLng (49.3189,-94.8175); pts[62] = new GLatLng (49.3815,-94.9631); pts[63] = new GLatLng (49.3538,-95.0400); pts[64] = new GLatLng (49.3681,-95.1196); pts[65] = new GLatLng (49.3877,-95.1553); pts[66] = new GLatLng (48.9991,-95.1553); pts[67] = new GLatLng (49.0000,-97.2304); pts[68] = new GLatLng (48.8647,-97.1851); pts[69] = new GLatLng (48.7806,-97.1576); pts[70] = new GLatLng (48.6683,-97.1040); pts[71] = new GLatLng (48.5539,-97.1645); pts[72] = new GLatLng (48.2832,-97.1411); pts[73] = new GLatLng (48.1578,-97.1397); pts[74] = new GLatLng (47.9633,-97.0587); pts[75] = new GLatLng (47.7098,-96.9434); pts[76] = new GLatLng (47.5821,-96.8582); pts[77] = new GLatLng (47.2345,-96.8335); pts[78] = new GLatLng (46.6702,-96.8005); pts[79] = new GLatLng (46.5135,-96.7126); pts[80] = new GLatLng (46.2786,-96.6028); pts[81] = new GLatLng (46.0189,-96.5767); pts[82] = new GLatLng (45.8173,-96.5891); pts[83] = new GLatLng (45.6169,-96.8486); pts[84] = new GLatLng (45.4601,-96.7456); pts[85] = new GLatLng (45.3676,-96.5918); pts[86] = new GLatLng (45.2961,-96.4558); pts[87] = new GLatLng (43.5008,-96.4531); 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."); } } //]]>