var shape = {"title":"Ashton Heights Neighborhood in Arlington, VA","description":"","tags":"","points":[[38.880901, -77.096572], [38.879533, -77.095916], [38.8788, -77.095936], [38.873569, -77.093828], [38.872285, -77.093391], [38.870471, -77.10044], [38.872279, -77.102835], [38.874611, -77.106039], [38.876765, -77.109013], [38.877431, -77.109859], [38.878147, -77.110927], [38.879926, -77.11366], [38.879918, -77.111551], [38.879784, -77.11071], [38.879739, -77.109962], [38.879764, -77.108347], [38.879749, -77.106562], [38.87984, -77.106231], [38.879941, -77.10602], [38.880742, -77.104487], [38.881093, -77.103816], [38.881424, -77.103204], [38.881824, -77.102453], [38.882195, -77.101611], [38.882405, -77.10114], [38.882866, -77.100248], [38.883277, -77.099546], [38.883616, -77.099174], [38.884348, -77.098461], [38.88429, -77.096649], [38.880901, -77.096572]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(38.880901, -77.096572),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());