//= 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 " + "Maine" + "?
"; 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(44.607400,-69.397700); //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(45.607400,-69.397700)); // GEvent.removeListener(myEvent); }); var label = "Maine"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (45.3425,-71.0129); pts[1] = new GLatLng (45.3328,-70.9525); pts[2] = new GLatLng (45.2294,-70.8618); pts[3] = new GLatLng (45.3917,-70.8247); pts[4] = new GLatLng (45.4274,-70.7808); pts[5] = new GLatLng (45.3830,-70.6380); pts[6] = new GLatLng (45.5092,-70.7190); pts[7] = new GLatLng (45.6544,-70.5721); pts[8] = new GLatLng (45.7292,-70.3894); pts[9] = new GLatLng (45.7924,-70.4169); pts[10] = new GLatLng (45.9368,-70.2493); pts[11] = new GLatLng (45.9597,-70.3098); pts[12] = new GLatLng (46.0923,-70.2946); pts[13] = new GLatLng (46.0989,-70.2589); pts[14] = new GLatLng (46.1342,-70.2466); pts[15] = new GLatLng (46.1903,-70.2905); pts[16] = new GLatLng (46.2710,-70.2466); pts[17] = new GLatLng (46.3270,-70.2040); pts[18] = new GLatLng (46.4151,-70.0571); pts[19] = new GLatLng (46.6956,-69.9994); pts[20] = new GLatLng (47.4550,-69.2303); pts[21] = new GLatLng (47.4132,-69.0381); pts[22] = new GLatLng (47.2578,-69.0504); pts[23] = new GLatLng (47.1748,-68.8843); pts[24] = new GLatLng (47.2643,-68.6206); pts[25] = new GLatLng (47.3546,-68.3350); pts[26] = new GLatLng (47.3165,-68.1564); pts[27] = new GLatLng (47.1038,-67.8804); pts[28] = new GLatLng (47.0664,-67.7898); pts[29] = new GLatLng (45.9359,-67.7802); pts[30] = new GLatLng (45.9177,-67.7527); pts[31] = new GLatLng (45.7599,-67.8090); pts[32] = new GLatLng (45.6208,-67.6524); pts[33] = new GLatLng (45.5987,-67.4533); pts[34] = new GLatLng (45.5044,-67.4176); pts[35] = new GLatLng (45.4823,-67.5014); pts[36] = new GLatLng (45.3714,-67.4231); pts[37] = new GLatLng (45.2768,-67.4863); pts[38] = new GLatLng (45.1297,-67.3434); pts[39] = new GLatLng (45.1830,-67.2487); pts[40] = new GLatLng (45.1230,-67.1223); pts[41] = new GLatLng (44.8315,-66.9672); pts[42] = new GLatLng (44.7409,-66.8628); pts[43] = new GLatLng (44.4945,-67.3105); pts[44] = new GLatLng (44.3268,-67.9051); pts[45] = new GLatLng (43.8702,-68.6673); pts[46] = new GLatLng (43.7274,-68.8431); pts[47] = new GLatLng (43.6639,-69.7137); pts[48] = new GLatLng (43.5625,-70.0818); pts[49] = new GLatLng (42.9182,-70.5569); pts[50] = new GLatLng (43.0649,-70.7108); pts[51] = new GLatLng (43.1391,-70.8302); pts[52] = new GLatLng (43.2292,-70.8179); pts[53] = new GLatLng (43.3631,-70.9799); pts[54] = new GLatLng (43.5675,-70.9717); pts[55] = new GLatLng (45.3029,-71.0829); 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."); } } //]]>