var shape = {"title":"Kilbourn Town Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[43.046541, -87.91428], [43.046581, -87.913208], [43.042944, -87.913136], [43.041671, -87.912522], [43.040427, -87.911491], [43.03963, -87.910608], [43.038564, -87.91008], [43.037488, -87.909865], [43.03737, -87.909841], [43.03601, -87.909751], [43.034716, -87.909898], [43.034523, -87.911073], [43.034535, -87.911941], [43.034547, -87.912938], [43.034584, -87.915888], [43.034604, -87.918483], [43.034614, -87.920638], [43.034622, -87.922427], [43.035239, -87.922609], [43.03574, -87.922953], [43.036517, -87.923634], [43.037097, -87.924748], [43.040148, -87.924916], [43.042211, -87.925414], [43.042854, -87.925569], [43.043444, -87.925825], [43.043656, -87.925917], [43.044312, -87.926127], [43.04451, -87.926191], [43.044909, -87.926392], [43.045752, -87.926646], [43.045779, -87.926654], [43.046238, -87.926709], [43.04653, -87.926725], [43.046786, -87.92674], [43.04721, -87.926733], [43.047241, -87.926733], [43.04752, -87.926714], [43.047555, -87.926711], [43.047968, -87.926663], [43.04914, -87.92636], [43.049427, -87.926286], [43.049463, -87.926277], [43.049961, -87.926168], [43.049173, -87.925443], [43.048908, -87.925251], [43.048477, -87.924791], [43.047677, -87.922927], [43.047239, -87.922044], [43.047067, -87.921696], [43.046905, -87.921349], [43.046771, -87.920956], [43.046663, -87.920557], [43.046565, -87.919917], [43.046543, -87.919457], [43.046548, -87.918688], [43.046545, -87.916916], [43.046542, -87.91469], [43.046541, -87.91428]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.046541, -87.91428),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());