var shape = {"title":"Harlem","description":"NYC Neighborhood","tags":"","points":[[40.796885000000003, -73.949231999999995], [40.787885000000003, -73.955669], [40.782881000000003, -73.943911], [40.783757999999999, -73.943224000000001], [40.784602999999997, -73.941894000000005], [40.785317999999997, -73.940004999999999], [40.787624999999998, -73.938159999999996], [40.789574999999999, -73.937173000000001], [40.791621999999997, -73.935627999999994], [40.794252999999998, -73.931164999999993], [40.795552999999998, -73.929705999999996], [40.797307000000004, -73.929233999999994], [40.799776000000001, -73.92962], [40.802050000000001, -73.930092000000002], [40.803837000000001, -73.930779000000001], [40.807865, -73.934254999999993], [40.809879000000002, -73.935027000000005], [40.817478999999999, -73.933997000000005], [40.819654999999997, -73.934469000000007], [40.828099000000002, -73.934726999999995], [40.834301000000004, -73.949275], [40.832709999999999, -73.949789999999993], [40.831507999999999, -73.949489999999997], [40.828910999999998, -73.950434000000001], [40.827060000000003, -73.951978999999994], [40.825727999999998, -73.953309000000004], [40.824818999999998, -73.954682000000005], [40.822837999999997, -73.955927000000003], [40.823033000000002, -73.956485000000001], [40.820661999999999, -73.958588000000006], [40.818064, -73.960476], [40.811307999999997, -73.954123999999993], [40.805559000000002, -73.958330000000004], [40.803122000000002, -73.958116000000004], [40.801141000000001, -73.959531999999996]],"author":"AhmedF"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.808591, -73.944855),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());