var shape = {"title":"Alameda-Campus Neighborhood in Tempe, AZ","description":"","tags":"","points":[[33.397287, -111.934904], [33.397599, -111.934902], [33.397657, -111.934902], [33.397982, -111.934901], [33.398053, -111.934901], [33.39839, -111.934899], [33.398433, -111.934899], [33.398796, -111.934895], [33.39918, -111.934893], [33.400142, -111.934889], [33.400153, -111.93425], [33.400177, -111.93292], [33.400186, -111.932431], [33.40019, -111.930587], [33.400211, -111.928206], [33.400214, -111.927773], [33.400218, -111.927319], [33.400221, -111.926872], [33.400222, -111.92652], [33.400177, -111.926445], [33.400147, -111.926263], [33.398959, -111.926286], [33.398931, -111.926287], [33.398536, -111.926294], [33.398255, -111.926301], [33.398163, -111.92629], [33.397755, -111.926289], [33.397368, -111.926289], [33.396952, -111.926289], [33.396544, -111.926291], [33.396569, -111.9349], [33.396571, -111.9349], [33.396928, -111.934898], [33.397, -111.934898], [33.397287, -111.934904]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(33.397287, -111.934904),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());