var shape = {"title":"Alameda Business Neighborhood in El Paso, TX","description":"","tags":"","points":[[31.774091, -106.461561], [31.774519, -106.461556], [31.775007, -106.461556], [31.775041, -106.461556], [31.775354, -106.461539], [31.775528, -106.461537], [31.77559, -106.461535], [31.77574, -106.461522], [31.775918, -106.461506], [31.776536, -106.461474], [31.776583, -106.461471], [31.776581, -106.461132], [31.776529, -106.458038], [31.776506, -106.455425], [31.776483, -106.452968], [31.776483, -106.45241], [31.776484, -106.45241], [31.776486, -106.450897], [31.776512, -106.450897], [31.776484, -106.450834], [31.776463, -106.449365], [31.776443, -106.447871], [31.776427, -106.446664], [31.776342, -106.445419], [31.776276, -106.444536], [31.77622, -106.443897], [31.776157, -106.443734], [31.77606, -106.44381], [31.775719, -106.443805], [31.775435, -106.44375], [31.775303, -106.443725], [31.77525, -106.443785], [31.775158, -106.443841], [31.774722, -106.443841], [31.774054, -106.443833], [31.773403, -106.443805], [31.773346, -106.443803], [31.773289, -106.443793], [31.773146, -106.443763], [31.772876, -106.443756], [31.772491, -106.443767], [31.772285, -106.443772], [31.772286, -106.443827], [31.772246, -106.443802], [31.771012, -106.443798], [31.770154, -106.443888], [31.7702, -106.445337], [31.770237, -106.44651], [31.770269, -106.448165], [31.77028, -106.449312], [31.770291, -106.45038], [31.770298, -106.450892], [31.771245, -106.45094], [31.772334, -106.45093], [31.772334, -106.450931], [31.773462, -106.450923], [31.773425, -106.452428], [31.773401, -106.452428], [31.773414, -106.453932], [31.773422, -106.455448], [31.773434, -106.456952], [31.773446, -106.458488], [31.772796, -106.458484], [31.771362, -106.458492], [31.770531, -106.458497], [31.770342, -106.458502], [31.770342, -106.458999], [31.77035, -106.460388], [31.77038, -106.461518], [31.770381, -106.461524], [31.77078, -106.461516], [31.770932, -106.461513], [31.771382, -106.461509], [31.771917, -106.461506], [31.772412, -106.461512], [31.772497, -106.461511], [31.77275, -106.461509], [31.77305, -106.461528], [31.773407, -106.461544], [31.773456, -106.461546], [31.773507, -106.461548], [31.774091, -106.461561]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(31.774091, -106.461561),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());