var shape = {"title":"Arnour Fields Neighborhood in Kansas City, MO","description":"","tags":"","points":[[39.000032, -94.603018], [39.000891, -94.60294], [39.001683, -94.602896], [39.00249, -94.602826], [39.00325, -94.602782], [39.004103, -94.602745], [39.004994, -94.602672], [39.005536, -94.60265], [39.006195, -94.602626], [39.006735, -94.602582], [39.007655, -94.602505], [39.008544, -94.602432], [39.009523, -94.602374], [39.009897, -94.60236], [39.010453, -94.602316], [39.010395, -94.601175], [39.010382, -94.600583], [39.010388, -94.600112], [39.010406, -94.599641], [39.01043, -94.599341], [39.010453, -94.599071], [39.010455, -94.598962], [39.010465, -94.598865], [39.010444, -94.598079], [39.010422, -94.597784], [39.010399, -94.597084], [39.010369, -94.596123], [39.010325, -94.595137], [39.010306, -94.594629], [39.010288, -94.594219], [39.010266, -94.593652], [39.010237, -94.593186], [39.009007, -94.593232], [39.0082, -94.593278], [39.007409, -94.593309], [39.006694, -94.59335], [39.00592, -94.593412], [39.00586, -94.593415], [39.005828, -94.593417], [39.005635, -94.593425], [39.00478, -94.593477], [39.0037, -94.593542], [39.003628, -94.593547], [39.003559, -94.593554], [39.001873, -94.593649], [39.001146, -94.59371], [39.000361, -94.593777], [38.999602, -94.593851], [38.999655, -94.595013], [38.999718, -94.596113], [38.999766, -94.596916], [38.99978, -94.597284], [38.999822, -94.598404], [38.999924, -94.600757], [39.000032, -94.603018]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(39.000032, -94.603018),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());