";
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(21.109800,-157.531100); //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(22.109800,-157.531100)); // GEvent.removeListener(myEvent);
});
var label = "Hawaii";
var color = "#88ff00";
var pts = [];
pts[0] = new GLatLng (19.5158,-154.6284);
pts[1] = new GLatLng (19.8894,-154.8235);
pts[2] = new GLatLng (20.1849,-155.0391);
pts[3] = new GLatLng (20.3910,-155.5952);
pts[4] = new GLatLng (20.8614,-155.7930);
pts[5] = new GLatLng (21.0948,-156.1858);
pts[6] = new GLatLng (21.3597,-156.6595);
pts[7] = new GLatLng (21.4748,-157.1182);
pts[8] = new GLatLng (21.5515,-157.5247);
pts[9] = new GLatLng (21.8832,-157.8186);
pts[10] = new GLatLng (22.3386,-159.2180);
pts[11] = new GLatLng (22.3374,-159.7508);
pts[12] = new GLatLng (22.1493,-160.1422);
pts[13] = new GLatLng (21.8857,-160.3922);
pts[14] = new GLatLng (21.6025,-160.3249);
pts[15] = new GLatLng (21.7276,-159.9939);
pts[16] = new GLatLng (21.6932,-159.4295);
pts[17] = new GLatLng (21.1037,-158.1784);
pts[18] = new GLatLng (20.8152,-157.4629);
pts[19] = new GLatLng (20.6803,-157.2171);
pts[20] = new GLatLng (20.3408,-156.8285);
pts[21] = new GLatLng (20.2931,-156.5456);
pts[22] = new GLatLng (20.1643,-156.1418);
pts[23] = new GLatLng (19.9308,-156.2393);
pts[24] = new GLatLng (19.2826,-156.1432);
pts[25] = new GLatLng (18.9881,-156.1212);
pts[26] = new GLatLng (18.7100,-155.7120);
pts[27] = new GLatLng (18.8829,-155.3673);
pts[28] = new GLatLng (19.2048,-154.8839);
pts[29] = new GLatLng (19.5158,-154.6271);
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.");
}
}
//]]>