var shape = {"title":"Morningside Heights","description":"NYC Neighborhood","tags":"","points":[[40.810561, -73.958243999999993], [40.810301000000003, -73.957558000000006], [40.809716999999999, -73.956999999999994], [40.807833000000002, -73.958029999999994], [40.806111000000001, -73.959360000000004], [40.801726000000002, -73.961119999999994], [40.805007000000003, -73.968501000000003], [40.807670000000002, -73.966999000000001], [40.808905000000003, -73.965796999999995], [40.811307999999997, -73.964209999999994], [40.813127000000001, -73.963736999999995], [40.815984999999998, -73.962492999999995], [40.818193999999998, -73.960648000000006], [40.813257, -73.956226999999998]],"author":"AhmedF"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.80996, -73.962364),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());