var shape = {"title":"Gardenland Neighborhood in Sacramento, CA","description":"","tags":"","points":[[38.601368000000001, -121.468414], [38.599719999999998, -121.468431], [38.600687999999998, -121.46877600000001], [38.601497000000002, -121.469359], [38.602564999999998, -121.47071800000001], [38.603828, -121.472758], [38.605477999999998, -121.475651], [38.611277000000001, -121.475528], [38.611674999999998, -121.47554100000001], [38.612195999999997, -121.475542], [38.612502999999997, -121.47554599999999], [38.613585, -121.475544], [38.614018000000002, -121.475544], [38.615718000000001, -121.475538], [38.615785000000002, -121.475542], [38.615850000000002, -121.475542], [38.616970999999999, -121.475538], [38.617308999999999, -121.47553499999999], [38.617615999999998, -121.47553499999999], [38.617854000000001, -121.475534], [38.619393000000002, -121.475526], [38.620379, -121.475531], [38.620615999999998, -121.475526], [38.621184, -121.475527], [38.622081999999999, -121.475528], [38.622804000000002, -121.475526], [38.622992000000004, -121.475525], [38.623216999999997, -121.47552399999999], [38.623880999999997, -121.47552], [38.624294999999996, -121.47551799999999], [38.625011999999998, -121.47551900000001], [38.625864, -121.47551199999999], [38.626973, -121.47551], [38.627510000000001, -121.47551300000001], [38.628661000000001, -121.475531], [38.629202999999997, -121.475543], [38.630383000000002, -121.47554100000001], [38.631720999999999, -121.475526], [38.632226000000003, -121.475523], [38.633409, -121.475517], [38.633501000000003, -121.475517], [38.633502, -121.470184], [38.630690999999999, -121.46966399999999], [38.629586000000003, -121.46945700000001], [38.629384999999999, -121.469419], [38.628686000000002, -121.469283], [38.627321000000002, -121.46901699999999], [38.626246000000002, -121.468822], [38.625625999999997, -121.468689], [38.625000999999997, -121.46855499999999], [38.623100000000001, -121.468216], [38.621153, -121.46784], [38.619607000000002, -121.467579], [38.617648000000003, -121.46724399999999], [38.616866999999999, -121.467136], [38.611058999999997, -121.46638900000001], [38.610275000000001, -121.46636599999999], [38.609918, -121.466427], [38.609484000000002, -121.46652899999999], [38.609203999999998, -121.466593], [38.608874, -121.466669], [38.608767, -121.466694], [38.607776000000001, -121.467018], [38.606831, -121.467388], [38.606458000000003, -121.467545], [38.60642, -121.467562], [38.606371000000003, -121.46758199999999], [38.60539, -121.467995], [38.604512, -121.468374], [38.601368000000001, -121.468414]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(38.601368, -121.468414),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());