var shape = {"title":"Panorama City Neighborhood in Los Angeles, CA","description":"","tags":"","points":[[34.238717999999999, -118.41594600000001], [34.235930000000003, -118.412631], [34.231785000000002, -118.418256], [34.230398000000001, -118.41696399999999], [34.228375, -118.41719500000001], [34.227457000000001, -118.417692], [34.225940000000001, -118.420255], [34.225599000000003, -118.41992500000001], [34.224279000000003, -118.418646], [34.222973000000003, -118.417436], [34.221595000000001, -118.417326], [34.221575000000001, -118.41767400000001], [34.220767000000002, -118.417614], [34.220613, -118.41839400000001], [34.220008999999997, -118.41827600000001], [34.219965000000002, -118.415314], [34.216665999999996, -118.415406], [34.216582000000002, -118.416325], [34.215423000000001, -118.416574], [34.207348000000003, -118.41850700000001], [34.209144000000002, -118.42657199999999], [34.209561000000001, -118.429112], [34.209567, -118.431532], [34.210107999999998, -118.434888], [34.210718, -118.437427], [34.212682999999998, -118.43773899999999], [34.214033999999998, -118.438732], [34.216358999999997, -118.43941], [34.216712999999999, -118.441284], [34.217038000000002, -118.442087], [34.216633999999999, -118.442617], [34.216773000000003, -118.447796], [34.216541999999997, -118.448967], [34.219527999999997, -118.44884500000001], [34.221916999999998, -118.448773], [34.22475, -118.44884], [34.226120000000002, -118.449479], [34.226922000000002, -118.450305], [34.235354000000001, -118.450191], [34.235280000000003, -118.439785], [34.235371000000001, -118.435151], [34.239820000000002, -118.428967], [34.244734000000001, -118.422376], [34.243288, -118.420653], [34.238717999999999, -118.41594600000001]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(34.238718, -118.415946),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());