var shape = {"title":"Whyte Avenue","description":"Edmonton's trendy strip.  Lots of restaurants, bars, clubs, pubs, and more modern fashion.","tags":"","points":[[53.518369, -113.479886], [53.518599, -113.48465], [53.518727, -113.489413], [53.518625, -113.493447], [53.518854, -113.497739], [53.518778, -113.501902], [53.518625, -113.50615], [53.51814, -113.510957], [53.517706, -113.506408], [53.517553, -113.50379], [53.516838, -113.494992], [53.516838, -113.486838], [53.516991, -113.481946], [53.517451, -113.476925], [53.51791, -113.470402]],"author":"Chris"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(53.517846, -113.490679),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());