var shape = {"title":"Arlington Heights Neighborhood in Riverside, CA","description":"","tags":"","points":[[33.919919999999998, -117.38342900000001], [33.919825000000003, -117.38342900000001], [33.919714999999997, -117.38342900000001], [33.919286999999997, -117.38343500000001], [33.917566000000001, -117.383465], [33.915844, -117.383437], [33.914921999999997, -117.383487], [33.914676, -117.38350199999999], [33.914648, -117.383505], [33.914628, -117.383506], [33.914599000000003, -117.38350800000001], [33.914565000000003, -117.38351], [33.913767999999997, -117.38355900000001], [33.913091999999999, -117.38357600000001], [33.912441000000001, -117.383565], [33.912362999999999, -117.38356400000001], [33.912191, -117.38356], [33.911909000000001, -117.38355300000001], [33.910300999999997, -117.38355], [33.909260000000003, -117.38353600000001], [33.909089000000002, -117.383539], [33.909042999999997, -117.38354], [33.908921999999997, -117.38354200000001], [33.908271999999997, -117.383555], [33.906955000000004, -117.38356400000001], [33.905802999999999, -117.383574], [33.905768999999999, -117.38357499999999], [33.905707999999997, -117.38357499999999], [33.905653999999998, -117.38357600000001], [33.903922000000001, -117.383571], [33.902687999999998, -117.383539], [33.902507, -117.38352], [33.902385000000002, -117.38350699999999], [33.901772000000001, -117.383411], [33.901631999999999, -117.38338299999999], [33.901279000000002, -117.38340700000001], [33.901119999999999, -117.383436], [33.900891999999999, -117.383515], [33.900750000000002, -117.383583], [33.900703, -117.383605], [33.900604999999999, -117.38364], [33.900554999999997, -117.38364], [33.900512999999997, -117.383623], [33.900480999999999, -117.383579], [33.900454000000003, -117.38354099999999], [33.900016000000001, -117.383544], [33.898681000000003, -117.383556], [33.898605000000003, -117.383557], [33.898586000000002, -117.383557], [33.897359000000002, -117.383555], [33.896551000000002, -117.383554], [33.896197999999998, -117.383554], [33.895626, -117.383555], [33.89546, -117.38348000000001], [33.895404999999997, -117.383489], [33.889476999999999, -117.383685], [33.888299000000004, -117.38367], [33.887193000000003, -117.38364199999999], [33.887194000000001, -117.38397999999999], [33.887194000000001, -117.384004], [33.887193000000003, -117.384034], [33.887194000000001, -117.384062], [33.887193000000003, -117.38409], [33.887194000000001, -117.3844], [33.887194000000001, -117.384466], [33.887194000000001, -117.384518], [33.887194000000001, -117.38458300000001], [33.887194000000001, -117.384654], [33.887194000000001, -117.384743], [33.887194000000001, -117.384806], [33.887194000000001, -117.38488], [33.887194000000001, -117.38495500000001], [33.887194000000001, -117.385109], [33.887194999999998, -117.385172], [33.887194999999998, -117.38521900000001], [33.887194999999998, -117.385317], [33.887194999999998, -117.38537700000001], [33.887194999999998, -117.38544400000001], [33.887194999999998, -117.38552199999999], [33.887194999999998, -117.38561300000001], [33.887194999999998, -117.385679], [33.887194999999998, -117.38575400000001], [33.887193000000003, -117.38584400000001], [33.887191000000001, -117.385926], [33.887210000000003, -117.386025], [33.887230000000002, -117.386101], [33.887269000000003, -117.38618], [33.887276999999997, -117.38619300000001], [33.887315999999998, -117.38626600000001], [33.887340999999999, -117.38630999999999], [33.887416999999999, -117.386444], [33.887453000000001, -117.386501], [33.887504, -117.386579], [33.887540000000001, -117.386644], [33.887611999999997, -117.38676100000001], [33.887630000000001, -117.386787], [33.887780999999997, -117.386987], [33.887917999999999, -117.38714400000001], [33.887949999999996, -117.38720000000001], [33.887968000000001, -117.387252], [33.887976000000002, -117.38727400000001], [33.887979000000001, -117.387322], [33.887976000000002, -117.38739099999999], [33.887946999999997, -117.38750400000001], [33.887922000000003, -117.387578], [33.88785, -117.387743], [33.887799000000001, -117.387838], [33.887687, -117.388008], [33.887326999999999, -117.38847199999999], [33.887464000000001, -117.38856800000001], [33.887518, -117.388642], [33.887543000000001, -117.388711], [33.887546999999998, -117.388772], [33.887540000000001, -117.388863], [33.887391999999998, -117.389296], [33.887352, -117.38941800000001], [33.887352, -117.38947], [33.887355999999997, -117.389526], [33.887349, -117.389583], [33.887338, -117.38966499999999], [33.887143999999999, -117.390469], [33.887064000000002, -117.39759599999999], [33.887036000000002, -117.403021], [33.887014000000001, -117.407144], [33.887062, -117.41034399999999], [33.887042999999998, -117.410533], [33.887034, -117.413014], [33.886992999999997, -117.414374], [33.886992999999997, -117.41951400000001], [33.887042999999998, -117.42528900000001], [33.887045000000001, -117.432503], [33.887197, -117.43571900000001], [33.887213000000003, -117.435918], [33.887238000000004, -117.436092], [33.887191999999999, -117.43616], [33.887107, -117.436402], [33.886941, -117.436806], [33.886916999999997, -117.436882], [33.886906000000003, -117.436954], [33.886906000000003, -117.437039], [33.886941, -117.437133], [33.887141999999997, -117.43751899999999], [33.887166999999998, -117.43760399999999], [33.887172, -117.437697], [33.887172, -117.437879], [33.887172, -117.43811700000001], [33.887183, -117.438236], [33.887203999999997, -117.4383], [33.887327999999997, -117.438444], [33.887391000000001, -117.43853799999999], [33.887428, -117.438607], [33.887439999999998, -117.438687], [33.887456, -117.438827], [33.887452000000003, -117.43892099999999], [33.887421000000003, -117.43955800000001], [33.887186, -117.441169], [33.887543999999998, -117.44453799999999], [33.887537999999999, -117.45268799999999], [33.888831000000003, -117.453593], [33.892225000000003, -117.45596999999999], [33.895018999999998, -117.45101200000001], [33.895353, -117.450456], [33.895744000000001, -117.447819], [33.898454999999998, -117.444903], [33.900582999999997, -117.441264], [33.900697000000001, -117.44106600000001], [33.900913000000003, -117.440692], [33.902123000000003, -117.43857199999999], [33.902714000000003, -117.43756399999999], [33.904012000000002, -117.435281], [33.904459000000003, -117.43450799999999], [33.904806000000001, -117.433908], [33.904864000000003, -117.433807], [33.906440000000003, -117.434853], [33.908875999999999, -117.430813], [33.910719999999998, -117.42784], [33.923609999999996, -117.405148], [33.931690000000003, -117.390503], [33.930109999999999, -117.38934399999999], [33.930039999999998, -117.38928799999999], [33.929969999999997, -117.38923200000001], [33.928649, -117.388153], [33.928381000000002, -117.387934], [33.927197, -117.386961], [33.926850999999999, -117.38667599999999], [33.926181999999997, -117.386122], [33.925635, -117.385668], [33.925595000000001, -117.38563499999999], [33.925539999999998, -117.38558999999999], [33.925089, -117.38522500000001], [33.924433999999998, -117.38467199999999], [33.924182000000002, -117.384462], [33.923785000000002, -117.38413799999999], [33.923749000000001, -117.384109], [33.923631999999998, -117.38401399999999], [33.923596000000003, -117.383985], [33.923574000000002, -117.383967], [33.923433000000003, -117.383852], [33.923381999999997, -117.383816], [33.923316999999997, -117.38377199999999], [33.923197000000002, -117.38370999999999], [33.923124999999999, -117.383674], [33.923036000000003, -117.383639], [33.922987999999997, -117.383624], [33.922908, -117.383599], [33.922770999999997, -117.383566], [33.922716000000001, -117.383555], [33.922666, -117.383545], [33.922612000000001, -117.38353499999999], [33.922581000000001, -117.38352999999999], [33.922536000000001, -117.383527], [33.922480999999998, -117.38352399999999], [33.922406000000002, -117.38351900000001], [33.919919999999998, -117.38342900000001]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(33.91992, -117.383429),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());