var shape = {"title":"Algeirs Point Neighborhood in New Orleans, LA","description":"","tags":"","points":[[29.949611, -90.046058], [29.94865, -90.046125], [29.948706, -90.04706], [29.948734, -90.047413], [29.948755, -90.047758], [29.948775, -90.048167], [29.948795, -90.048749], [29.948795, -90.049196], [29.948797, -90.049392], [29.948789, -90.049629], [29.948776, -90.049848], [29.948732, -90.050533], [29.948726, -90.050594], [29.948718, -90.050687], [29.948702, -90.051], [29.9487, -90.051213], [29.948692, -90.051638], [29.948676, -90.052258], [29.948643, -90.05332], [29.948595, -90.053465], [29.949028, -90.053817], [29.948838, -90.054124], [29.94845, -90.054753], [29.94857, -90.054891], [29.948157, -90.055904], [29.946381, -90.059064], [29.948646, -90.05847], [29.95012, -90.05848], [29.951696, -90.058489], [29.952975, -90.058663], [29.953743, -90.058666], [29.95643, -90.056838], [29.957825, -90.05434], [29.958222, -90.052742], [29.958183, -90.051777], [29.958005, -90.047326], [29.957958, -90.045292], [29.956042, -90.04555], [29.954902, -90.045729], [29.954261, -90.045764], [29.953153, -90.045825], [29.951972, -90.045897], [29.950773, -90.045976], [29.949611, -90.046058]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(29.949611, -90.046058),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());