//= 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 " + "North Dakota" + "?
"; 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(47.536200,-99.793000); //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(48.536200,-99.793000)); // GEvent.removeListener(myEvent); }); var label = "North Dakota"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (48.9955,-104.0501); pts[1] = new GLatLng (45.9445,-104.0446); pts[2] = new GLatLng (45.9340,-96.5671); pts[3] = new GLatLng (46.3242,-96.6028); pts[4] = new GLatLng (46.6636,-96.7978); pts[5] = new GLatLng (46.8602,-96.7896); pts[6] = new GLatLng (46.9503,-96.7896); pts[7] = new GLatLng (47.1300,-96.8335); pts[8] = new GLatLng (47.2345,-96.8335); pts[9] = new GLatLng (47.4132,-96.8555); pts[10] = new GLatLng (47.5469,-96.8555); pts[11] = new GLatLng (47.6506,-96.8774); pts[12] = new GLatLng (47.9918,-97.0601); pts[13] = new GLatLng (48.1267,-97.1260); pts[14] = new GLatLng (48.2859,-97.1109); pts[15] = new GLatLng (48.4301,-97.1233); pts[16] = new GLatLng (48.5530,-97.1425); pts[17] = new GLatLng (48.6765,-97.0999); pts[18] = new GLatLng (48.7326,-97.1356); pts[19] = new GLatLng (48.7951,-97.1727); pts[20] = new GLatLng (48.9081,-97.2290); pts[21] = new GLatLng (48.9982,-97.2331); pts[22] = new GLatLng (48.9946,-104.0501); 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."); } } //]]>