var shape = {"title":"Arbor Glen Neighborhood in Charlotte, NC","description":"","tags":"","points":[[35.200769, -80.897818], [35.2029, -80.89721], [35.203142, -80.896565], [35.204591, -80.896565], [35.206202, -80.896968], [35.211525, -80.897492], [35.211747, -80.895184], [35.212305, -80.893715], [35.212509, -80.893184], [35.211993, -80.893228], [35.209632, -80.893426], [35.20913, -80.893468], [35.207324, -80.893624], [35.206356, -80.893725], [35.205997, -80.893723], [35.205587, -80.893699], [35.205297, -80.893653], [35.204897, -80.893553], [35.203371, -80.89517], [35.20226, -80.895982], [35.201577, -80.897016], [35.201452, -80.897312], [35.20113, -80.897456], [35.200769, -80.897818]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(35.200769, -80.897818),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());