var shape = {"title":"Alverno Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[42.984748, -87.962945], [42.982966, -87.962975], [42.981115, -87.963006], [42.981111, -87.964541], [42.979314, -87.964583], [42.977828, -87.964618], [42.976481, -87.96465], [42.975115, -87.964686], [42.973746, -87.964723], [42.973739, -87.967651], [42.973355, -87.967641], [42.973338, -87.967205], [42.972637, -87.967218], [42.972632, -87.968222], [42.974342, -87.968195], [42.974341, -87.968772], [42.974408, -87.968766], [42.974411, -87.969856], [42.975009, -87.969834], [42.975011, -87.970454], [42.976026, -87.97044], [42.976027, -87.970552], [42.978548, -87.970501], [42.978542, -87.968084], [42.981104, -87.96802], [42.981102, -87.967923], [42.98124, -87.96792], [42.984253, -87.967857], [42.985631, -87.967829], [42.986363, -87.967814], [42.986432, -87.962942], [42.984748, -87.962945]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(42.984748, -87.962945),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());