var shape = {"title":"Aldale Acres Neighborhood in Fort Wayne, IN","description":"","tags":"","points":[[41.168705, -85.156418], [41.167385, -85.156368], [41.167379, -85.156682], [41.166234, -85.156642], [41.1661, -85.156634], [41.165107, -85.156597], [41.16505, -85.159745], [41.165031, -85.160834], [41.165021, -85.161414], [41.165292, -85.161425], [41.165243, -85.16409], [41.165217, -85.165527], [41.165779, -85.165529], [41.166237, -85.165528], [41.1669, -85.165532], [41.167248, -85.165533], [41.167392, -85.165534], [41.168397, -85.165537], [41.168467, -85.165485], [41.168478, -85.164969], [41.168499, -85.164215], [41.168512, -85.163663], [41.168525, -85.163126], [41.168539, -85.162588], [41.168553, -85.162037], [41.168566, -85.161518], [41.16858, -85.160961], [41.168621, -85.159327], [41.168628, -85.159057], [41.168545, -85.158779], [41.168598, -85.156728], [41.168682, -85.156769], [41.168705, -85.156418]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(41.168705, -85.156418),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());