var shape = {"title":"Aboite Meadows Neighborhood in Fort Wayne, IN","description":"","tags":"","points":[[41.051272, -85.271207], [41.05127, -85.270137], [41.052486, -85.270136], [41.052479, -85.265315], [41.048333, -85.265336], [41.048341, -85.267009], [41.048012, -85.267009], [41.048044, -85.265337], [41.046008, -85.265313], [41.046023, -85.262097], [41.046023, -85.262097], [41.046023, -85.262097], [41.045706, -85.262078], [41.045735, -85.261879], [41.045765, -85.261679], [41.045765, -85.261679], [41.045765, -85.261679], [41.045289, -85.261664], [41.045251, -85.264731], [41.045277, -85.267007], [41.045259, -85.271686], [41.04567, -85.271687], [41.046104, -85.271442], [41.047926, -85.271434], [41.048123, -85.271366], [41.050768, -85.271366], [41.050768, -85.271186], [41.051272, -85.271207]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(41.051272, -85.271207),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());