var shape = {"title":"Norman Acres Neighborhood in Madison, WI","description":"","tags":"","points":[[43.123166, -89.315926], [43.123366, -89.315916], [43.123576, -89.315881], [43.123808, -89.315812], [43.123974, -89.315743], [43.124236, -89.315606], [43.124466, -89.31549], [43.124719, -89.315489], [43.12524, -89.315489], [43.125886, -89.315489], [43.12676, -89.315491], [43.126918, -89.315489], [43.126914, -89.314852], [43.126918, -89.314343], [43.126914, -89.314238], [43.1275, -89.314221], [43.127592, -89.314159], [43.127673, -89.314078], [43.127753, -89.313931], [43.127789, -89.313755], [43.127784, -89.312896], [43.12778, -89.312175], [43.127506, -89.311797], [43.129064, -89.309557], [43.12829, -89.308551], [43.128227, -89.308468], [43.12799, -89.3082], [43.127174, -89.309422], [43.126466, -89.310452], [43.124332, -89.313559], [43.124068, -89.313943], [43.123707, -89.314462], [43.12272, -89.315868], [43.122938, -89.315911], [43.123166, -89.315926]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.123166, -89.315926),5);
map.addControl(new GSmallMapControl());
var latlngs = [];
for (var i=0; i<shape.points.length; i++)
{
    latlngs[i] = new GLatLng(shape.points[i][0], shape.points[i][1]);
}
var poly = new GPolygon(latlngs, '#ff0000', 3, .8, '#ff0000', .4);
map.addOverlay(poly);
var bounds = poly.getBounds();
map.setZoom(map.getBoundsZoomLevel(bounds));
map.panTo(bounds.getCenter());