var shape = {"title":"Argyle Neighborhood in Mobile, AL","description":"","tags":"","points":[[30.516423, -88.157775], [30.516268, -88.140736], [30.516365, -88.123699], [30.501489, -88.12366], [30.501522, -88.125506], [30.50155, -88.127678], [30.501586, -88.130545], [30.50161, -88.132485], [30.501651, -88.135742], [30.50169, -88.138844], [30.501713, -88.140619], [30.501739, -88.142877], [30.50176, -88.144657], [30.501774, -88.1459], [30.501795, -88.147684], [30.501817, -88.149623], [30.501831, -88.150864], [30.50191, -88.157737], [30.50186, -88.169709], [30.516433, -88.170157], [30.516428, -88.163919], [30.516423, -88.157775]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(30.516423, -88.157775),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());