var shape = {"title":"Arlington Heights Neighborhood in Riverside, CA","description":"","tags":"","points":[[33.91992, -117.383429], [33.919825, -117.383429], [33.919715, -117.383429], [33.919287, -117.383435], [33.917566, -117.383465], [33.915844, -117.383437], [33.914922, -117.383487], [33.914676, -117.383502], [33.914648, -117.383505], [33.914628, -117.383506], [33.914599, -117.383508], [33.914565, -117.38351], [33.913768, -117.383559], [33.913092, -117.383576], [33.912441, -117.383565], [33.912363, -117.383564], [33.912191, -117.38356], [33.911909, -117.383553], [33.910301, -117.38355], [33.90926, -117.383536], [33.909089, -117.383539], [33.909043, -117.38354], [33.908922, -117.383542], [33.908272, -117.383555], [33.906955, -117.383564], [33.905803, -117.383574], [33.905769, -117.383575], [33.905708, -117.383575], [33.905654, -117.383576], [33.903922, -117.383571], [33.902688, -117.383539], [33.902507, -117.38352], [33.902385, -117.383507], [33.901772, -117.383411], [33.901632, -117.383383], [33.901279, -117.383407], [33.90112, -117.383436], [33.900892, -117.383515], [33.90075, -117.383583], [33.900703, -117.383605], [33.900605, -117.38364], [33.900555, -117.38364], [33.900513, -117.383623], [33.900481, -117.383579], [33.900454, -117.383541], [33.900016, -117.383544], [33.898681, -117.383556], [33.898605, -117.383557], [33.898586, -117.383557], [33.897359, -117.383555], [33.896551, -117.383554], [33.896198, -117.383554], [33.895626, -117.383555], [33.89546, -117.38348], [33.895405, -117.383489], [33.889477, -117.383685], [33.888299, -117.38367], [33.887193, -117.383642], [33.887194, -117.38398], [33.887194, -117.384004], [33.887193, -117.384034], [33.887194, -117.384062], [33.887193, -117.38409], [33.887194, -117.3844], [33.887194, -117.384466], [33.887194, -117.384518], [33.887194, -117.384583], [33.887194, -117.384654], [33.887194, -117.384743], [33.887194, -117.384806], [33.887194, -117.38488], [33.887194, -117.384955], [33.887194, -117.385109], [33.887195, -117.385172], [33.887195, -117.385219], [33.887195, -117.385317], [33.887195, -117.385377], [33.887195, -117.385444], [33.887195, -117.385522], [33.887195, -117.385613], [33.887195, -117.385679], [33.887195, -117.385754], [33.887193, -117.385844], [33.887191, -117.385926], [33.88721, -117.386025], [33.88723, -117.386101], [33.887269, -117.38618], [33.887277, -117.386193], [33.887316, -117.386266], [33.887341, -117.38631], [33.887417, -117.386444], [33.887453, -117.386501], [33.887504, -117.386579], [33.88754, -117.386644], [33.887612, -117.386761], [33.88763, -117.386787], [33.887781, -117.386987], [33.887918, -117.387144], [33.88795, -117.3872], [33.887968, -117.387252], [33.887976, -117.387274], [33.887979, -117.387322], [33.887976, -117.387391], [33.887947, -117.387504], [33.887922, -117.387578], [33.88785, -117.387743], [33.887799, -117.387838], [33.887687, -117.388008], [33.887327, -117.388472], [33.887464, -117.388568], [33.887518, -117.388642], [33.887543, -117.388711], [33.887547, -117.388772], [33.88754, -117.388863], [33.887392, -117.389296], [33.887352, -117.389418], [33.887352, -117.38947], [33.887356, -117.389526], [33.887349, -117.389583], [33.887338, -117.389665], [33.887144, -117.390469], [33.887064, -117.397596], [33.887036, -117.403021], [33.887014, -117.407144], [33.887062, -117.410344], [33.887043, -117.410533], [33.887034, -117.413014], [33.886993, -117.414374], [33.886993, -117.419514], [33.887043, -117.425289], [33.887045, -117.432503], [33.887197, -117.435719], [33.887213, -117.435918], [33.887238, -117.436092], [33.887192, -117.43616], [33.887107, -117.436402], [33.886941, -117.436806], [33.886917, -117.436882], [33.886906, -117.436954], [33.886906, -117.437039], [33.886941, -117.437133], [33.887142, -117.437519], [33.887167, -117.437604], [33.887172, -117.437697], [33.887172, -117.437879], [33.887172, -117.438117], [33.887183, -117.438236], [33.887204, -117.4383], [33.887328, -117.438444], [33.887391, -117.438538], [33.887428, -117.438607], [33.88744, -117.438687], [33.887456, -117.438827], [33.887452, -117.438921], [33.887421, -117.439558], [33.887186, -117.441169], [33.887544, -117.444538], [33.887538, -117.452688], [33.888831, -117.453593], [33.892225, -117.45597], [33.895019, -117.451012], [33.895353, -117.450456], [33.895744, -117.447819], [33.898455, -117.444903], [33.900583, -117.441264], [33.900697, -117.441066], [33.900913, -117.440692], [33.902123, -117.438572], [33.902714, -117.437564], [33.904012, -117.435281], [33.904459, -117.434508], [33.904806, -117.433908], [33.904864, -117.433807], [33.90644, -117.434853], [33.908876, -117.430813], [33.91072, -117.42784], [33.92361, -117.405148], [33.93169, -117.390503], [33.93011, -117.389344], [33.93004, -117.389288], [33.92997, -117.389232], [33.928649, -117.388153], [33.928381, -117.387934], [33.927197, -117.386961], [33.926851, -117.386676], [33.926182, -117.386122], [33.925635, -117.385668], [33.925595, -117.385635], [33.92554, -117.38559], [33.925089, -117.385225], [33.924434, -117.384672], [33.924182, -117.384462], [33.923785, -117.384138], [33.923749, -117.384109], [33.923632, -117.384014], [33.923596, -117.383985], [33.923574, -117.383967], [33.923433, -117.383852], [33.923382, -117.383816], [33.923317, -117.383772], [33.923197, -117.38371], [33.923125, -117.383674], [33.923036, -117.383639], [33.922988, -117.383624], [33.922908, -117.383599], [33.922771, -117.383566], [33.922716, -117.383555], [33.922666, -117.383545], [33.922612, -117.383535], [33.922581, -117.38353], [33.922536, -117.383527], [33.922481, -117.383524], [33.922406, -117.383519], [33.91992, -117.383429]],"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());