var shape = {"title":"Almeta-Bonita-Bella Vista Neighborhood in Garland, TX","description":"","tags":"","points":[[32.885502, -96.649272], [32.884082, -96.649302], [32.884091, -96.64804], [32.881653, -96.648061], [32.881646, -96.64865], [32.882006, -96.64866], [32.881992, -96.649211], [32.881049, -96.649204], [32.881046, -96.650055], [32.88038, -96.650051], [32.880405, -96.6492], [32.87941, -96.649194], [32.879402, -96.648662], [32.878797, -96.648648], [32.878819, -96.65484], [32.881968, -96.654503], [32.88197, -96.655151], [32.878821, -96.655469], [32.878828, -96.657678], [32.88135, -96.6574], [32.881357, -96.657917], [32.884639, -96.655519], [32.884513, -96.655344], [32.885213, -96.65465], [32.884892, -96.654187], [32.885038, -96.653925], [32.885272, -96.654017], [32.885516, -96.653931], [32.885502, -96.649272]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(32.885502, -96.649272),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());