var shape = {"title":"Layton Park Neighborhood in Milwaukee, WI","description":"","tags":"","points":[[43.006611, -87.942219], [43.003343, -87.943919], [43.000678, -87.948194], [42.995816, -87.948257], [42.995531, -87.948113], [42.993648, -87.948147], [42.992193, -87.948173], [42.991485, -87.948138], [42.991451, -87.948136], [42.991499, -87.948949], [42.991501, -87.948988], [42.991619, -87.949604], [42.991755, -87.950284], [42.991754, -87.950601], [42.991731, -87.950912], [42.991582, -87.95138], [42.991422, -87.951703], [42.991285, -87.951912], [42.991036, -87.952111], [42.990647, -87.95231], [42.990414, -87.95254], [42.990342, -87.952841], [42.990337, -87.95303], [42.990323, -87.953673], [42.990272, -87.954536], [42.990268, -87.955661], [42.990245, -87.956044], [42.990252, -87.956343], [42.990301, -87.956962], [42.990523, -87.95797], [42.993877, -87.957948], [42.994072, -87.957948], [42.994275, -87.958014], [42.994636, -87.958251], [42.995437, -87.958857], [42.995995, -87.958879], [42.996606, -87.958905], [42.997106, -87.958707], [42.997237, -87.958655], [43.000512, -87.968275], [43.000562, -87.968424], [43.000705, -87.968422], [43.002928, -87.968389], [43.002937, -87.966839], [43.002848, -87.966842], [43.002935, -87.961016], [43.006527, -87.960964], [43.006551, -87.95893], [43.006567, -87.95767], [43.006653, -87.951591], [43.006718, -87.947885], [43.006687, -87.947886], [43.006611, -87.942219]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(43.006611, -87.942219),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());