";
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(35.728677,-97.426758); //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(36.728677,-97.426758)); // GEvent.removeListener(myEvent);
});
var label = "Oklahoma";
var color = "#88ff00";
var pts = [];
pts[0] = new GLatLng (37.0015,-103.0051);
pts[1] = new GLatLng (36.5030,-103.0037);
pts[2] = new GLatLng (36.4986,-100.0003);
pts[3] = new GLatLng (34.5620,-99.9934);
pts[4] = new GLatLng (34.3763,-99.6172);
pts[5] = new GLatLng (34.4137,-99.5787);
pts[6] = new GLatLng (34.3763,-99.4290);
pts[7] = new GLatLng (34.4534,-99.3823);
pts[8] = new GLatLng (34.3616,-99.2505);
pts[9] = new GLatLng (34.2129,-99.1818);
pts[10] = new GLatLng (34.1982,-98.9648);
pts[11] = new GLatLng (34.1232,-98.7424);
pts[12] = new GLatLng (34.1254,-98.5570);
pts[13] = new GLatLng (34.0618,-98.4746);
pts[14] = new GLatLng (34.1414,-98.3743);
pts[15] = new GLatLng (34.1118,-98.1793);
pts[16] = new GLatLng (34.0060,-98.0818);
pts[17] = new GLatLng (33.8966,-97.9843);
pts[18] = new GLatLng (33.8487,-97.8662);
pts[19] = new GLatLng (33.9798,-97.6932);
pts[20] = new GLatLng (33.8841,-97.4529);
pts[21] = new GLatLng (33.8282,-97.4611);
pts[22] = new GLatLng (33.8237,-97.3622);
pts[23] = new GLatLng (33.9001,-97.2166);
pts[24] = new GLatLng (33.7426,-97.1645);
pts[25] = new GLatLng (33.7392,-97.0930);
pts[26] = new GLatLng (33.9354,-96.9173);
pts[27] = new GLatLng (33.8704,-96.8527);
pts[28] = new GLatLng (33.8271,-96.7484);
pts[29] = new GLatLng (33.8202,-96.5602);
pts[30] = new GLatLng (33.7769,-96.5053);
pts[31] = new GLatLng (33.6912,-96.3474);
pts[32] = new GLatLng (33.8522,-96.0205);
pts[33] = new GLatLng (33.8396,-95.8379);
pts[34] = new GLatLng (33.8887,-95.7349);
pts[35] = new GLatLng (33.8841,-95.5426);
pts[36] = new GLatLng (33.8738,-95.2831);
pts[37] = new GLatLng (33.9570,-95.2171);
pts[38] = new GLatLng (33.8670,-95.0496);
pts[39] = new GLatLng (33.7677,-94.8862);
pts[40] = new GLatLng (33.6695,-94.6692);
pts[41] = new GLatLng (33.6386,-94.4852);
pts[42] = new GLatLng (35.3499,-94.4357);
pts[43] = new GLatLng (36.3715,-94.5978);
pts[44] = new GLatLng (36.4942,-94.6198);
pts[45] = new GLatLng (36.9982,-94.6211);
pts[46] = new GLatLng (37.0004,-103.0064);
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.");
}
}
//]]>