var shape = {"title":"Algonquin Neighborhood in Louisville, KY","description":"","tags":"","points":[[38.228228, -85.787222], [38.228071, -85.785], [38.228216, -85.78331], [38.22827, -85.78266], [38.228239, -85.782364], [38.228022, -85.78027], [38.22785, -85.778639], [38.227713, -85.777239], [38.22769, -85.777029], [38.227686, -85.776983], [38.227571, -85.77611], [38.227472, -85.775259], [38.227343, -85.774099], [38.227251, -85.773199], [38.227121, -85.77203], [38.226931, -85.77029], [38.226831, -85.76936], [38.226587, -85.767115], [38.226586, -85.767114], [38.226498, -85.767102], [38.225904, -85.766904], [38.224401, -85.766499], [38.214996, -85.763898], [38.213671, -85.763584], [38.213591, -85.763565], [38.21393, -85.7642], [38.214472, -85.76556], [38.214552, -85.767179], [38.214632, -85.76899], [38.214769, -85.77186], [38.214139, -85.77285], [38.215902, -85.774179], [38.217611, -85.77548], [38.218771, -85.77636], [38.219313, -85.77688], [38.220072, -85.777599], [38.2199, -85.777777], [38.21987, -85.777809], [38.21987, -85.77936], [38.219839, -85.78027], [38.219957, -85.781048], [38.219938, -85.783037], [38.220949, -85.788059], [38.218611, -85.789215], [38.218615, -85.790934], [38.218843, -85.792908], [38.219118, -85.792868], [38.219328, -85.792591], [38.219252, -85.791025], [38.220942, -85.790461], [38.220736, -85.790726], [38.220819, -85.791765], [38.220892, -85.792078], [38.221159, -85.7932], [38.221163, -85.79327], [38.221159, -85.79331], [38.221159, -85.793373], [38.221178, -85.793415], [38.22127, -85.793453], [38.221308, -85.793463], [38.221365, -85.793764], [38.221628, -85.795517], [38.221643, -85.795685], [38.22154, -85.797024], [38.221552, -85.797859], [38.221609, -85.798544], [38.222109, -85.798809], [38.222265, -85.800161], [38.221746, -85.800257], [38.221663, -85.799471], [38.22156, -85.79952], [38.221571, -85.79966], [38.22138, -85.800339], [38.221373, -85.80068], [38.222773, -85.800859], [38.223883, -85.80051], [38.224859, -85.8002], [38.226171, -85.79978], [38.226572, -85.79965], [38.227308, -85.79944], [38.229273, -85.799129], [38.230471, -85.798939], [38.230101, -85.79744], [38.22962, -85.795519], [38.229445, -85.794809], [38.229059, -85.793249], [38.228708, -85.791822], [38.22846, -85.79081], [38.228369, -85.789377], [38.22827, -85.787859], [38.228228, -85.787222]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(38.228228, -85.787222),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());