var shape = {"title":"Whitetail Ridge Neighborhood in Madison, WI","description":"","tags":"","points":[[43.140247, -89.36316], [43.140852, -89.363139], [43.141063, -89.363149], [43.142657, -89.363077], [43.142796, -89.363071], [43.143267, -89.363052], [43.143748, -89.363032], [43.143641, -89.357955], [43.143583, -89.355189], [43.143142, -89.355212], [43.141324, -89.355308], [43.1403, -89.355363], [43.140318, -89.356725], [43.139996, -89.356739], [43.140025, -89.3574], [43.140107, -89.3608], [43.140142, -89.361815], [43.140148, -89.361925], [43.140151, -89.362144], [43.140162, -89.362579], [43.140174, -89.363015], [43.140247, -89.36316]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.140247, -89.36316),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());