var shape = {"title":"Arnold Heights Neighborhood in Lincoln, NE","description":"","tags":"","points":[[40.842759, -96.796131], [40.850019, -96.796064], [40.850022, -96.796914], [40.850297, -96.796912], [40.850462, -96.796982], [40.85143, -96.796974], [40.851501, -96.797361], [40.85165, -96.797761], [40.852176, -96.797425], [40.852279, -96.79724], [40.852284, -96.797128], [40.852678, -96.79698], [40.854965, -96.796959], [40.85496, -96.797078], [40.855052, -96.797319], [40.855238, -96.797699], [40.85646, -96.796961], [40.856445, -96.796005], [40.860703, -96.795977], [40.860711, -96.78715], [40.842784, -96.787349], [40.842759, -96.796131]],"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());