var shape = {"title":"Amber Ridge Estates Neighborhood in Fort Wayne, IN","description":"","tags":"","points":[[41.021436, -85.29852], [41.016578, -85.298504], [41.01658, -85.30001], [41.017429, -85.300014], [41.01743, -85.301197], [41.01743, -85.301395], [41.018951, -85.301396], [41.018949, -85.301937], [41.019622, -85.301938], [41.019659, -85.301808], [41.019641, -85.300389], [41.019655, -85.300382], [41.021238, -85.300391], [41.021432, -85.300391], [41.021436, -85.29852]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(41.021436, -85.29852),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());