var shape = {"title":"Adams Hill Neighborhood in Glendale, CA","description":"","tags":"","points":[[34.124211, -118.247642], [34.123998, -118.250974], [34.124033, -118.252002], [34.124104, -118.253012], [34.132598, -118.251042], [34.132788, -118.249202], [34.133036, -118.247359], [34.133143, -118.245799], [34.133214, -118.240483], [34.134242, -118.238923], [34.134485, -118.237528], [34.134492, -118.237073], [34.133781, -118.235875], [34.132895, -118.235946], [34.131512, -118.235946], [34.129137, -118.235627], [34.128039, -118.235308], [34.126904, -118.234634], [34.125628, -118.234102], [34.125345, -118.235272], [34.124884, -118.238958], [34.124671, -118.241085], [34.124423, -118.243425], [34.124352, -118.245409], [34.124211, -118.247642]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(34.124211, -118.247642),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());