//= 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 " + "Iowa" + "?
"; 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(42.004600,-93.214000); //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(43.004600,-93.214000)); // GEvent.removeListener(myEvent); }); var label = "Iowa"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (40.5848,-95.7623); pts[1] = new GLatLng (40.5785,-93.5445); pts[2] = new GLatLng (40.6129,-91.7372); pts[3] = new GLatLng (40.5545,-91.6768); pts[4] = new GLatLng (40.5451,-91.6246); pts[5] = new GLatLng (40.3622,-91.4365); pts[6] = new GLatLng (40.4637,-91.3623); pts[7] = new GLatLng (40.5482,-91.4021); pts[8] = new GLatLng (40.6931,-91.1124); pts[9] = new GLatLng (40.8107,-91.1028); pts[10] = new GLatLng (40.9218,-90.9668); pts[11] = new GLatLng (41.1642,-91.0121); pts[12] = new GLatLng (41.2406,-91.1082); pts[13] = new GLatLng (41.4067,-91.0451); pts[14] = new GLatLng (41.4510,-90.7086); pts[15] = new GLatLng (41.5178,-90.4793); pts[16] = new GLatLng (41.5908,-90.3419); pts[17] = new GLatLng (41.7457,-90.2788); pts[18] = new GLatLng (41.8164,-90.2074); pts[19] = new GLatLng (41.9023,-90.1538); pts[20] = new GLatLng (42.0962,-90.1744); pts[21] = new GLatLng (42.1441,-90.2692); pts[22] = new GLatLng (42.2905,-90.4298); pts[23] = new GLatLng (42.4093,-90.5370); pts[24] = new GLatLng (42.5217,-90.6400); pts[25] = new GLatLng (42.6360,-90.7127); pts[26] = new GLatLng (42.6956,-90.7883); pts[27] = new GLatLng (42.7712,-91.0533); pts[28] = new GLatLng (42.8448,-91.0904); pts[29] = new GLatLng (42.9082,-91.1398); pts[30] = new GLatLng (43.0609,-91.1549); pts[31] = new GLatLng (43.1391,-91.1522); pts[32] = new GLatLng (43.2882,-91.0547); pts[33] = new GLatLng (43.3322,-91.2057); pts[34] = new GLatLng (43.4140,-91.2236); pts[35] = new GLatLng (43.5008,-91.2305); pts[36] = new GLatLng (43.4998,-96.5973); pts[37] = new GLatLng (43.4818,-96.6110); pts[38] = new GLatLng (43.3871,-96.5245); pts[39] = new GLatLng (43.2232,-96.5533); pts[40] = new GLatLng (43.1301,-96.4421); pts[41] = new GLatLng (42.9243,-96.5479); pts[42] = new GLatLng (42.7188,-96.6357); pts[43] = new GLatLng (42.6158,-96.5561); pts[44] = new GLatLng (42.5055,-96.4847); pts[45] = new GLatLng (42.4599,-96.3995); pts[46] = new GLatLng (42.3667,-96.4050); pts[47] = new GLatLng (42.2722,-96.3446); pts[48] = new GLatLng (42.2051,-96.3625); pts[49] = new GLatLng (41.9983,-96.2416); pts[50] = new GLatLng (41.9513,-96.1372); pts[51] = new GLatLng (41.7662,-96.0741); pts[52] = new GLatLng (41.6267,-96.0988); pts[53] = new GLatLng (41.4561,-95.9477); pts[54] = new GLatLng (41.2819,-95.8804); pts[55] = new GLatLng (41.0338,-95.8653); pts[56] = new GLatLng (40.8346,-95.8365); pts[57] = new GLatLng (40.6775,-95.8461); pts[58] = new GLatLng (40.5837,-95.7610); 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."); } } //]]>