var shape = {"title":"El Sereno Neighborhood in Los Angeles, CA","description":"","tags":"","points":[[34.055256, -118.202439], [34.056581999999999, -118.20163599999999], [34.063909000000002, -118.1972], [34.066308999999997, -118.19610900000001], [34.078004, -118.19374999999999], [34.078530000000001, -118.19340800000001], [34.082507, -118.18960300000001], [34.084972, -118.18713200000001], [34.088605999999999, -118.18785699999999], [34.089334000000001, -118.18985499999999], [34.092033999999998, -118.189041], [34.093519000000001, -118.190318], [34.094946, -118.190309], [34.097245000000001, -118.190271], [34.099423000000002, -118.188976], [34.104295, -118.185124], [34.108414000000003, -118.18237000000001], [34.109647000000002, -118.178214], [34.105164000000002, -118.178112], [34.101981000000002, -118.177513], [34.099497999999997, -118.178032], [34.099497, -118.175757], [34.099069, -118.173444], [34.098641000000001, -118.17173099999999], [34.098512999999997, -118.155569], [34.097304999999999, -118.155642], [34.096077999999999, -118.156603], [34.094670999999998, -118.158686], [34.093201999999998, -118.160893], [34.090083999999997, -118.160882], [34.086374999999997, -118.160644], [34.078612, -118.160556], [34.075530999999998, -118.160556], [34.074483000000001, -118.16217899999999], [34.072145999999996, -118.16211300000001], [34.071207000000001, -118.162781], [34.069775, -118.163211], [34.062317, -118.165373], [34.062139999999999, -118.174391], [34.062175000000003, -118.18113], [34.061750000000004, -118.181335], [34.061864, -118.18569100000001], [34.061737999999998, -118.19068300000001], [34.061647999999998, -118.192724], [34.059748999999996, -118.192784], [34.056848000000002, -118.19264699999999], [34.055503000000002, -118.192633], [34.055804000000002, -118.198396], [34.055556000000003, -118.20105], [34.055256, -118.202439]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(34.055256, -118.202439),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());