var shape = {"title":"Juneau Town Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[43.048079, -87.904623], [43.046822, -87.904647], [43.045668, -87.904669], [43.043684, -87.904413], [43.044045, -87.898141], [43.043374, -87.896962], [43.040379, -87.898351], [43.039868, -87.89832], [43.039466, -87.898045], [43.039123, -87.898075], [43.03887, -87.898099], [43.038839, -87.898112], [43.036664, -87.899091], [43.036429, -87.898692], [43.036052, -87.89862], [43.035668, -87.898813], [43.035287, -87.902211], [43.034877, -87.908679], [43.034716, -87.909898], [43.03601, -87.909751], [43.03737, -87.909841], [43.037488, -87.909865], [43.038564, -87.91008], [43.03963, -87.910608], [43.040427, -87.911491], [43.041671, -87.912522], [43.042944, -87.913136], [43.046581, -87.913208], [43.046831, -87.912419], [43.047143, -87.911436], [43.047321, -87.910875], [43.047473, -87.910535], [43.048125, -87.909072], [43.048079, -87.904623]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.048079, -87.904623),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());