var shape = {"title":"Argyle Neighborhood in Mobile, AL","description":"","tags":"","points":[[30.516423, -88.157775000000001], [30.516268, -88.140736000000004], [30.516365, -88.123699000000002], [30.501488999999999, -88.123660000000001], [30.501522000000001, -88.125506000000001], [30.501550000000002, -88.127678000000003], [30.501586, -88.130544999999998], [30.501609999999999, -88.132485000000003], [30.501650999999999, -88.135741999999993], [30.50169, -88.138844000000006], [30.501712999999999, -88.140619000000001], [30.501739000000001, -88.142876999999999], [30.501760000000001, -88.144656999999995], [30.501774000000001, -88.145899999999997], [30.501795000000001, -88.147683999999998], [30.501816999999999, -88.149623000000005], [30.501830999999999, -88.150863999999999], [30.501909999999999, -88.157736999999997], [30.501860000000001, -88.169708999999997], [30.516432999999999, -88.170157000000003], [30.516428000000001, -88.163919000000007], [30.516423, -88.157775000000001]],"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());