var shape = {"title":"Wilson Park Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[42.973698, -87.919238], [42.970114, -87.919253], [42.966838, -87.91928], [42.96615, -87.92699], [42.965981, -87.928894], [42.965788, -87.930135], [42.965487, -87.931206], [42.965031, -87.932183], [42.964401, -87.933221], [42.963786, -87.933774], [42.963658, -87.933879], [42.962026, -87.934454], [42.96237, -87.948563], [42.973861, -87.948366], [42.973786, -87.938789], [42.9737, -87.928955], [42.973698, -87.919238]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(42.973698, -87.919238),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());