var shape = {"title":"Active Bethel Neighborhood in Eugene, OR","description":"","tags":"","points":[[44.056514, -123.208452], [44.056549, -123.20845], [44.056822, -123.208438], [44.059098, -123.208437], [44.062972, -123.208443], [44.066747, -123.208425], [44.068693, -123.208435], [44.070235, -123.208425], [44.0716, -123.208448], [44.072338, -123.208451], [44.072685, -123.208452], [44.072974, -123.208452], [44.073914, -123.20845], [44.077497, -123.208417], [44.078042, -123.208417], [44.08049, -123.208418], [44.082473, -123.208405], [44.083908, -123.208422], [44.084716, -123.208399], [44.087363, -123.208354], [44.091343, -123.208348], [44.092013, -123.208362], [44.095289, -123.208335], [44.098775, -123.208329], [44.101176, -123.20831], [44.102481, -123.20831], [44.102605, -123.171019], [44.101508, -123.169988], [44.099275, -123.167911], [44.096794, -123.165559], [44.084405, -123.154887], [44.082567, -123.153304], [44.082571, -123.153225], [44.08229, -123.153043], [44.081925, -123.152751], [44.081648, -123.152572], [44.081103, -123.152169], [44.080493, -123.151718], [44.080136, -123.151464], [44.08004, -123.151392], [44.078692, -123.150425], [44.078602, -123.150362], [44.070112, -123.14298], [44.066548, -123.139706], [44.060379, -123.133916], [44.060714, -123.163068], [44.060755, -123.165457], [44.060749, -123.165959], [44.0607, -123.16684], [44.060395, -123.169803], [44.060346, -123.170323], [44.060253, -123.171276], [44.060034, -123.173243], [44.059993, -123.173616], [44.057388, -123.199972], [44.056917, -123.204483], [44.056744, -123.206004], [44.056592, -123.207511], [44.056514, -123.208452]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(44.056514, -123.208452),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());