var shape = {"title":"Worthington Park Neighborhood in Madison, WI","description":"","tags":"","points":[[43.104412, -89.341779], [43.104639, -89.341482], [43.104824, -89.34124], [43.105174, -89.340785], [43.105315, -89.3406], [43.10519, -89.340408], [43.105002, -89.340116], [43.104714, -89.339639], [43.10471, -89.339632], [43.10468, -89.339585], [43.10466, -89.339476], [43.104649, -89.338815], [43.104629, -89.33781], [43.104582, -89.335566], [43.104979, -89.335548], [43.10562, -89.335512], [43.106338, -89.335472], [43.106659, -89.335452], [43.10663, -89.333044], [43.106622, -89.332314], [43.106602, -89.330619], [43.106264, -89.330632], [43.105519, -89.33066], [43.104498, -89.330697], [43.103435, -89.330737], [43.103155, -89.330747], [43.102496, -89.331987], [43.101829, -89.333239], [43.100493, -89.335749], [43.099807, -89.337012], [43.099818, -89.337453], [43.099821, -89.337572], [43.099822, -89.337652], [43.099839, -89.338306], [43.100255, -89.33854], [43.100902, -89.338848], [43.101486, -89.339128], [43.101688, -89.339253], [43.101868, -89.339415], [43.102268, -89.339852], [43.102679, -89.340233], [43.103008, -89.340591], [43.103291, -89.34095], [43.103541, -89.341208], [43.103744, -89.341419], [43.104145, -89.341668], [43.104412, -89.341779]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.104412, -89.341779),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());