var shape = {"title":"Yankee Hill Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[43.046946, -87.893976], [43.044662, -87.895605], [43.043793, -87.896636], [43.043753, -87.896667], [43.043486, -87.896875], [43.043374, -87.896962], [43.044045, -87.898141], [43.043684, -87.904413], [43.045668, -87.904669], [43.046822, -87.904647], [43.048079, -87.904623], [43.048047, -87.899656], [43.048005, -87.89685], [43.047999, -87.896577], [43.047851, -87.896029], [43.047569, -87.895429], [43.047499, -87.895264], [43.046946, -87.893976]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.046946, -87.893976),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());