var shape = {"title":"Arlington-East Falls Neighborhood in Arlington, VA","description":"","tags":"","points":[[38.895183, -77.159033], [38.894245, -77.157758], [38.894418, -77.157122], [38.896766, -77.156812], [38.896898, -77.153544], [38.897023, -77.151478], [38.897241, -77.150944], [38.897399, -77.150617], [38.897595, -77.148308], [38.897358, -77.148364], [38.897092, -77.148378], [38.896686, -77.148322], [38.896182, -77.148196], [38.89544, -77.147902], [38.894768, -77.147608], [38.89453, -77.147426], [38.894195, -77.147062], [38.893592, -77.146992], [38.893106, -77.148694], [38.892755, -77.150153], [38.89211, -77.152531], [38.891979, -77.152795], [38.890941, -77.152443], [38.888889, -77.151754], [38.884667, -77.150285], [38.884075, -77.151026], [38.884868, -77.153322], [38.884238, -77.153581], [38.883535, -77.153841], [38.882831, -77.153989], [38.881979, -77.1541], [38.88135, -77.1541], [38.878766, -77.153522], [38.888552, -77.166139], [38.888826, -77.166514], [38.889085, -77.166816], [38.890164, -77.16808], [38.89103, -77.169178], [38.891427, -77.169665], [38.892221, -77.17071], [38.893069, -77.17175], [38.893172, -77.171884], [38.893653, -77.171262], [38.894198, -77.17055], [38.894534, -77.170132], [38.895342, -77.169114], [38.895977, -77.168293], [38.897645, -77.1662], [38.899624, -77.163694], [38.898422, -77.163034], [38.897762, -77.162668], [38.897132, -77.161759], [38.896311, -77.160572], [38.895769, -77.15981], [38.895183, -77.159033]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(38.895183, -77.159033),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());