//= 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 " + "Delaware" + "?
"; 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(39.113014,-75.382690); //new GLatLng(47.391700,-121.570800); map.setCenter(center,8); 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(39.313014,-75.382690)); // GEvent.removeListener(myEvent); }); var label = "Delaware"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (39.7188,-75.7919); pts[1] = new GLatLng (39.5210,-75.7837); pts[2] = new GLatLng (38.9081,-75.7288); pts[3] = new GLatLng (38.5911,-75.7068); pts[4] = new GLatLng (38.4600,-75.6944); pts[5] = new GLatLng (38.4482,-74.8608); pts[6] = new GLatLng (38.8654,-74.8526); pts[7] = new GLatLng (38.8451,-75.0504); pts[8] = new GLatLng (39.0565,-75.1678); pts[9] = new GLatLng (39.2525,-75.3236); pts[10] = new GLatLng (39.3662,-75.4610); pts[11] = new GLatLng (39.4542,-75.5592); pts[12] = new GLatLng (39.4908,-75.5578); pts[13] = new GLatLng (39.5713,-75.5118); pts[14] = new GLatLng (39.6284,-75.5557); pts[15] = new GLatLng (39.8106,-75.3937); pts[16] = new GLatLng (39.8249,-75.4692); pts[17] = new GLatLng (39.8296,-75.6477); pts[18] = new GLatLng (39.7199,-75.7906); 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."); } } //]]>