var shape = {"title":"Airport Neighborhood in Naples, FL","description":"","tags":"","points":[[26.14556, -81.780255], [26.14556, -81.780444], [26.14556, -81.782712], [26.15367, -81.782933], [26.15367, -81.7828], [26.15487, -81.78281], [26.156522, -81.783008], [26.160167, -81.78291], [26.160176, -81.782298], [26.160365, -81.766809], [26.160095, -81.766809], [26.158466, -81.766809], [26.156666, -81.766809], [26.153165, -81.76671], [26.150168, -81.76671], [26.147261, -81.76671], [26.145668, -81.766611], [26.145668, -81.767133], [26.145668, -81.767394], [26.145668, -81.767556], [26.145668, -81.7677], [26.145668, -81.769338], [26.145668, -81.769752], [26.145668, -81.772209], [26.14556, -81.774909], [26.14556, -81.777663], [26.14556, -81.777771], [26.14556, -81.778779], [26.14556, -81.780255]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(26.14556, -81.780255),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());