var shape = {"title":"Arnold Heights Neighborhood in Lincoln, NE","description":"","tags":"","points":[[40.842759000000001, -96.796131000000003], [40.850019000000003, -96.796064000000001], [40.850022000000003, -96.796914000000001], [40.850296999999998, -96.796912000000006], [40.850462, -96.796982], [40.851430000000001, -96.796974000000006], [40.851500999999999, -96.797360999999995], [40.851649999999999, -96.797760999999994], [40.852176, -96.797425000000004], [40.852279000000003, -96.797240000000002], [40.852283999999997, -96.797128000000001], [40.852677999999997, -96.796980000000005], [40.854965, -96.796959000000001], [40.854959999999998, -96.797077999999999], [40.855052000000001, -96.797319000000002], [40.855238, -96.797698999999994], [40.856459999999998, -96.796960999999996], [40.856445000000001, -96.796004999999994], [40.860703000000001, -96.795976999999993], [40.860711000000002, -96.787149999999997], [40.842784000000002, -96.787349000000006], [40.842759000000001, -96.796131000000003]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.842759, -96.796131),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());