var shape = {"title":"Armory Park Neighborhood in Tucson, AZ","description":"","tags":"","points":[[32.219862, -110.970939], [32.219846, -110.968576], [32.219789, -110.968576], [32.2198, -110.967803], [32.219803, -110.967034], [32.21984, -110.966266], [32.219837, -110.965508], [32.21983, -110.964736], [32.219825, -110.963927], [32.219712, -110.963942], [32.218879, -110.963943], [32.217737, -110.962624], [32.217346, -110.962233], [32.216888, -110.962135], [32.214671, -110.96207], [32.214624, -110.960604], [32.214079, -110.960766], [32.213526, -110.960896], [32.212807, -110.960896], [32.210683, -110.960895], [32.210678, -110.961592], [32.210675, -110.962355], [32.210678, -110.963124], [32.210664, -110.963885], [32.210657, -110.964665], [32.210657, -110.965431], [32.210644, -110.968498], [32.211886, -110.968471], [32.211979, -110.96855], [32.213336, -110.969699], [32.217102, -110.9704], [32.21829, -110.970625], [32.219862, -110.970939]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(32.219862, -110.970939),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());