var shape = {"title":"Fourth Plain Village Neighborhood in Vancouver, WA","description":"","tags":"","points":[[45.646988, -122.639509], [45.646213000000003, -122.639509], [45.645826, -122.63890000000001], [45.646268999999997, -122.638291], [45.646379000000003, -122.637793], [45.645937000000004, -122.63696299999999], [45.645411000000003, -122.636853], [45.645217000000002, -122.63657600000001], [45.645023999999999, -122.636189], [45.645023999999999, -122.633782], [45.644691999999999, -122.633201], [45.644469999999998, -122.63298], [45.644111000000002, -122.632924], [45.643419000000002, -122.63331100000001], [45.642837999999998, -122.63333900000001], [45.642429, -122.632918], [45.642145999999997, -122.631956], [45.641648000000004, -122.631928], [45.641371999999997, -122.631264], [45.641095, -122.63082199999999], [45.640098999999999, -122.630573], [45.639684000000003, -122.629632], [45.639048000000003, -122.628636], [45.638716000000002, -122.62783399999999], [45.638218000000002, -122.62811000000001], [45.637849000000003, -122.628097], [45.637740000000001, -122.62809300000001], [45.637537000000002, -122.62866699999999], [45.637487999999998, -122.628855], [45.637394999999998, -122.62921], [45.637363000000001, -122.629401], [45.637343999999999, -122.62976999999999], [45.637346999999998, -122.63005699999999], [45.637388000000001, -122.631173], [45.637442, -122.632305], [45.637481000000001, -122.633016], [45.637501999999998, -122.63351900000001], [45.637560999999998, -122.63486899999999], [45.637608999999998, -122.635935], [45.637627000000002, -122.636336], [45.637689999999999, -122.63755500000001], [45.637805, -122.63902899999999], [45.637897000000002, -122.640181], [45.637926, -122.64063], [45.638027999999998, -122.641773], [45.645023000000002, -122.641918], [45.646819000000001, -122.641955], [45.646630999999999, -122.641381], [45.646568000000002, -122.64116300000001], [45.646538999999997, -122.641014], [45.646459, -122.640547], [45.646419000000002, -122.640171], [45.646988, -122.639509]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(45.646988, -122.639509),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());