//= 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 " + "Ohio" + "?
"; 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(40.373600,-82.775500); //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(41.373600,-82.775500)); // GEvent.removeListener(myEvent); }); var label = "Ohio"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (38.4385,-82.3425); pts[1] = new GLatLng (38.5707,-82.2917); pts[2] = new GLatLng (38.5965,-82.1722); pts[3] = new GLatLng (38.7712,-82.1997); pts[4] = new GLatLng (39.0181,-82.0294); pts[5] = new GLatLng (38.8750,-81.8729); pts[6] = new GLatLng (38.9359,-81.7644); pts[7] = new GLatLng (39.1865,-81.7397); pts[8] = new GLatLng (39.2812,-81.5680); pts[9] = new GLatLng (39.4022,-81.4444); pts[10] = new GLatLng (39.3460,-81.3661); pts[11] = new GLatLng (39.4479,-81.1244); pts[12] = new GLatLng (39.5549,-81.0352); pts[13] = new GLatLng (39.6565,-80.8374); pts[14] = new GLatLng (39.8676,-80.7948); pts[15] = new GLatLng (40.5941,-80.6520); pts[16] = new GLatLng (40.6223,-80.5188); pts[17] = new GLatLng (42.3210,-80.5229); pts[18] = new GLatLng (42.2153,-81.2521); pts[19] = new GLatLng (41.9962,-81.6806); pts[20] = new GLatLng (41.9962,-81.7094); pts[21] = new GLatLng (41.6770,-82.3961); pts[22] = new GLatLng (41.6709,-82.6845); pts[23] = new GLatLng (41.9585,-83.1157); pts[24] = new GLatLng (41.7314,-83.4219); pts[25] = new GLatLng (41.6944,-84.8021); pts[26] = new GLatLng (39.1056,-84.8172); pts[27] = new GLatLng (39.1407,-84.7444); pts[28] = new GLatLng (39.0960,-84.5068); pts[29] = new GLatLng (39.0459,-84.4052); pts[30] = new GLatLng (38.9434,-84.2857); pts[31] = new GLatLng (38.8055,-84.2432); pts[32] = new GLatLng (38.7712,-84.0866); pts[33] = new GLatLng (38.7519,-83.8916); pts[34] = new GLatLng (38.6330,-83.6636); pts[35] = new GLatLng (38.6962,-83.5263); pts[36] = new GLatLng (38.5976,-83.2736); pts[37] = new GLatLng (38.6169,-83.1445); pts[38] = new GLatLng (38.7027,-83.0127); pts[39] = new GLatLng (38.7327,-82.8973); pts[40] = new GLatLng (38.5782,-82.8355); pts[41] = new GLatLng (38.3761,-82.5952); 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."); } } //]]>