var shape = {"title":"North Hollywood Neighborhood in Los Angeles, CA","description":"","tags":"","points":[[34.173020000000001, -118.42254800000001], [34.176830000000002, -118.426813], [34.179313999999998, -118.427114], [34.180483000000002, -118.42719], [34.184485000000002, -118.427133], [34.190148000000001, -118.426975], [34.196621999999998, -118.427055], [34.201141999999997, -118.427044], [34.201202000000002, -118.42674], [34.204090999999998, -118.42721400000001], [34.206048000000003, -118.427521], [34.209144000000002, -118.42657199999999], [34.207357999999999, -118.418504], [34.215423000000001, -118.416574], [34.216582000000002, -118.416325], [34.216665999999996, -118.415406], [34.219965000000002, -118.415314], [34.220008999999997, -118.41827600000001], [34.220613, -118.41839400000001], [34.220767000000002, -118.417614], [34.221575000000001, -118.41767400000001], [34.221595000000001, -118.417326], [34.222973000000003, -118.417436], [34.224279000000003, -118.418646], [34.225599000000003, -118.41992500000001], [34.232818000000002, -118.40871799999999], [34.231881999999999, -118.40307300000001], [34.225200000000001, -118.39651000000001], [34.221454000000001, -118.39283], [34.221409999999999, -118.38905], [34.226599999999998, -118.3807], [34.225355, -118.378209], [34.224201000000001, -118.376538], [34.218899999999998, -118.368909], [34.215598999999997, -118.364159], [34.215600000000002, -118.364159], [34.213920999999999, -118.36176399999999], [34.212276000000003, -118.36165699999999], [34.210518999999998, -118.361892], [34.210473, -118.36123600000001], [34.206856999999999, -118.361784], [34.206828999999999, -118.360811], [34.204177000000001, -118.360248], [34.204152000000001, -118.362385], [34.201118000000001, -118.36187099999999], [34.201101000000001, -118.370227], [34.196292, -118.37015700000001], [34.194442000000002, -118.361255], [34.186563, -118.35997999999999], [34.183042, -118.35937699999999], [34.180962000000001, -118.35925], [34.175908, -118.358413], [34.173827000000003, -118.358071], [34.172843, -118.357944], [34.172170000000001, -118.3578], [34.168779000000001, -118.35659800000001], [34.168691000000003, -118.369962], [34.168109999999999, -118.370127], [34.167966, -118.37853800000001], [34.168132, -118.38536499999999], [34.168156000000003, -118.402321], [34.167971999999999, -118.416496], [34.173020000000001, -118.42254800000001]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(34.17302, -118.422548),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());