var shape = {"title":"Grantosa Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[43.089606, -88.027605], [43.089613, -88.039376], [43.089599, -88.047591], [43.090145, -88.047568], [43.090141, -88.043199], [43.090584, -88.042595], [43.097992, -88.042537], [43.097997, -88.037528], [43.097926, -88.037535], [43.097928, -88.03088], [43.097561, -88.030884], [43.096879, -88.030525], [43.096806, -88.030774], [43.094602, -88.034696], [43.095081, -88.035261], [43.095103, -88.036257], [43.096778, -88.036237], [43.096774, -88.036867], [43.096284, -88.036874], [43.096277, -88.037377], [43.096052, -88.03738], [43.09605, -88.036877], [43.09531, -88.03688], [43.095307, -88.037378], [43.09511, -88.03738], [43.095104, -88.036874], [43.094034, -88.036874], [43.093804, -88.037299], [43.092979, -88.036457], [43.092677, -88.036976], [43.091787, -88.036988], [43.091786, -88.037419], [43.091351, -88.03741], [43.09134, -88.036996], [43.090774, -88.036986], [43.090661, -88.036563], [43.090654, -88.035677], [43.090135, -88.035687], [43.09012, -88.035328], [43.090884, -88.035319], [43.090885, -88.034605], [43.091125, -88.034598], [43.09112, -88.033991], [43.091239, -88.033989], [43.091237, -88.033934], [43.091284, -88.033935], [43.091283, -88.033266], [43.091333, -88.033262], [43.091332, -88.032595], [43.090107, -88.032605], [43.090109, -88.032907], [43.089776, -88.032913], [43.089774, -88.031484], [43.090569, -88.03148], [43.090568, -88.031359], [43.091469, -88.031361], [43.091474, -88.030745], [43.090599, -88.030755], [43.090595, -88.029529], [43.090123, -88.029535], [43.090117, -88.027599], [43.089606, -88.027605]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.089606, -88.027605),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());