//= 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 " + "Nebraska" + "?
"; 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(41.013066,-99.316406); //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(42.013066,-99.316406)); // GEvent.removeListener(myEvent); }); var label = "Nebraska"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (42.9986,-104.0543); pts[1] = new GLatLng (41.0027,-104.0543); pts[2] = new GLatLng (41.0006,-102.0506); pts[3] = new GLatLng (40.0034,-102.0493); pts[4] = new GLatLng (39.9992,-95.3091); pts[5] = new GLatLng (40.2397,-95.4808); pts[6] = new GLatLng (40.3130,-95.6470); pts[7] = new GLatLng (40.4302,-95.6689); pts[8] = new GLatLng (40.5900,-95.7500); pts[9] = new GLatLng (40.6827,-95.8543); pts[10] = new GLatLng (40.8138,-95.8447); pts[11] = new GLatLng (40.9654,-95.8324); pts[12] = new GLatLng (41.0794,-95.8667); pts[13] = new GLatLng (41.2923,-95.8722); pts[14] = new GLatLng (41.4458,-95.9354); pts[15] = new GLatLng (41.5261,-95.9999); pts[16] = new GLatLng (41.6380,-96.0988); pts[17] = new GLatLng (41.7703,-96.0686); pts[18] = new GLatLng (41.8368,-96.1084); pts[19] = new GLatLng (41.9677,-96.1372); pts[20] = new GLatLng (42.0330,-96.2402); pts[21] = new GLatLng (42.1155,-96.2746); pts[22] = new GLatLng (42.2021,-96.3583); pts[23] = new GLatLng (42.2448,-96.3281); pts[24] = new GLatLng (42.3890,-96.4188); pts[25] = new GLatLng (42.4731,-96.4037); pts[26] = new GLatLng (42.5369,-96.6357); pts[27] = new GLatLng (42.6057,-96.7099); pts[28] = new GLatLng (42.6532,-96.6893); pts[29] = new GLatLng (42.6602,-96.7621); pts[30] = new GLatLng (42.7147,-96.8390); pts[31] = new GLatLng (42.7571,-96.9763); pts[32] = new GLatLng (42.8085,-97.2029); pts[33] = new GLatLng (42.8458,-97.2290); pts[34] = new GLatLng (42.8629,-97.3979); pts[35] = new GLatLng (42.8427,-97.5133); pts[36] = new GLatLng (42.8488,-97.6149); pts[37] = new GLatLng (42.8659,-97.8456); pts[38] = new GLatLng (42.7470,-97.9980); pts[39] = new GLatLng (42.8337,-98.1450); pts[40] = new GLatLng (42.9293,-98.4485); pts[41] = new GLatLng (42.9966,-98.5020); pts[42] = new GLatLng (43.0006,-104.0543); 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."); } } //]]>