var shape = {"title":"Allston-Brighton Neighborhood in Boston, MA","description":"","tags":"","points":[[42.352371, -71.111155], [42.350482, -71.111209], [42.351791, -71.122364], [42.351432, -71.124229], [42.346664, -71.134445], [42.341547, -71.14119], [42.340036, -71.142491], [42.3399, -71.144236], [42.338509, -71.146573], [42.336664, -71.148364], [42.335164, -71.150373], [42.334627, -71.150027], [42.330082, -71.156936], [42.331755, -71.158155], [42.332773, -71.159336], [42.333864, -71.161736], [42.333418, -71.167782], [42.338218, -71.169182], [42.339955, -71.167073], [42.340636, -71.167855], [42.3424, -71.168591], [42.34716, -71.172285], [42.350245, -71.174573], [42.351155, -71.174891], [42.353382, -71.173973], [42.357109, -71.1703], [42.358064, -71.169755], [42.359091, -71.168536], [42.360191, -71.167982], [42.359618, -71.165936], [42.358127, -71.163845], [42.358773, -71.161918], [42.359136, -71.161791], [42.360036, -71.159373], [42.359945, -71.155055], [42.361245, -71.148255], [42.362855, -71.146045], [42.364355, -71.145127], [42.365, -71.143791], [42.364273, -71.1398], [42.366927, -71.136291], [42.3679, -71.133736], [42.369755, -71.131636], [42.372445, -71.133418], [42.373009, -71.132836], [42.3738, -71.131018], [42.373418, -71.127636], [42.37, -71.124755], [42.369236, -71.122945], [42.368782, -71.1226], [42.368391, -71.118173], [42.367227, -71.117164], [42.358655, -71.116582], [42.3555, -71.116909], [42.353873, -71.115018], [42.352371, -71.111155]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(42.352371, -71.111155),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());